Camera Culling

CGMatter in Rendering


Why show geometry outside the camera view?

Good question. Sometimes we don't want to. This is called Camera Culling. Geometry behind the camera? Geometry outside camera bounds? All gone! And it's fast. Really fast :)
The use-cases aren't even necessarily scene optimization... More on that later!

It works for single objects or a collection:


Cull per-point or per-island (bounding box):


Add overscan for some buffer room:


Works with changing focal length and sensor size:

Why use culling?

Funnily enough, the main use-case is not scene optimization. Blender already has ways to handle this during render time. Here are some actual use-cases:

  1. Geometry Nodes: Geometry node effects can be quite slow. They take the mesh and perform some operation on it. Of course, the less input geometry the better! Recently I used this concept for rain collision (rain creates splashes when it hits the scene). This takes tons of raycasts. It occurred to me that by culling the collider geo I can get things much faster!
  2. Faster Modifiers: You know what's expensive? Subdivision surface modifiers. Armature deformations. They apply to the whole mesh. This can be a waste when part of the mesh is off camera. Reorder the modifier stack so that culling happens first... and you are now subdividing less! (Note that by default camera culling is set to be the last modifier. Unpin it and you can move it anywhere)
  3. Caches: Suppose your camera movement is locked down. Also suppose you have some kind of bulky simulation you made that you ultimately want to cache. There is no need to cache things off camera! Save gigabytes of cache storage.
  4. Different Angles: There are scenarios where you want to cull from a different camera's perspective. Traditional Blender culling only cares about the main camera.
  5. Framing: Camera culling deletes geometry. We know that. But another way to interpret this is it shows your framing in 3D. You can now see where the effort should/shouldn't go in a much more interactive way!
  6. Scene Export: Imagine you're an animator. Your main job is moving a character. Maybe with some nearby object interaction. But generally, most of the scene is bloat. Export the scene post-culling (as an obj etc) for a simplified experience.
  7. Scene Optimization: I know I just contradicted myself - but hear me out. Based on render engine, culling can be quite complicated/nuanced. The optimization isn't exactly: less vertices = faster. But there are tons of cases where this solution results in faster renders.
  8. It Looks Cool: Definitely a weird use-case is setting overscan < 0 to actually show the culling. This could be a motion graphics effect or something far stranger ;)

How do I use it?



Note that this can affect shadows/reflections. If a tree is off-camera but casts a shadow, that will no longer be there. Same for reflections. Make a judgement call whether this matters for your shot. Also consider overscan > 0 to remedy this for geometry that is just off-camera!


$10

Have questions about this product?
Login to message

Details
Blender Extension Compatible Yes
Dev Fund Contributor
Published about 4 hours ago
Blender Version 5.2 - 5.3
Extension Type Add-on
Render Engine Used Arnold, Blender-Internal, Blender-Game-Engine, Cycles, Eevee, Freestyle, Luxrender, Mental-Ray, Octane, Vray, Yafaray
License GPL