This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
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

Ambient Occlusion Tool

Ambient Occlusion tool is used for drawing an ambient occlusion texture: a projection of screen space ambient occlusion calculated from the current camera position is written into the texture.

As the ambient occlusion effect is calculated in the screen space, the painted texture will also include the ambient occlusion shadowing from the other objects in the scene. It is useful when, for example, you need to add some dirt in the shaded areas between objects: paint the ambient occlusion mask and use it to add dirt.

Baking Ambient Occlusion Texture#

To bake the ambient occlusion texture via the Ambient Occlusion tool, perform the following:

  1. Prepare a black texture and apply it to the target object as the Albedo texture.
  2. In the Menu Bar, switch the Rendering Mode to Albedo for clarity.
  3. Choose this texture in the Texture field of the Ambient Occlusion tool.

    Notice
    Or you can change the texture color via Texture Editor using the Brush tool.
  4. Set the Draw Blend Mode parameter to Maximum. In this case, the texture will be brightened when painting.

  5. Specify the required Ambient Occlusion Radius.
  6. Specify the maximum available value (10) for the Intersection By Depth Threshold parameter.

  7. Choose the Fill stroke mode and paint the texture. You can use any stroke mode, if necessary.

    Notice
    In "information lost" areas, the ambient occlusion won't be drawn. Rotate the camera around the object to paint such areas.
  8. Save the texture.

Settings#

Draw Blend Mode Sets a blending mode used for painting. For more details, see the Brush tool settings.
Ambient Occlusion

Method of ambient occlusion calculation:

  • Classic method calculates how much the points are illuminated.
  • By Distance To Surface method calculates how close is the nearest surface to the shading point. It allows calculating smooth gradients even around small convexities.
Classic Ambient Occlusion
Ambient Occlusion By Distance To Surface

As you can see, there is no ambient occlusion effect around the small convexity in the first picture.

Ambient Occlusion Radius Distance for each point in the world space, up to which it can shadow its neighboring points.
Intersection By Depth Threshold Depth threshold (in units) limits the ambient oclusion effect in areas where information cannot be obtained. The higher the value, the less pronounced the effect is.
Last update: 2022-09-01
Build: ()