comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: 3D lights affecting only certain objects?
items: Re: 3D lights affecting only certain objects?

3D lights affecting only certain objects?
type: item
description: 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.
creator: ghgm2008
date: 2014-11-07T22:03:06-00:00

Re: 3D lights affecting only certain objects?
type: item
description: 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.")
creator: David Fanning
date: 2014-11-07T22:20:52-00:00