|
|
In article <38b95ad4@news.povray.org>, "Paul" <ran### [at] freenetcouk> wrote:
>Firstly I want to created a hollow sphere that is filled with small holes. I
>imagine it looking like it's been sprayed with gunfire.
>
>Next I want to place a light source inside the sphere so that the light
>shines out through the holes and creates narrow beams of light, perhaps
>making use of some mist or fog.
>
I've been recently playing with this code. Should be a good starting point.
The transmit holes in the color_map render quicker than with using CSG to cut
the holes out.
camera {
location <0, 2, -5>
look_at <0, 0, 0>
}
light_source { <0, 0, 0> color rgb 2 }
light_source { <10, 10, -10> color rgb 0.25 }
sphere { <0,0,0>, 1
pigment {
leopard
color_map {
[ 0.0 color rgbt <0.3, 0.3, 0.8, 0.25> ]
[ 0.7 color rgbt <0.3, 0.3, 0.8, 0.25> ]
[ 0.7 color rgbt <0.3, 0.3, 0.8, 1.0> ]
[ 1.0 color rgbt <0.3, 0.3, 0.8, 1.0> ]
}
scale 0.0625
}
rotate <0, clock*45, 0>
}
plane { y, -2 pigment { color rgb 1 } hollow }
plane { z, 2 pigment { color rgb 1 } hollow }
#declare m = 1;
#if (m)
media {
//intervals 10
//samples 10,15
//confidence 0.9999
//variance 1/1000
//ratio 0.9
absorption rgb <0.07, 0.07, 0.03>
scattering { 1, rgb 0.1 extinction 0.1 }
}
#end
Post a reply to this message
|
|