What is Occlusion Culling? |
This topic contains the following sections:
Occlusion culling discards objects which are hidden from a certain point of view. This is achieved by testing the scene nodes against a set of occluders. An occluder is an object within a scene (such as a wall) that obscures the view and prevents objects behind it from being seen. Scene nodes that are occluded can be ignored during rendering.
Occlusion culling effectively reduces the number of objects that need to be rendered, as demonstrated in the following example.
Each building in this example scene consists of 69 objects. The scene contains over 6900 objects in total.
The building walls in this example act as occluders.
Objects behind a building are likely to be obscured. In the following screenshot, looking diagonally across scene, only a fraction of the objects are visible.
The top view illustrates the effectiveness of occlusion culling in this example: The left image shows the entire scene; the right image shows only the visible objects after occlusion culling.
Occlusion culling manages to reduces the number of objects from a few thousand down to a few hundred.
Here is a video which demonstrates occlusion culling: