POV-Ray : Newsgroups : povray.newusers : I Need Help With Media : Re: I Need Help With Media (small sample image) Server Time
30 Jul 2024 12:25:06 EDT (-0400)
  Re: I Need Help With Media (small sample image)  
From: Alain
Date: 17 May 2004 06:31:29
Message: <40a89481$1@news.povray.org>
Danny nous apporta ses lumieres ainsi en ce 2004/05/17 05:23... :

>Alain <aze### [at] qwertygov> wrote:
>  
>
>
>I used exactly what you told me, and I got a cylinder with white edges that
>fades to nothing in the middle (without any red at all), and even those
>white edges disappear as the cylinder continues on.  I'm using POV-Ray 3.5,
>and here is the code I used:
>
>cylinder{<100,0,0>,<0,0,0>, .20
>         texture {
>    pigment { color rgbt 1}
>    finish{reflection 0}}
>       interior{media{emission rgb 1
>       density{ cylindrical
>       color_map{[0 rgb 0][0.5 rgb<1,0,0>][0.98 rgb 1][1 rgb 2]}
>       }}}
>       hollow
>       translate<0,0,2>
>       }
>
>Can you tell me what I'm doing wrong, and how to fix it?
>
>  
>
Set the radius of the cylinder to 1, then rescale it by scale<.2,1,.2> 
just before you rotate it.
You don't need to set finish{reflection 0}}, it's the default value.
Set your cylinder verticaly, as it's the orientation of the cylindrical 
pattern, then rotate the whole thing.
...
scale<0.2, 1, 0.2>
rotate -90*z
translate<0, 0, 2>
}

Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.