This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
API Samples
Редактор 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
Учебные материалы

Parallax Occlusion Mapping Node


Description

This node enhances realism of 3D surfaces by creating the illusion of depth through parallax effect. This technique simulates complex surface details without increasing geometric complexity, resulting in more immersive visual experiences.

Use Cases

  • Enhancing Surface Detail: Ideal for simulating elaborate surface features like bricks, stones, or wood grains, providing a 3D appearance on flat models.​
  • Optimizing Performance: Offers a balance between visual fidelity and performance by reducing the need for additional geometry.​
Notice
For many applications, the simplified Parallax Simple node will be sufficient, but the Parallax Occlusion Mapping node offers more detailed and accurate depth effects when needed.

Functionality

The Parallax Occlusion Mapping node adjusts texture coordinates (UVs) to incorporate parallax effects based on the heightmap. By displacing UVs according to the viewer's perspective and the heightmap data, it creates a visual effect where surface details appear to have depth and self-occlusion. This method significantly enhances the perception of depth on flat surfaces.​

Usage Examples

Creating A Cobblestone Pathway

  1. Create a new Material Graph and ensure it is assigned to your mesh.
  2. Add a Parallax Occlusion Mapping node, connect a Heightmap Texture to the Heightmap Texture 2D input of the Parallax Occlusion Mapping node.
  3. Add three Slider nodes and connect them to the Parallax Occlusion Mapping node:

    • Parallax Intensity
    • Max Layers
    • Min Layers

    Adjust the UV Aspect, UV Tiling, and UV Offset if needed, to align the effect properly with the mesh.

  4. Add a Texture2D node and connect it to a Sample Texture node.
  5. Connect the Displaced UV output of the Parallax Occlusion Mapping node to the UV input of the Sample Texture node.
  6. Repeat this process for the Normal Map.

By following these steps, you will have a cobblestone material creating a convincing illusion of depth. This setup avoids costly geometry detailing while still achieving a highly detailed surface.

Ports

Name Description
Heightmap Texture 2DHeightmap texture, where R channel stores concavity values. Black - maximum concavity, white - maximum convexity (no parallax effect is applied).
Parallax IntensityDefines the depth of the parallax effect (in meters). The displacement of the surface is determined by the heightmap's texel values - black areas (value 0) apply the full displacement, while brighter texels (approaching white) gradually reduce the effect.
Max LayersSets the number of parallax layers, when we look at the surface at a steep angle. Higher values increase quality but reduce performance.
Min LayersSets the number of parallax layers, when we look at the surface orthogonally. Higher values increase quality but reduce performance.
Noise IntensityControls noise intensity to blend parallax layers smoothly, reducing stair-step artifacts (terrace effect).
UV AspectMaintains the correct texture aspect ratio. Should be equal to 1, for a square texture.
UVUV to which the parallax effect is applied.
UV TilingTiling of the texture. Controls the repetition scale of the texture across the surface.
UV OffsetOffset for UV coordinates. Adjusts the starting point of the texture on the surface.
Displaced UVParallaxed UVs for textures. The modified UV coordinates after applying the parallax effect.
Depth OffsetProvides the offset (displacement) depth value.
Displaced HeightmapHeightmap value displaced because of parallax effect.

The information on this page is valid for UNIGINE 2.20 SDK.

Last update: 04.04.2025
Build: ()