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

创造景观

警告
本文介绍的功能在 Community SDK 版本中不可用。
您应该升级到 Engineering / Sim SDK版本才能使用它。

To generate a basic landscape we need elevation/height and imagery/color data.为了生成一个基本的景观,我们需要海拔/高程和照片/颜色数据。

See Also
另请参阅
#

观看这段视频,来自Sandworm地形生成系列视频教程:

Adding a Georeferenced Image
添加地理参考照片
#

We are going to add georeferenced images from the asset pack.我们将从资源包中添加地理引用照片。

Adding Elevation/Height
添加海拔/高
#

  1. Click + for Elevation/Height.点击 Elevation/Height+

    The interface for adding a new source becomes available on the Parameters tab.Parameters选项卡上可以使用添加新源的接口。

  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.选择Assets,因为您已经在创建项目时将所需的文件作为资源添加到项目中。
  4. In the Asset Browser, select sw_georeferenced/elev/elevation25mpx.tif.在资源浏览器中,选择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.单击Preview按钮,添加的资源的预览将显示在Map选项卡上。这一步是可选的,您可以在不生成预览的情况下创建图层。

  6. Click the Create Elevation Layer(s) button and this source will be added to the Terrain Sources list.单击Create Elevation Layer(s)按钮,这个源将被添加到Terrain Sources列表中。

Adding Imagery/Color
添加照片/颜色
#

Now let's add the Imagery sources. The process is mostly the same as for the Elevation source.现在让我们添加照片源。这个过程与Elevation源代码的过程基本相同。

  1. Click + for Imagery/Color.点击 Imagery/Color+

    The interface for adding a new source becomes available on the Parameters tab.Parameters选项卡上可以使用添加新源的接口。

  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.在资源浏览器,打开data/sw_georeferenced/img/文件夹,选择所有资源(Ctrl + A),并单击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.单击Preview按钮,添加的资源的预览将显示在Map选项卡上。这一步是可选的,您可以在不生成预览的情况下创建图层。

  5. Click the Create Imagery Layer(s) button and these sources will be added to the Terrain Sources list.单击Create Imagery Layer(s)按钮,这些资源将被添加到Terrain Sources列表。

    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.Map窗口中,创建的源和它们的边界是可视化的。这些边界定义了要用于生成的源数据的范围。缺省情况下,将使用所有源数据进行生成。

Adding a TMS Source
添加TMS源
#

Let's add an extra piece from a TMS source to try it out.让我们从TMS源添加一个额外的块试试。

  1. Click + for Imagery/Color.点击 Imagery/Color+

  2. Select TMS as the Source Type in the drop-down list.选择TMS作为源类型的下拉列表。

  3. Add a TMS URL to download the data from. To add a URL, click the button:添加一个TMS URL来下载数据。要添加一个URL,点击按钮:

    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.表管理TMS url将打开。默认情况下它是空的,让我们添加一个URL: https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}.png类型别名,将显示下拉列表,然后单击Save Changes

    For more details on adding TMS URLs see here.有关添加TMS url的详细信息,请参见 这里

  4. Set zoom level to 13. You can try higher levels, but they mean higher load. The preview generation process may take more time.缩放级别设置为13。您可以尝试更高的水平,但它们意味着更高的负载。预览生成过程可能需要更多的时间。

  5. Set the boundaries for the source, otherwise Sandworm doesn't know what data is required.为源设置边界,否则Sandworm不知道需要什么数据。

    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.最简单的方法是单击按钮 -- Map选项卡上显示的区域将封闭边界。您可以滚动和移动点,添加更多的点或删除它们。

  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.单击Preview的预览按钮,添加资源将被显示在Map选项卡。这一步是可选的,您可以创建层没有生成预览。

  7. Click the Create Imagery Layer button and this source will be added to the Terrain Sources list.单击Create Imagery Layer按钮,这个源将被添加到Terrain Sources列表中。

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.最后添加的图层显示在预览中。 您可以使用右键单击相应地形源或 Map 预览中的上下文菜单将其移动到背景。 如果单击预览,请确保启用了 选择模式

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.在生成地形时,从所有可用的来源中选择密度较高的数据。因此,在我们的例子中,从ArcGIS中获取的地形照片将仅用于未提供资源数据的区域。

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.搜索一个海拔TMS源,因为照片添加没有海拔将看起来平坦。
  • Remove or disable sources that you don't need.删除禁用 您不需要的来源。
  • Check the article on the elevation and imagery for a more detailed description of parameters.查看海拔和照片上的文章,了解更详细的参数说明。
最新更新: 2023-04-13
Build: ()