Occluder
An occluder is a box-shaped object that is used to cull objects' surfaces, bounds of which are not visible behind it. The surfaces behind the occluder are not sent to the GPU, thereby saving performance.
Depending on the Back face parameter value, the front or back faces of the occluder are used to cull surfaces. the front faces of the occluder include all of the occluder sides that face the camera. The back faces of the occluder include the sides that are behind the front faces.
Schematically, the occluder faces can be shown as follows:
Front faces of the occluder
|
Back faces of the occluder
|
If any part of the bound of the object's surface is visible behind the occluder, the surface will not be culled.
See also
- General information on occluders
- A WorldOccluder class to edit occluders via UnigineScript
- A data/samples/worlds/occluder_00 sample
Creating Occluder
To create an occluder via UnigineEditor:
- Run the project with UnigineEditor.
- On the Menu bar, click Create -> Worlds -> Occluder.
- Place the occluder in the world and specify the required parameters for it.
To display the buffer that is used for occluders displayed in the viewport, pass 1 to the render_show_occluder
console command.
Editing Occluder
On the World Occluder tab of the Parameters window, you can adjust the following parameters of the occluder:
Last update: 2018-04-26
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)