Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
3D lights affecting only certain objects?
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?
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.")