comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » 3D lights affecting only certain objects?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
3D lights affecting only certain objects? [message #89659] Fri, 07 November 2014 14:03 Go to next message
ghgm2008 is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Turn off "< Press Spacebar to continue, ? for help >"
Next Topic: Converting multi images from hdf to envi standard format

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:27:30 PDT 2025

Total time taken to generate the page: 0.00587 seconds