POV-Ray : Newsgroups : povray.beta-test : [doc] light groups. Server Time
3 Nov 2024 05:16:50 EST (-0500)
  [doc] light groups. (Message 1 to 3 of 3)  
From: Thomas Lake
Subject: [doc] light groups.
Date: 9 Sep 2001 18:52:48
Message: <3b9bf2c0$1@news.povray.org>
I'm not sure what this is, a mistake in the program, in that it accepts this
or simply a redundancy in the docs? In the docs in sec 6.5.8  Light Groups
one of the examples is:

#declare RedLight = light_source {
  <-500,500,-500>
  rgb <1,0,0>
}

light_group {
  light_source {RedLight}
  sphere {0,1 pigment {rgb 1}}
  global_lights off
}

The whole lightsource syntax has already been declared so saying
light_source{RedLight} is not necessary you only need to put:

light_group {
  RedLight
  sphere {0,1 pigment {rgb 1}}
  global_lights off
}


Post a reply to this message

From: ingo
Subject: Re: [doc] light groups.
Date: 10 Sep 2001 06:08:59
Message: <Xns91187B980DE65seed7@povray.org>
in news:3b9bf2c0$1@news.povray.org Thomas Lake wrote:

> I'm not sure what this is, a mistake in the program, in that it
> accepts this or simply a redundancy in the docs?

Generaly I think putting a declared object/lightsource/... inside a 
object/lightsource/... statement is always safe to do, not putting it 
inside something can get you in trouble. Try the example below, one 
difference wil render the other gives an error. If you use object{P} 
both work.

#declare P=plane {...}

difference {
   P
   sphere {0,1 rgb 1}
}

difference {
   sphere {0,1 rgb 1}
   P
}


So, I will make a change to the second example in light_groups and put 
L1 inside light-group{}.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Thomas Lake
Subject: Re: [doc] light groups.
Date: 10 Sep 2001 18:43:28
Message: <3b9d4210@news.povray.org>
>If you use object{P} both work.

Damn I didn't think of that, yes I know you use object{P} instead of just P,
most of the time. I must have been sleeping. Just never seen that done with
light sources.


Post a reply to this message

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