This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
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 Optimization
Materials
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Occluder Mesh

An occluder mesh is an occluder which is based on an arbitrary mesh. The 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.

Notice
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 occluders
  • The WorldOccluderMesh class to manage mesh occluders via API
  • The sample <UnigineSDK>/data/samples/worlds/occluder_01

Creating Occluder Mesh#

Before adding an 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 the 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 displayed 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.

A mesh that represents a building and contains a lot of details
An 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 the occluder mesh:

Distance Distance between the camera and the bounding box of the occluder, at 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 the occluder will be based:

  1. In the World Occluder Mesh section, 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, press .
  2. In the file dialog window that opens, specify a name for the mesh and press Ok.
Last update: 2021-04-29
Build: ()