This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Professional (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Materials and Shaders
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
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Сэмплы материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Creating Landscape

To generate a basic landscape we need elevation/height and imagery/color data.

Adding a Georeferenced Image#

We are going to add georeferenced images from the asset pack.

Adding Elevation/Height#

  1. Click + for Elevation/Height.

    The interface for adding a new source becomes available on the Parameters tab.

  2. Keep the source type as it is and click the folder icon:

  3. Select Assets, as you have already added the required files as assets to your project at its creation.
  4. In the Asset Browser, select sw_georeferenced/elev/elevation25mpx.tif.
  5. Click the Preview button and the preview for the added asset will be displayed on the Map tab. This step is optional, you can create the layer without generating the preview.

  6. Click the Create Elevation Layer(s) button and this source will be added to the Terrain Sources list.

Adding Imagery/Color#

Now let's add the Imagery sources. The process is mostly the same as for the Elevation source.

  1. Click + for Imagery/Color.

    The interface for adding a new source becomes available on the Parameters tab.

  2. Keep the source type as it is and click the folder icon:

  3. In the Asset Browser, open the data/sw_georeferenced/img/ folder, select all assets in it (Ctrl+A), and click OK.

  4. Click the Preview button and the preview for the added assets will be displayed on the Map tab. This step is optional, you can create the layer without generating the preview.

  5. Click the Create Imagery Layer(s) button and these sources will be added to the Terrain Sources list.

    In the Map window, the created sources are visualized with their boundaries. These boundaries define the scope of source data to be used for generation. By default, all source data is used for generation.

Adding a TMS Source#

Let's add an extra piece from a TMS source to try it out.

  1. Click + for Imagery/Color.

  2. Select TMS as the Source Type in the drop-down list.

  3. Add a TMS URL to download the data from. To add a URL, click the button:

    The table to manage TMS URLs will open. It's empty by default, so let's add an URL: https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}.png, type an alias that will be displayed in the drop-down list, and click Save Changes.

    For more details on adding TMS URLs see here.

  4. Set zoom level to 13. You can try higher levels, but they mean higher load. The preview generation process may take more time.

  5. Set the boundaries for the source, otherwise Sandworm doesn't know what data is required.

    The easiest way is to click the button — the area displayed on the Map tab will be enclosed in boundaries. You can scroll out and move the points, add more points or delete them.

  6. Click the Preview button and the preview for the added assets will be displayed on the Map tab. This step is optional, you can create the layer without generating the preview.

  7. Click the Create Imagery Layer button and this source will be added to the Terrain Sources list.

The last added layer is displayed on the preview. You can move it to the background using the context menu available on the right click on the corresponding terrain source or on the Map preview. If you click on the preview, make sure that the selection mode is enabled.

When generating a terrain, data with the higher density is selected from all available sources. Therefore, in our case the imagery of the terrain taken from ArcGIS will be taken only for the area where no data from assets is provided.

Generated Terrain#

The generated terrain will look as follows:

Generated Landscape Terrain

Here we can see both parts: high-density imagery data with height data in the foreground, and lower-quality imagery data with no height data in the background.

What Else#

  • Search for an elevation TMS source, because imagery added without elevation will look flat.
  • Remove or disable sources that you don't need.
  • Check the article on the elevation and imagery for a more detailed description of parameters.
Last update: 08.11.2022
Build: ()