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
Учебные материалы

Физический шум (Physical Noise)

A Physical Noise is a cuboid shaped area that adds a distribution flow based on a volumetric noise texture. The Physical Noise enables to simulate a force field that affects particles and physical bodies with a spatial 3D noise.Physical Noise - это область в форме куба, которая добавляет поток распределения на основе текстуры трехмерного шума. Physical Noise позволяет моделировать силовое поле, которое воздействует на частицы и физические тела с пространственным трехмерным шумом.

Примечание
The physical noise can affect only a Cloth, a Rope, or a Rigid body. Also you should remember that a Rigid body requires a shape to be assigned.Физический шум может воздействовать только на тело Cloth, Rope или Rigid. Также вы должны помнить, что тело Rigid требует,назначения ему формы (shape).

For example, if you add the physical noise for particles, you can get the following:Например, если вы добавите физический шум для частиц, вы можете получить следующее:

Noise is disabledШум отключен
Noise is enabled. A colored square is a noise image textureШум включен. Цветной квадрат - это текстура изображения шума.
Примечание
The Physical Noise will affect particles only if their physical mass is nonzero. The physical mass for the particles can be set on the Particles tab of the Parameters window.Physical Noise будет влиять на частицы, только если их физическая масса отлична от нуля. Физическую массу для частиц можно установить на вкладке Particles окна Parameters.

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

Main ConceptsОсновные понятия#

Примечание
The calculations described below are added for better understanding of the parameters of the Physical Noise .Расчеты, описанные ниже, добавлены для лучшего понимания параметров Physical Noise.

The direction of the force, which affects particles and physical bodies inside the Physical Noise box, is stored in the Noise texture: a 3D texture, each texel of which stores force direction. The noise texture that is used for the Physical Noise can be adjusted via UnigineEditor.Направление силы, которая воздействует на частицы и физические тела внутри поля Physical Noise, сохраняется в текстуре Noise: трехмерной текстуре, каждый тексель которой хранит направление силы. Текстура шума, которая используется для Physical Noise, может быть настроена в UnigineEditor.

When the physical body falls within the Physical Noise box, the force at the current point starts to affect it. This force is calculated as follows:Когда физическое тело попадает в поле Physical Noise, сила в текущей точке начинает влиять на него. Эта сила рассчитывается следующим образом:

Here:Здесь:

Name Description
force force The resulting force that affects the physical body at the current pointРезультирующая сила, которая воздействует на физическое тело в текущей точке.
force_direction force_direction Direction of the force vector that is stored in the color of a texel of the noise textureНаправление вектора силы, которое хранится в цвете текселя текстуры шума
force_multiplier force_multiplier Force multiplierМножитель силы
threshold threshold Threshold distance along the axesПороговое расстояние по осям

The force_direction is obtained from the noise texture as follows: force_direction получается из текстуры шума следующим образом:

As the force_direction is a vector, the calculation is actually performed as follows: Поскольку force_direction является вектором, вычисление фактически выполняется следующим образом:

The pixel_color is obtained by sampling a pixel with the given coordinates from the noise texture. The pixel coordinates are calculated as follows: pixel_color получается путем выборки пикселя с заданными координатами из текстуры шума. Координаты пикселей рассчитываются следующим образом:

Here:Здесь:

Name Description
pixel_color pixel_color Color of the noise texture pixel that stores direction of the force vectorЦвет пикселя текстуры шума, в котором хранится направление вектора силы
pixel_coordinates pixel_coordinates Coordinates of the noise texture pixel that stores direction of the force vectorКоординаты пикселя текстуры шума, в котором хранится направление вектора силы
body_position body_position Local coordinates of the physical body (relative to coordinates of the Physical Noise node)Локальные координаты физического тела (относительно координат узла Physical Noise)
step step Sampling StepШаг сэмплинга
offset offset Sampling OffsetСмещение выборки
threshold threshold Threshold Distance along the axesПороговое расстояние по осям

Adding Physical NoiseДобавление физического шума#

To add a Physical Noise to the scene via UnigineEditor:Чтобы добавить Physical Noise в сцену через UnigineEditor:

  1. Run the project with UnigineEditor.Запустите проект с UnigineEditor.
  2. On the Menu bar, click Create -> Physics -> Physical Noise.В меню выберите Create → Physicals → Physical Noise .

  3. Click somewhere in the world to place the Physical Noise.Щелкните где-нибудь в мире, чтобы разместить файл Physical Noise.

A new Physical Noise node will be added to UnigineEditor, and you will be able to edit it via the Parameters window.Новый узел Physical Noise будет добавлен в UnigineEditor, и вы сможете редактировать его через окно Parameters.

Editing Physical NoiseРедактирование физического шума#

In the Physical Noise section (Parameters window -> Node tab), you can adjust parameters of the Physical Noise.В разделе Physical Noise (окно Parameters → вкладка Node) вы можете настроить параметры Physical Noise.

Примечание
To have a more clear understanding how the following parameters affect the resulting force inside the Physical Noise node, see Main Concepts.Чтобы получить более четкое представление о том, как следующие параметры влияют на результирующую силу внутри узла Physical Noise, см. Основные понятия .

Node ParametersПараметры узла#

The following parameters are used to set conditions of the size of the Physical Noise node.Следующие параметры используются для установки условий размера узла Physical Noise.

Edit Size

Toggles the editing mode for the Physical Noise node. When enabled, the Physical Noise box sides that can be resized are highlighted with the colored rectangles. To change the size of a side, drag the corresponding rectangle.Переключает режим редактирования для узла Physical Noise. Когда этот параметр включен, стороны объема Physical Noise, размер которых можно изменять, выделяются цветными прямоугольниками. Чтобы изменить размер стороны, перетащите соответствующий прямоугольник.

Physical Mask Physical mask. The physical mask of the Physical Noise must match the Physical mask of the physical object. Otherwise, the physical noise won't affect the object.Physical маска. Физическая маска Physical Noise должна совпадать с маской Physical физического объекта. В противном случае физический шум не повлияет на объект.
Size Size of the Physical Noise box along the axes in units.Размер поля Physical Noise по осям в единицах.
Threshold

Threshold distance along the axes. The threshold determines the distance of gradual change from zero to full force value. These values are relative to the size of the Physical Noise box. It means that the threshold values should be less than the size of the Physical Noise box.Пороговое расстояние по осям. Порог определяет расстояние постепенного изменения от нуля до полного значения силы. Эти значения относятся к размеру объема Physical Noise. Это означает, что пороговые значения должны быть меньше размера поля Physical Noise.

Texture Sampling ParametersПараметры сэмплинга текстур#

The following parameters are used for pixel sampling from the generated noise texture.Следующие параметры используются для выборки пикселей из сгенерированной текстуры шума.

Примечание
You can animate a force field in run-time by changing these parameters.Вы можете анимировать силовое поле во время выполнения, изменив эти параметры.
Offset Sampling offset along the axes.Смещение выборки по осям.
Step Size of the sampling step along the axes.Величина шага выборки по осям.

Force MultiplierМножитель силы#

Force Force multiplier. The higher the value is, the higher the value of the resulting force that affects an object inside the Physical Noise node will be.Множитель силы. Чем выше значение, тем выше будет значение результирующей силы, воздействующей на объект внутри узла Physical Noise.

Texture Generation ParametersПараметры создания текстур#

The following parameters are used to generate a noise texture that will be used at run time.Следующие параметры используются для создания текстуры шума, которая будет использоваться во время выполнения.

Примечание
It is not recommended to change values of the following parameters at run time as the noise texture will be regenerated and the performance will decrease.Не рекомендуется изменять значения следующих параметров во время выполнения, так как текстура шума будет регенерирована, а производительность снизится.
Scale Scale of the noise texture. The minimum value is 0, the maximum value is 1.Масштаб текстуры шума. Минимальное значение - 0, максимальное - 1.
Frequency

Number of octaves for the Perlin noise. The higher the value is, the more details the noise texture has. The minimum value is 0, the maximum value is 16.Число октав для шума Перлина. Чем выше значение, тем больше деталей имеет текстура шума. Минимальное значение - 0, максимальное - 16.

Frequency = 1
Frequency = 16
Image Size Size of the noise texture image in pixels.Размер изображения текстуры шума в пикселях.
Последнее обновление: 29.04.2021
Build: ()