|
|
While finding new and better ways to make media explosions, I ran into a
serious in that scattering media objects cannot be illuminated by
shadowless lights or by lights used in a light_group. While I know that
shadowless lights do some funny things, I tend to think that getting
ignored by media is a bit much, and that the light_group problem is a
blatant bug.
Example scene:
/*
When rendered as is, the media is grey. When rendered with light group
and/or with shadowless enabled, the media will be black (unlit).
*/
camera {location z*3 look_at 0} plane {z,-5 pigment {checker rgb 1 rgb .3}
finish {ambient 1 diffuse 0}}
//light_group {
sphere {0,1 hollow pigment {rgbf 1} interior {
media {
scattering {1, 8}
density {spherical color_map {[0 rgb 0][1 rgb 1]}}
}}}
light_source {<1e6,0,1e6> 1 /*shadowless*/}
//} // end brace for light_group
Post a reply to this message
|
|