This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
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 Mesh

Occluder Mesh is an occluder which is based on an arbitrary mesh. Occluder Mesh 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
  • If any part of the bound of the object's surface is visible behind the occluder, the surface will not be culled.
  • By default, shadows from the occluded objects remain visible. To disable shadows rendering, run the console command render_occluders_shadows 1.

See also#

  • General information on Occluder
  • The WorldOccluderMesh class to manage mesh occluders via API
  • The sample <UnigineSDK>/data/samples/worlds/occluder_01

Creating Occluder Mesh#

Before adding Occluder Mesh to a scene, you should prepare a mesh, on which this Occluder Mesh will be based. Such mesh is created separately and should be as simple as possible: it should contain the minimum number of polygons.

When the mesh is prepared, you can add Occluder Mesh to the scene via UnigineEditor:

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

  3. In the file dialog window, choose a mesh (*.mesh), on which the occluder will be based.
  4. Place the Occluder Mesh in the world and specify the required parameters for it.
Notice
To display the buffer that is used for occluders rendered in the viewport, pass 1 to the render_show_occluder console command.

Example#

For example, if you have a building that occludes some objects' surfaces, you should prepare a simplified mesh to be used as a base for the Occluder Mesh instead of using the detailed mesh.

Mesh that represents a building and contains a lot of details
Occluder that is based on the simplified mesh and is rendered into a separate buffer with a low resolution

Editing Occluder Mesh#

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

Distance

Distance between the camera and the bounding box of the occluder, exceeding which the Occluder Mesh becomes disabled.

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

By default, the inf value is used.

Loading a New Mesh#

To load a new mesh on which Occluder Mesh will be based:

  1. In the World Occluder Mesh section of the Node tab, press .
  2. In the file dialog window that opens, choose the required mesh and press OK.

Saving the Current Mesh#

To save the current mesh on which the occluder is based:

  1. In the World Occluder Mesh section of the Node tab, press .
  2. In the file dialog window that opens, specify a name for the mesh and press OK.
Last update: 2023-06-23
Build: ()