This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
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
创建内容
内容优化
Materials
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: 2022-11-08
Build: ()