Hello.
I will want to make a script that will optimize my scene, by removing all polygons that are not visible to any of lights (this lights will not be used to illuminate scene, but just for optimizing).
One of ideas was to render out baked texture of my scene with cranked up intensity of lights and white material on all objects, so that I get more or less black and white texture on all scene objects. Then I was thinking to maybe select all polygons that have all pure black pixels on them (so they are not hit by light in any case), and simply delete them... But I don't know how to do that :(
And second idea was to also use lights, but if is possible to somehow use their light tracing to determine if polygon is hit by light or not...
I think that second method will be best, because it will eliminate texture baking and possible errors due to low resolution of baked texture...
jos · 2012-01-03