This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
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
Учебные материалы

Field Spacer

A Field Spacer is an object, specifying geometry areas of grass and water that should not be rendered. Inside the Field Spacer, geometry is cut off gradually starting from the center of the field.Field Spacer - это объект, определяющий геометрические области, где трава и вода не должны отображаться. Внутри Field Spacer геометрия постепенно обрезается, начиная с центра поля.

The Field Spacer allows you to dynamically adapt grass and water surface to other objects in the scene. For example:Field Spacer позволяет динамически адаптировать траву и водную поверхность к другим объектам сцены. Например:

  • A Field Spacer can be used to specify area under a building and around it where grass should not grow. Moreover, by using the attenuation factor, it is possible to create thinner grass around the building.Field Spacer можно использовать для указания области под зданием и вокруг него, где трава не должна расти. Более того, используя коэффициент затухания , можно создать более разреженную траву вокруг здания.
  • A Field Spacer can be set for a boat so that water is not rendered inside it.Для лодки можно установить значение Field Spacer, чтобы вода не отображалась внутри нее.
Примечание
A Field Spacer affects grass or water only if the FieldSpacer Interaction flag is set on the States tab of the corresponding material.Field Spacer влияет на траву или воду, только если флаг FieldSpacer Interaction установлен на вкладке States соответствующего материала.
Boat without the Field Spacer: water is inside the boatЛодка без Field Spacer: вода внутри лодки
Boat with the Field Spacer: the Field Spacer cuts water offЛодка с Field Spacer: Field Spacer перекрывает воду
Примечание
The maximum number of FieldSpacers rendered per frame/bit mask is limited to:
  • 341 (DirectX)
  • 42 (OpenGL)
Максимальное количество полей Field Spacer, отображаемых на кадр / битовую маску, ограничено:
  • 341 (DirectX)
  • 42 (OpenGL)

See alsoСмотрите также#

  • The FieldSpacer class to manage spacer fields via APIКласс FieldSpacer для управления полями-спейсерами через API
  • A set of samples located in the data/samples/fields/ folder:
    • spacer_00
    • spacer_01
    • spacer_02
    Набор образцов находится в папке data/samples/fields/:
    • spacer_00
    • spacer_01
    • spacer_02

Adding Field SpacerДобавление Field Spacer#

To add a Field Spacer in the world via UnigineEditor, do the following:Чтобы добавить Field Spacer в мир в UnigineEditor, сделайте следующее:

  1. On the Menu bar, choose Create -> Field -> Spacer.

    В строке меню выберитеCreate -> Field -> Spacer.

  2. Place the spacer field in the world so that it intersects geometry required to be cut off:
    Примечание
    Make sure that the Spacer interaction flag is set for materials applied to grass or water.Make sure that the Spacer interaction flag is set for materials applied to grass or water.
    • In case of grass, the Field Spacer should intersect the surface, on which grass grows.In case of grass, the Field Spacer should intersect the surface, on which grass grows.
    • In case of water, the Field Spacer should intersect the water surface:
      In case of water, the Field Spacer should intersect the water surface:
    Make sure that the Spacer interaction flag is set for materials applied to grass or water.In case of grass, the Field Spacer should intersect the surface, on which grass grows.In case of water, the Field Spacer should intersect the water surface:
    Поместите поле в мир так, чтобы оно пересекало геометрию, которую необходимо обрезать:
    Примечание
    Make sure that the Spacer interaction flag is set for materials applied to grass or water.Убедитесь, что флаг Spacer interaction установлен для материалов, применяемых к траве или воде.
    • In case of grass, the Field Spacer should intersect the surface, on which grass grows.В случае травы Field Spacer должен пересекать поверхность, на которой растет трава.
    • In case of water, the Field Spacer should intersect the water surface:
      В случае воды Field Spacer должен пересекать поверхность воды:

If you are going to use the Field Spacer with dynamic objects, it is better to add the field as a child node to this object so that it can correctly affect grass or water geometry.Если вы собираетесь использовать Field Spacer с динамическими объектами, лучше добавить поле в качестве дочернего узла к этому объекту, чтобы оно могло правильно влиять на геометрию травы или воды.

Editing Field SpacerРедактирование Field Spacer#

In the Field Spacer section (Parameters window -> Node tab), the following parameters of the Field Spacer can be adjusted:В разделе Field Spacer (окно Parameters → вкладка Node) можно настроить следующие параметры Field Spacer:

Setting Form of SpacerФорма Field Spacer#

Ellipse Indicates whether the Field Spacer is ellipsoid-shaped. If unchecked, the Field Spacer has a form of a cube.Указывает, имеет ли Field Spacer форму эллипса. Если не отмечено, Field Spacer имеет форму куба.

Setting Bit MasksУстановка битовых масок#

Field Mask A field mask. A bit mask that specifies an area of the Field Spacer to be applied to grass or water. The Field Spacer will be applied to grass or water only if they have matching masks.Маска поля. Битовая маска, указывающая область Field Spacer, которая будет применяться к траве или воде. Field Spacer будет применяться к траве или воде, только если у них есть подходящие маски .
Viewport Mask A Viewport mask. A bit mask for rendering the Field Spacer into the current viewport. For the Field Spacer to be rendered into the viewport, its mask should match the camera viewport mask.Маска Viewport. Битовая маска для рендеринга Field Spacer в текущем окне просмотра. Чтобы Field Spacer отображался во вьюпорте, его маска должна соответствовать маске видового экрана камеры.

Setting Size and AttenuationУстановка размера и затухания#

Size Size of the Field Spacer along the axes in units.
  • If the Ellipse option is unchecked, this is the size of the Field Spacer box along the axes.If the Ellipse option is unchecked, this is the size of the Field Spacer box along the axes.
  • If the Ellipse option is checked, these are the ellipse radius values along the axes.If the Ellipse option is checked, these are the ellipse radius values along the axes.
If the Ellipse option is unchecked, this is the size of the Field Spacer box along the axes.If the Ellipse option is checked, these are the ellipse radius values along the axes.
Размер Field Spacer по осям в единицах.
  • If the Ellipse option is unchecked, this is the size of the Field Spacer box along the axes.Если опция Ellipse не отмечена, это размер блокаField Spacerпо осям.
  • If the Ellipse option is checked, these are the ellipse radius values along the axes.Если отмечена опция Ellipse, это значения радиуса эллипса по осям.
Attenuation An attenuation factor indicating how much geometry is cut off gradually starting from the center of the Field Spacer.
  • By the minimum value of 0, all geometry inside the Field Spacer will be rendered.By the minimum value of 0, all geometry inside the Field Spacer will be rendered.
  • The higher the value, the less geometry will be rendered inside the Field Spacer.The higher the value, the less geometry will be rendered inside the Field Spacer.
Atten = 5
Atten = 15
By the minimum value of 0, all geometry inside the Field Spacer will be rendered.The higher the value, the less geometry will be rendered inside the Field Spacer.
Коэффициент затухания, показывающий, сколько геометрических фигур срезается постепенно, начиная с центраField Spacer.
  • By the minimum value of 0, all geometry inside the Field Spacer will be rendered.При минимальном значении 0 будет отображаться вся геометрия внутри Field Spacer.
  • The higher the value, the less geometry will be rendered inside the Field Spacer.Чем выше значение, тем меньше геометрии будет отображаться внутри Field Spacer.
Atten = 5
Atten = 15
Последнее обновление: 17.04.2021
Build: ()