3D lights affecting only certain objects? [message #89659] |
Fri, 07 November 2014 14:03  |
ghgm2008
Messages: 17 Registered: December 2008
|
Junior Member |
|
|
Hi there,
Say I have a 3D scene, illuminated by a number of lights. Is it possible to
set things up so that a given light only affects certain objects in a scene
and not others.
So say I have 2 polygons and 2 lights in a scene. light 1 shines on polygon 1 - but, as far as polygon 2 is concerned, it doesn't exist .... and vice versa - and then the whole thing is rendered as a single scene.
Possible?
Cheers
George.
|
|
|
Re: 3D lights affecting only certain objects? [message #89660 is a reply to message #89659] |
Fri, 07 November 2014 14:20  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
ghgm2008@gmail.com writes:
> Say I have a 3D scene, illuminated by a number of lights. Is it possible to
> set things up so that a given light only affects certain objects in a scene
> and not others.
>
> So say I have 2 polygons and 2 lights in a scene. light 1 shines on polygon 1 - but, as far as polygon 2 is concerned, it doesn't exist .... and vice versa - and then the whole thing is rendered as a single scene.
>
> Possible?
No. You can have lights that rotate with an object, and lights that
don't rotate, different types of lights associated with objects, etc.
(see the Light Controller in cgSurface, for example). But, all lights
shining in a scene will have an effect, as far as I know.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|