This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Objects
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版本。

Mask Editor

UnigineEditor provides a useful tool for painting image masks directly in the scene - Mask Editor. It allows editing the existing image masks and creating new ones.

See Also#

Creating Mask with Mask Editor#

To create a new image mask by means of the mask editor:

  1. Run UnigineEditor 2.
  2. Add ObjectGrass, ObjectMeshClutter or WorldClutter to the scene by choosing the required object via the Menu bar (the Create menu item).
  3. Specify all the required settings for the added object.
  4. Choose Windows -> Toggle World Hierarchy to open the World Hierarchy window.
  5. In the World Hierarchy window, select an ObjectGrass, ObjectMeshClutter or WorldClutter node. In the Parameters window open the Grass, MeshClutter, or Clutter tab correspondingly.
  6. Here, click next to the Mask Image field.

  7. Specify the size and the format of the mask in the window that opens and click OK.

  8. In the file dialog window that opens, specify the mask name, choose the folder within your project to save the mask and click OK. An empty image mask will be created.

  9. Perform Steps 4-7 described below to paint the mask.

Editing Mask with Mask Editor#

To edit an image mask by means of the mask editor:

  1. Run UnigineEditor 2.
  2. Choose Windows -> Toggle World Hierarchy to open the World Hierarchy window.
  3. In the World Hierarchy window, select an ObjectGrass, ObjectMeshClutter or WorldClutter node. In the Parameters window open the Grass, MeshClutter, or Clutter tab correspondingly.
  4. Here, click next to the Mask Image field.

    The Mask Editor will open.
  5. Specify the required brush settings.
  6. Hold Alt + Left Mouse Button to paint the mask in the scene.

Mask Editor Options#

Mode Available modes:
  • Replace - replace pixel values of the image mask with the current values set for the brush.
  • Add - add pixels to the image mask (in other words, add areas to the image mask where grass or clutter objects should be placed).
  • Subtract - subtract the current values set for the brush from pixel values of the image mask.
  • Smooth - blur pixels of the image mask, making boundaries softer.
  • Erase - erase pixels of the image mask.
Brushes Shape of the brush:
  • - circular shape
  • - square shape
  • custom brush. The texture is loaded using the additional button .
Size Size of the brush.
Color Color of the brush.
Intensity Intensity of the brush.
Opacity The rate to apply the brush.
Sharpness Tip of the brush. The lower the value, the sharper and smaller the tip. The higher the value, the flatter and bigger the tip.
Step The distance between the brush marks in a stroke, in pixels.
Last update: 2021-04-29
Build: ()