|  |  | revision.txt
"  There might have been other problems with light_groups and
   media (at least the code "appeared" broken).  So light_groups
   and media should be tested extensively with light buffers on
   as well as off! "
With or without light buffers, we have a green and a red sphere. And the
media sphere has a black scar when the light_group is on and a black dot
when off. This depends on the direction of the light_source. If the camera
is moved the scar towards the side where the camera is.
--
#version 3.5;
camera { location <0,0,-5> }
#declare LIGHT_GROUP = on;
light_source
{
  <1,1,-2>*10
  color rgb <1,0,0>
  media_interaction on
}
#if (LIGHT_GROUP)
light_group
{
#end
  light_source
  {
    <-1,1,-2>*10
    color rgb <0,1,0>
    media_interaction on
  }
  sphere
  {
    0,1
    pigment{color rgb 1}
    translate x*1
  }
  sphere
  {
    0,1
    hollow
    pigment{color rgbt 1}
    interior{media{scattering {1,color rgb 10}}}
    translate -x*1
  }
#if (LIGHT_GROUP)
}
#end
--
Post a reply to this message
 |  | 
|  |  | In article <3c663dd3$1@news.povray.org> , "Ari-Matti Leppanen" 
<ari### [at] tut fi> wrote:
> With or without light buffers, we have a green and a red sphere. And the
> media sphere has a black scar when the light_group is on and a black dot
> when off. This depends on the direction of the light_source. If the camera
> is moved the scar towards the side where the camera is.
I will have a look at what is going on.  Thanks!
    Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povray  org
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org Post a reply to this message
 |  |