注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
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 faceparameter value, the front or back faces of the occluder are used to cull surfaces. Thefront 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 WorldOccluderclass to edit occluders via UnigineScript
- A data/samples/worlds/occluder_00 sample
Creating Occluder
To create an occluder via UnigineEditor:
- Run 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 Occluder tab of the Nodespanel, you can adjust the following parameters of the occluder:
Last update: 2017-07-03
Help improve this article
(or select a word/phrase and press Ctrl+Enter)