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 
Return to the default flat view Create a new topic Submit Reply
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.")
[Message index]
 
Read Message
Read Message
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: Mon Oct 27 00:01:48 PDT 2025

Total time taken to generate the page: 2.15897 seconds