This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Полезные советы
Программирование на C#
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Setting Up Properties
Освещение
Landscape Tool
Sandworm (Experimental)
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
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
Работа с контентом
Оптимизация контента
Материалы
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: 24.11.2020
Build: ()