This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Occluder

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.

Notice
By default, shadows from the occluded objects remain visible. To disable shadows rendering, run the console command render_occluders_shadows 1.

Depending on the Back Face parameter value, the front or back faces of Occluder are used to cull surfaces. The front faces of Occluder are the sides of the Occluder that face the camera. The back faces of Occluder are the sides that are behind the front faces.

Schematically, the Occluder faces can be shown as follows:

Front faces of Occluder
Back faces of Occluder
Notice
If any part of the bound of the object's surface is visible behind Occluder, the surface will not be culled.

See also#

  • General information on Occluder
  • The WorldOccluder class to manage Occluder via API
  • The sample <UnigineSDK>/data/samples/worlds/occluder_00

Creating Occluder#

To create Occluder via UnigineEditor:

  1. Run the project with UnigineEditor.
  2. On the Menu bar, click Create -> Optimization -> Occluder.

  3. Place the Occluder in the world and specify the required parameters for it.
Notice
To display the buffer that is used for Occluder rendered in the viewport, pass 1 to the render_show_occluder console command.

Editing Occluder#

On the Node tab of the Parameters window, you can adjust the following parameters of Occluder:

Edit Size

Toggles the editing mode for the Occluder node on and off. When enabled, the Occluder box sides that can be resized are highlighted with the colored rectangles. To change the size of a side, drag the corresponding rectangle.

Back Face

Indicates whether the back faces of the Occluder box are used instead of front faces to occlude objects. If unchecked, the front faces will be used.

Back Face is unchecked
Back Face is checked
Size Size of Occluder along the axes.
Distance

Distance between the camera and the bounding box of Occluder, at which the Occluder becomes disabled (it isn't processed by the CPU, hence it isn't rendered).

For example, you should disable Occluder at a certain distance if it stops hiding the objects and their surfaces, in order to increase performance.

By default, the parameter value is set to inf.

Last update: 2021-12-13
Build: ()