POV-Ray : Newsgroups : povray.newusers : different lighting in scene Server Time
31 Oct 2024 05:59:55 EDT (-0400)
  different lighting in scene (Message 1 to 5 of 5)  
From: joost 1972
Subject: different lighting in scene
Date: 1 Sep 2009 09:25:00
Message: <web.4a9d1ff8cdbdcd722a36ae330@news.povray.org>
Hi,

I'm running into a problem with the lighting of my scene. I want to light the
background of my scene differently from the foreground. Can I combine two
scenes both with their own lighting, or appoint a light to a single (group of)
object(s)?

Using a parallel light in the back of my scene also lights the front. Using
fading is causing me new problems (I would like to be able to just cut a light
off at a certain point). Does anybody know a simple solution?

Thanks, Joost


Post a reply to this message

From: Alain
Subject: Re: different lighting in scene
Date: 1 Sep 2009 11:35:58
Message: <4a9d3f5e@news.povray.org>

> Hi,
> 
> I'm running into a problem with the lighting of my scene. I want to light the
> background of my scene differently from the foreground. Can I combine two
> scenes both with their own lighting, or appoint a light to a single (group of)
> object(s)?
> 
> Using a parallel light in the back of my scene also lights the front. Using
> fading is causing me new problems (I would like to be able to just cut a light
> off at a certain point). Does anybody know a simple solution?
> 
> Thanks, Joost
> 
> 
You can use a light_group.

Any light_source in a light group only shine on the objects that are 
part of that light_group.

By default, those objects are also not lighted by any light_source that 
are NOT part of the light_group. If you want to ALSO receive light from 
other sources, you need to add "global_lights on" to the light_group.

An object that is not part of a light_group CAN cast shadows on the 
objects of a light_group.



Alain


Post a reply to this message

From: Alain
Subject: Re: different lighting in scene
Date: 1 Sep 2009 11:37:29
Message: <4a9d3fb9@news.povray.org>

> Hi,
> 
> I'm running into a problem with the lighting of my scene. I want to light the
> background of my scene differently from the foreground. Can I combine two
> scenes both with their own lighting, or appoint a light to a single (group of)
> object(s)?
> 
> Using a parallel light in the back of my scene also lights the front. Using
> fading is causing me new problems (I would like to be able to just cut a light
> off at a certain point). Does anybody know a simple solution?
> 
> Thanks, Joost
> 
> 

If you use the Windows version, look at section "3.4.8  Light Groups" 
from the included documentations.


Alain


Post a reply to this message

From: joost 1972
Subject: Re: different lighting in scene
Date: 1 Sep 2009 12:05:01
Message: <web.4a9d43d678d9f3602a36ae330@news.povray.org>
>
> If you use the Windows version, look at section "3.4.8  Light Groups"
> from the included documentations.
>

Grrrr. I've read through the whole 3.4.7 Light section numerous times and
struggled with fading lights and the answer was right under my nose. Totally
missed the next chapter.

Thanks a lot! (meant sincerely, not cynical)


Post a reply to this message

From: Alain
Subject: Re: different lighting in scene
Date: 2 Sep 2009 13:35:19
Message: <4a9eacd7$1@news.povray.org>

>> If you use the Windows version, look at section "3.4.8  Light Groups"
>> from the included documentations.
>>
> 
> Grrrr. I've read through the whole 3.4.7 Light section numerous times and
> struggled with fading lights and the answer was right under my nose. Totally
> missed the next chapter.
> 
> Thanks a lot! (meant sincerely, not cynical)
> 
> 
>

No problem. Everybody does just that, at least some of the time....


Alain


Post a reply to this message

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