This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
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
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии 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: 10.04.2020
Build: ()