View Full Version : Hide lights not in frustum
cadmonkey33 07-12-2008, 07:38 PM Hi,
is there any way to hide or switch off lights not within the camera frustum?
i have a huge amount of lights in my scene, and many are just uplighters/downlighter that don't influence the general lighting much.
id like to selectively hide them if there not visible in the current view.
ta,
Nat.
|
|
RobGalanakis
07-12-2008, 08:14 PM
Bobo has a SIGGRAPH class where he talks about a script he developed for checking things in the Camera view, and he goes over a similar thing on his Matrix DVD... I'm not sure if either are available online for free, Bobo would know the answer to that. As for how to do it, the gist of it is to shoot a ray for each camera pixel (there is a function for this), and see if it intersects the objects under consideration (using IntersectRayExt, or probably a voxel grid would be faster and preferred). If I get time later, I can try a sample script if no one gets to it first.
CGTalk Moderation
07-12-2008, 08:14 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.