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

Unigine::LandscapeMapFileSettings Class

Header: #include <UnigineObjects.h>

This class is used to load, modify, and apply landscape map settings stored in a .lmap file.

LandscapeMapFileSettings Class

Members


LandscapeMapFileSettings ( ) #

The LandscapeMapFileSettings constructor.

void setHeightBlending ( int blending ) #

Sets a new blending mode to be used for heights data of the landscape map.

Arguments

  • int blending - Blending mode to be used for heights data. One of the following values:
    • 0 - Alpha Blend
    • 1 - Additive

int getHeightBlending ( ) #

Returns the current blending mode used for heights data of the landscape map.

Return value

Blending mode used for heights data. One of the following values:
  • 0 - Alpha Blend
  • 1 - Additive

void setAlbedoBlending ( int blending ) #

Sets a new blending mode to be used for albedo data of the landscape map.

Arguments

  • int blending - Blending mode to be used for albedo data. One of the following values:
    • 0 - Alpha Blend
    • 1 - Additive
    • 2 - Overlay
    • 3 - Multiplicative

int getAlbedoBlending ( ) #

Returns the current blending mode used for albedo data of the landscape map.

Return value

Blending mode used for albedo data. One of the following values:
  • 0 - Alpha Blend
  • 1 - Additive
  • 2 - Overlay
  • 3 - Multiplicative

void setMaskBlending ( int mask, int blend ) #

Sets a new blending mode to be used for the data of the specified detail mask.

Arguments

  • int mask - Detail mask number in the [0; 19] range.
  • int blend - Blending mode used for the data of the specified detail mask. One of the following values:
    • 0 - Alpha Blend
    • 1 - Additive
    • 2 - Overlay
    • 3 - Multiplicative

int getMaskBlending ( int mask ) #

Returns the current blending mode used for the data of the specified detail mask.

Arguments

  • int mask - Detail mask number in the [0; 19] range.

Return value

Blending mode used for the data of the specified detail mask. One of the following values:
  • 0 - Alpha Blend
  • 1 - Additive
  • 2 - Overlay
  • 3 - Multiplicative

void setEnabledHeight ( bool height ) #

Sets a value indicating if heights data of the landscape layer map is to be used.

Arguments

  • bool height - true to enable using heights data of the landscape layer map, false - to disable it.

bool isEnabledHeight ( ) #

Returns a value indicating if heights data of the landscape layer map is to be used.

Return value

true if heights data of the landscape layer map is to be used; otherwise, false.

void setEnabledAlbedo ( bool albedo ) #

Sets a value indicating if albedo data of the landscape layer map is to be used.

Arguments

  • bool albedo - true to enable using albedo data of the landscape layer map, false - to disable it.

bool isEnabledAlbedo ( ) #

Returns a value indicating if albedo data of the landscape layer map is to be used.

Return value

true if albedo data of the landscape layer map is to be used; otherwise, false.

void setEnabledMask ( int mask, bool enabled ) #

Sets a value indicating if the data of the detail mask with the specified number is to be used.

Arguments

  • int mask - Detail mask number in the [0; 19] range.
  • bool enabled - true to enable using the data of the specified detail mask, false - to disable it.

bool isEnabledMask ( int mask ) #

Returns a value indicating if the data of the detail mask with the specified number is to be used.

Arguments

  • int mask - Detail mask number in the [0; 19] range.

Return value

true if the data of the detail mask with the specified number is to be used; otherwise, false.

void setEnabledOpacityHeight ( bool height ) #

Sets a value indicating if opacity information for heights data of the landscape layer map is to be used. Opacity information is required to blend data of several landscape layer maps.

Arguments

  • bool height - true to enable using opacity information for heights data of the landscape layer map, false - to disable it.

bool isEnabledOpacityHeight ( ) #

Returns a value indicating if opacity information for heights data of the landscape layer map is to be used. Opacity information is required to blend data of several landscape layer maps.

Return value

true if opacity information for heights data of the landscape layer map is to be used; otherwise, false.

void setEnabledOpacityAlbedo ( bool albedo ) #

Sets a value indicating if opacity information for albedo data of the landscape layer map is to be used. Opacity information is required to blend data of several landscape layer maps.

Arguments

  • bool albedo - true to enable using opacity information for albedo data of the landscape layer map, false - to disable it.

bool isEnabledOpacityAlbedo ( ) #

Returns a value indicating if opacity information for the albedo data of the landscape layer map is to be used. Opacity information is required to blend data of several landscape layer maps.

Return value

true if opacity information for the albedo data of the landscape layer map is to be used; otherwise, false.

void setEnabledOpacityMask ( int mask, bool enabled ) #

Sets a value indicating if opacity information for the heights data of the detail mask with the specified number is to be used. Opacity information is required to blend data of several landscape layer maps.

Arguments

  • int mask - Detail mask number in the [0; 19] range.
  • bool enabled - true to enable using opacity information for the data of the specified detail mask, false - to disable it.

bool isEnabledOpacityMask ( int mask ) #

Returns a value indicating if opacity information for the data of the detail mask with the specified number is to be used. Opacity information is required to blend data of several landscape layer maps.

Arguments

  • int mask - Detail mask number in the [0; 19] range.

Return value

true if opacity information for the data of the detail mask with the specified number is to be used; otherwise, false.

Math::ivec2 getTilesSize ( ) #

Returns the size of the landscape map tiles.

Return value

Two-component vector (X, Y) representing the number of tiles in the landscape layer map along X and Y axes.

Math::ivec2 getResolution ( ) #

Returns the landscape layer map resolution.

Return value

Two-component vector (X, Y) representing landscape layer map resolution along X and Y axes.

UGUID getGUID ( ) #

Returns a GUID of the .lmap file containing landscape map data.

Return value

GUID of the .lmap file.

bool isLoaded ( ) #

Returns a value indicating if the landscape map file (.lmap) is loaded.

Return value

true if opacity information for the data of the detail mask with the specified number is to be used; otherwise, false.

bool load ( const UGUID & guid ) #

Loads landscape map settings from a file with the specified GUID.

Arguments

  • const UGUID & guid - GUID of the .lmap file containing landscape map data.

Return value

true if landscape map settings were successfully loaded from the file with the specified GUID; otherwise, false.

bool apply ( ) #

Applies all settings stored in the landscape map file (.lmap).

Return value

true if landscape map file settings were successfully applied; otherwise, false.
Last update: 17.02.2021
Build: ()