|
|
I am trying to make a very simple cylindrical light that glows in the dark
(similar to, say, the blade of the lightsaber of Star Wars). If I use:
#include "colors.inc"
#include "glass.inc"
#include "textures.inc"
camera {
location <55-10,0,0>
look_at <0,0,0>
angle 40
rotate <0,0,0>
}
#declare transp = texture {
pigment {rgbt < 1, 0, 0, 1>}
finish {reflection 0}
}
cylinder
{<0,-10,0>,<0,10,0>,40 texture{transp} hollow
interior
{ media
{ emission 2
density
{ cylindrical density_map
{ [0.2 rgb <0,0,0>]
[0.6 rgb <0.05,0,0>]
[0.7 rgb<0.08.0,0>]
[0.8 rgb <0.1,0,0>]
[0.95 rgb <0.2,0,0>]
[1 rgb <1,1,0>]
}
}
}
}
rotate <90,0,0>
scale<4,4,4>
}
light_source{
<0, -50, 0>
color Red
shadowless
}
light_source{
<0, -100, -300>
color White
}
I obtain what I want. However, I must first create the object in the y direction
and then rotate it, while I would like to create it directly along the
orientation I want. Anybody knows a way to do it?
Furthermore, I obtain the blobs at the ends, which I could eliminate with
"difference", but, still, is there another way?
Thanks.
Post a reply to this message
|
|