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
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.

Importing Height Map from Instant Terra

Export Settings#

Dimensions#

When exporting a heightmap from Instant Terra, pay attention to the following parameters available in the properties of the first node of the terrain creation graph:

  • Width and Height define the texture size in pixels.
  • Quad size — physical size in meters set for the quad, i.e. pixel, of the height map texture. Practically, this is a multiplier for the width and height that defines the physical size of the height map. The output size of the map in meters is provided below.
    For example, the 1024x1024 texture with the quad size of 0.5 will result in a terrain with a physical size of 511.5 x 511.5 meters.

The height values are not identified at export by default, and the texture is imported to UNIGINE as unnormalized. To control the height, create the Elevation info node to generate a normalized texture with the min and max height values. Connect these values to the min and max height of the Export terrain node. As a result, the export file format switches to 16 bit and the height range values become available.

Tiling#

For large-scale terrains (more than 8K), export in tiles is recommended, this helps to avoid RAM limitations, especially when using 32 bit textures. The minimum recommended tile size is 1024 to avoid visual tiling artifacts. To do that, use the Multi file export terrain node:

The recommended file naming pattern is: filename_X$x_Y$y.

Export Format#

When exporting the terrain, select the suitable export format. UNIGINE allows importing 8, 16, and 32-bit heightmaps.

Notice
The RAW format is not supported.

Importing#

The exported heightmap is imported to UNIGINE as follows. In the Landscape Layer Map:

  • In the Import Maps section, select the heightmap file you want to import.
    • For the normalized heightmap, indicate the minimum and maximum heights obtained using the Elevation info node.
    • The unnormalized map does not require setting the height values.
  • In the Landscape Asset section, set the actual size of your terrain in meters, the same as in Size in meters in Instant Terra.
  • Check the Current Data Density value. It shows the meter-to-pixel ratio, the same as Quad size in Instant Terra.
  • In the Import settings section, check the Resolution values. They define the resolution of the heightmap and correspond to Width and Height in Instant Terra. They are set automatically in most cases, but can also be adjusted, if required.

If the heightmap is represented by a tileset, set the corresponding data-filling pattern.

Click Reimport.

Last update: 24.11.2020
Build: ()