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

Screen Space Dirt

This section contains settings that control the Screen-Space Dirt effect.Этот раздел содержит настройки, управляющие эффектом Screen-Space Dirt.

Various slits and cavities are prone to accumulating dirt and dust, while edges tend to wear, scratch and change their initial color, usually this is simulated using so-called curvature maps prepared for each model.Различные щели и полости склонны к накоплению грязи и пыли, а края имеют тенденцию к износу, царапинам и изменению своего первоначального цвета, обычно это моделируется с помощью так называемых карт кривизны, подготовленных для каждой модели.

Using this effect allows you to perform curvature mapping (simulate worn scratched edges and accumulation of dirt and dust in cavities) in the screen space for all objects globally. It saves time for large complex scenes with a lot of various models and elements making them look more natural without having to prepare textures for each of them individually.Использование этого эффекта позволяет выполнять отображение кривизны (имитировать изношенные поцарапанные края и скопление грязи и пыли в полостях) в пространстве экрана для всех объектов в глобальном масштабе. Это экономит время для больших сложных сцен с большим количеством различных моделей и элементов, делая их более естественными, без необходимости подготавливать текстуры для каждой из них индивидуально.

General OptionsОбщие настройки#

Screen-Space Dirt SettingsНастройки Screen-Space Dirt
Примечание
Settings are applied to materials with the Procedural Effects and Dirt states enabled.Настройки применяются к материалам с включенными состояниями Procedural Effects и Dirt.

The Screen-Space Dirt effect uses additional geometry buffer (Rendering -> Buffers -> Additional Features). If the buffer is disabled, the effect won't be rendered. Эффект Screen-Space Dirt использует дополнительный буфер геометрии (Rendering -> Buffers -> Additional Features). Если буфер отключен, эффект не будет отображаться.

Enabled value indicating if the Screen-Space Dirt (SSDirt) effect is enabled. выкл. по умолчанию.
Консольная команда: render_ssdirt (API)

Quality quality for the SSDirt effect. SSDirt (см. SSDirt) must be enabled. Quality implies the number of samples used for the Screen-Space Dirt effect:
  • Low — 4 samples
  • Medium — 8 samples
  • High — 16 samples
  • Ultra — 32 samples
Примечание
This parameter significantly affects performance, so choose it reasonably.
Опция #3 установлена по умолчанию (см. выше).
(API)
Resolution resolution of the SSDirt effect. SSDirt (см. SSDirt) must be enabled.
Примечание
This parameter significantly affects performance, so choose it reasonably.
Одно из следующих значений:
  • Quarter - quarter resolution
  • Half - half resolution (by default)
  • Full - full resolution

Консольная команда: render_ssdirt_resolution (API)
Intensity intensity of the SSDirt effect.
  • By the minimum value of 0.0f, the effect is not visible.
  • Higher values make the effect more pronounced.
SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, inf]. Значение по умолчанию : 1.0f.
Консольная команда: render_ssdirt_intensity (API)
Radius size of the SSDirt effect. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, inf]. Значение по умолчанию : 1.0f.
Консольная команда: render_ssdirt_radius (API)
Threshold threshold of the SSDirt effect. It determines depth limit for the SSDirt effect in areas where information cannot be obtained. Higher values make the effect less pronounced. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, 1.0f]. Значение по умолчанию : 1.0f.
Консольная команда: render_ssdirt_threshold (API)
Angle Bias angle bias value to limit the SSDirt effect where information cannot be obtained. This parameter can be used to remove visual artefacts at the edges of polygons. SSDirt (см. SSDirt) must be enabled.
Примечание
This parameter affects both, concave and convex areas.

Диапазон значений: [0.0f, 1.0f]. Значение по умолчанию : 0.35f.
Консольная команда: render_ssdirt_angle_bias (API)
Perspective perspective value, that determines the degree of impact of distance from the camera on the radius of the Screen-Space Dirt effect.
  • 0.0f - radius of the effect is bound to screen space (it remains constant relative to screen size, regardless of the distance to the camera).
  • 1.0f - radius of the effect is bound to world space (it remains the same relative to objects, i.e. gets smaller as the camera moves away from them).
SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, 1.0f]. Значение по умолчанию : 0.02f.
Консольная команда: render_ssdirt_perspective (API)
Increase Accuracy value indicating if increased accuracy for the SSDirt effect. This option should be used to remove visual artefacts along the screen edges, in case if they appear. Otherwise, it should be disabled. SSDirt (см. SSDirt) must be enabled. выкл. по умолчанию.
Консольная команда: render_ssdirt_increase_accuracy (API)

Cavity OptionsПараметры полостей#

These options are used to control the look of pits and other cavity areas where dirt or dust would collect.Эти параметры используются для управления внешним видом ям и других полостей, в которых может скапливаться грязь или пыль.

Albedo Albedo texture for cavities. This texture defines dirt and dust color pattern for all cavities globally.Текстура альбедо для полостей. Эта текстура определяет цветовой рисунок грязи и пыли для всех полостей во всем мире.
Shading Shading texture for cavities. Red channel of this texture defines metalness pattern for all cavities globally (other channels are ignored).Затенение текстуры для полостей. Красный канал этой текстуры определяет образец металличности для всех полостей глобально (другие каналы игнорируются).
Texture Size scaling factor for the textures used for cavities. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, inf]. Значение по умолчанию : 1.0f.
Консольная команда: render_ssdirt_cavity_texture_size (API)
Color color multiplier for the Albedo texture used for cavities (global dirt and dust color pattern). SSDirt (см. SSDirt) must be enabled.
vec4(0.26f, 0.24f, 0.21f, 1.0f) - default value
Консольная команда: render_ssdirt_cavity_color (API)

Exponent exponent value that determines the rate of gradual change of intensity along the radius for cavities. Lower values make gradual change of intensity smoother. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, inf]. Значение по умолчанию : 1.0f.
Консольная команда: render_ssdirt_cavity_exponent (API)

Metalness metalness value for cavities. When set to 0 (by default), the SSDirt effect does not modify metalness buffer in cavities. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, 1.0f]. Значение по умолчанию : 0.0f.
Консольная команда: render_ssdirt_cavity_metalness (API)
Metalness Visibility metalness visibility value for cavities. A multiplier that determines the degree of impact of the effect on metalness buffer (the higher the value the more metalness buffer is affected. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, 1.0f]. Значение по умолчанию : 0.0f.
Консольная команда: render_ssdirt_cavity_metalness_visibility (API)

Convexity OptionsПараметры выпуклостей#

These options are used to control highlighting and accentuating the edges of model (simulating edge wear, scratches or chipped metal).Эти параметры используются для управления выделением и выделением краев модели (имитация износа краев, царапин или сколов металла).

Albedo Albedo texture for convexities. This texture defines wear and scratch color pattern for all convexities globally.Текстура альбедо для выпуклостей. Эта текстура определяет цветовой рисунок износа и царапин для всех выпуклостей во всем мире.
Shading Shading texture for convexities. Red channel of this texture defines metalness pattern for all convexities globally (other channels are ignored).Затенение текстуры для выпуклостей. Красный канал этой текстуры определяет паттерн металличности для всех выпуклостей глобально (другие каналы игнорируются).
Texture Size scaling factor for the textures used for convexities. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, inf]. Значение по умолчанию : 1.0f.
Консольная команда: render_ssdirt_convexity_texture_size (API)
Color color multiplier for the Albedo texture used for convexities (global wear and scratch color pattern). SSDirt (см. SSDirt) must be enabled.
vec4(0.48f, 0.44f, 0.39f, 1.0f) - default value
Консольная команда: render_ssdirt_convexity_color (API)
Exponent exponent value that determines the rate of gradual change of intensity along the radius for convexities. Lower values make gradual change of intensity smoother. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, inf]. Значение по умолчанию : 1.0f.
Консольная команда: render_ssdirt_convexity_exponent (API)
Metalness metalness value for convexities. When set to 0 (by default), the SSDirt effect does not modify metalness buffer in convex areas. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, 1.0f]. Значение по умолчанию : 0.0f.
Консольная команда: render_ssdirt_convexity_metalness (API)
Metalness Visibility metalness visibility value for convexities. A multiplier that determines the degree of impact of the effect on metalness buffer (the higher the value the more metalness buffer is affected. SSDirt (см. SSDirt) must be enabled.
Диапазон значений: [0.0f, 1.0f]. Значение по умолчанию : 0.0f.
Консольная команда: render_ssdirt_convexity_metalness_visibility (API)

Adjusting the SSDirt Effect Per MaterialРегулировка эффекта SSDirt для каждого материала#

Despite all major settings of the SSDirt effect are global and are adjusted via the Settings window, some parameters for fine tuning can be set up per material. The SSDirt effect is applied to all materials inherited from the mesh_base and terrain_global_base having the SSDirt option enabled.Несмотря на то, что все основные настройки эффекта SSDirt являются глобальными и настраиваются в окне Settings, некоторые параметры для точной настройки можно настроить для каждого материала. Эффект SSDirt применяется ко всем материалам, унаследованным от mesh_base и terrain_global_base с включенной опцией SSDirt.

To set up SSDirt for a specific material, perform the following:Чтобы настроить SSDirt для определенного материала, выполните следующие действия:

  1. Enable the Procedural Effects option of the target material.Включите опцию Procedural Effects целевого материала.
  2. Enable the SSDirt option of the target material.Включите опцию SSDirt целевого материала.
  3. Enable the Screen-Space Dirt effect in one of the following ways:
    • Via the Render Settings window: go to the Windows -> Settings -> Runtime -> Render -> SSDirt section and click Enabled.Via the Render Settings window: go to the Windows -> Settings -> Runtime -> Render -> SSDirt section and click Enabled.
    • In the Main Menu select Rendering -> Features and choose SSDirt.In the Main Menu select Rendering -> Features and choose SSDirt.
    Via the Render Settings window: go to the Windows -> Settings -> Runtime -> Render -> SSDirt section and click Enabled.In the Main Menu select Rendering -> Features and choose SSDirt.
    Включить Screen-Space Dirtэффект одним из следующих способов:
    • Via the Render Settings window: go to the Windows -> Settings -> Runtime -> Render -> SSDirt section and click Enabled.В окне Render Settings: перейдите в разделWindows -> Settings -> Runtime -> Render -> SSDirtи нажмите Enabled.
    • In the Main Menu select Rendering -> Features and choose SSDirt.В главном меню выберите Rendering -> Featuresи выберите SSDirt .
  4. In the Render Settings window, specify the global SSDirt settings described above.В окне Render Settings укажите глобальные настройки SSDirt , описанные выше.
  5. In the material settings (the Parameters window), specify cavity and convexity masks in the procedural texture, UV coordinates transformation, Cavity Scale, and Convexity Scale.В настройках материала (окно Parameters) укажите маски полости и выпуклости в процедурной текстуре , преобразовании координат UV , Cavity Scale и Convexity Scale.
Последнее обновление: 02.08.2023
Build: ()