[Closed] Hide lights not in frustum
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.
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.