POV-Ray : Newsgroups : povray.newusers : different lighting in scene : Re: different lighting in scene Server Time
5 Oct 2024 15:42:49 EDT (-0400)
  Re: different lighting in scene  
From: Alain
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

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