This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
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
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

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.Occluder是一个框形对象,用于剔除对象的表面,其后部的边界不可见。 Occluder后面的表面不会发送到GPU,从而节省了性能。

注意
By default, shadows from the occluded objects remain visible. To disable shadows rendering, run the console command render_occluders_shadows 1.默认情况下,被遮挡对象的阴影保持可见。要禁用阴影渲染,请运行控制台命令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.根据Back Face参数值,使用Occluder的正面或背面对表面进行剔除。 Occluder正面Occluder面向相机的侧面。 Occluder背面是位于正面后面的侧面。

Schematically, the Occluder faces can be shown as follows:示意性地,Occluder面可以如下所示:

Front faces of OccluderOccluder的正面
Back faces of OccluderOccluder的背面
注意
If any part of the bound of the object's surface is visible behind Occluder, the surface will not be culled.如果对象表面边界的任何部分在Occluder之后可见,则该表面将不会被剔除。

See also
也可以看看#

  • General information on Occluder有关Occluder的一般信息
  • The WorldOccluder class to manage Occluder via API通过API管理OccluderWorldOccluder
  • The sample <UnigineSDK>/data/samples/worlds/occluder_00样本<UnigineSDK>/data/samples/worlds/occluder_00

Creating Occluder
创建封堵器#

To create Occluder via UnigineEditor:要通过UnigineEditor创建Occluder,请执行以下操作:

  1. Run the project with UnigineEditor.跑步UnigineEditor的项目。
  2. On the Menu bar, click Create -> Optimization -> Occluder.在菜单栏上,单击Create -> Optimization -> Occluder

  3. Place the Occluder in the world and specify the required parameters for it.Occluder放置在世界上,为其指定所需的参数
注意
To display the buffer that is used for Occluder rendered in the viewport, pass 1 to the render_show_occluder console command.显示缓冲用于在视口中渲染的Occluder的对象,请将1传递给render_show_occluder控制台命令。

Editing Occluder
编辑遮挡物#

On the Node tab of the Parameters window, you can adjust the following parameters of Occluder:Parameters窗口的Node选项卡上,可以调整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.开启和关闭Occluder节点的编辑模式。启用后,可以调整大小的Occluder框边会用彩色矩形突出显示。要更改边的大小,请拖动相应的矩形。

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.指示是否使用Occluder框的背面而不是正面来遮挡对象。如果未选中,将使用正面。

Back Face is uncheckedBack Face未选中
Back Face is checkedBack Face已检查
Size Size of Occluder along the axes.沿轴的大小为Occluder
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).相机与Occluder边界框之间的距离,在该距离处将禁用Occluder(CPU不会处理它,因此不会渲染它)。

For example, you should disable Occluder at a certain distance if it stops hiding the objects and their surfaces, in order to increase performance.例如,如果Occluder停止隐藏对象及其表面,则应在一定距离处禁用它,以提高性能。

By default, the parameter value is set to inf.默认情况下,参数值设置为inf

最新更新: 2024-12-13
Build: ()