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

Unigine.TerrainGlobalLod Class

This class is used to manage a single LOD (level of detail) of the global terrain object.

TerrainGlobalLod Class

Перечисления (Enums)

TYPE#

ИмяОписание
TERRAIN_GLOBAL_LOD = 0Albedo, normal or detail mask LOD of the global terrain object.
TERRAIN_GLOBAL_LOD_HEIGHT = 1Height LOD of the global terrain object. This type of LOD is used for collision and intersection detection.
NUM_TERRAIN_GLOBAL_LODS = 2Total number of LOD types of the global terrain objectю

Properties

float ClearDistance#

The clear distance of the lod. starting from this distance the tiles of the lod are removed from memory.

float LoadDistance#

The current load distance for the lod. starting from this distance the tiles of the lod are loaded into memory.

float VisibleDistance#

The current visibility distance. starting from this distance the tiles of the lod become visible.

int ViewportMask#

The current bit mask for rendering into the viewport. the lod is rendered, if its mask matches the player's one.

float TileDensity#

The current density of lod tiles.

string Path#

The path to the folder where the lod is stored.

bool Enabled#

The A value indicating if the lod is enabled.

string TypeName#

The Name of the terrain global LOD type.

TerrainGlobalLod.TYPE Type#

The LOD type.

Members


Tileset GetTileset ( ) #

Returns the tileset for the LOD.

Return value

LOD tileset.

int RenamePath ( string new_path ) #

Sets a new path to the folder where the LOD is stored.

Arguments

  • string new_path - New path to be set.

Return value

1 if the new path was set successfully; otherwise, 0.

void Reload ( ) #

Reloads the LOD.

TerrainGlobalLod.TYPE GetType ( ) #

Returns the type of the LOD. This method is used to define whether it is a height LOD used for collision and intersection detection or an ordinary albedo, normal or detail mask LOD.

Return value

LOD type, one of the TYPE values.

string GetTypeName ( ) #

Returns the name of the terrain global LOD type. This method is used to define whether it is a height LOD used for collision and intersection detection or an ordinary albedo, normal or detail mask LOD.

Return value

Name of the terrain global LOD type. One of the following values:
  • TerrainGlobalLod
  • TerrainGlobalLodHeight
Last update: 19.04.2024
Build: ()