POV-Ray : Newsgroups : povray.beta-test : Light_groups and Media Server Time
1 Nov 2024 23:15:26 EDT (-0400)
  Light_groups and Media (Message 1 to 2 of 2)  
From: Ari-Matti Leppanen
Subject: Light_groups and Media
Date: 10 Feb 2002 04:30:59
Message: <3c663dd3$1@news.povray.org>
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

From: Thorsten Froehlich
Subject: Re: Light_groups and Media
Date: 12 Feb 2002 17:56:57
Message: <3c699db9$1@news.povray.org>
In article <3c663dd3$1@news.povray.org> , "Ari-Matti Leppanen" 
<ari### [at] tutfi> 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] povrayorg

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

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