terrain layer
We’re excited to introduce the Terrain Tools package (preview) for Unity 2019.1. This package contains over 15 new sculpting tools, as well as a utility toolbox to streamline terrain workflow.
我们很高兴为Unity 2019.1引入Terrain Tools软件包(预览版)。 该软件包包含超过15种新的雕刻工具,以及用于简化地形工作流程的实用工具箱。
The Terrain Tools package contains brand new sculpting tools and a collection of common-use utilities to help automate tedious tasks.
Terrain Tools软件包包含全新的雕刻工具和一系列常用工具,可帮助自动完成繁琐的任务。
Existing terrain sculpting tools have been improved with new controls for rotation, spacing and scatter. Strength, size and rotation parameters now have a jitter control to help you add natural variation to your brush strokes. We’ve also added shortcut keys to streamline the terrain brush workflow, providing quick access to common brush controls without needing to fiddle with the Inspector window.
现有的地形雕刻工具已经通过旋转,间距和散布的新控件得到了改进。 强度,大小和旋转参数现在具有抖动控制,可帮助您为笔触添加自然变化。 我们还添加了快捷键,以简化地形画笔的工作流程,从而提供了对常用画笔控件的快速访问,而无需使用Inspector窗口。
Several new sculpting tools are available when using this package including bridge, clone, noise, terrace, and twist. There are also Erosion tools that modify your height map based on Hydraulic, Wind and Thermal erosion. The package documentation contains details about all the new sculpting tools and how to use them.
使用此软件包时,可以使用几种新的雕刻工具,包括桥,克隆,噪声,梯田和扭曲。 也有侵蚀工具会根据水力,风和热侵蚀来修改高度图。 软件包文档中包含有关所有新雕刻工具以及如何使用它们的详细信息。
The last major addition included in this package is the Terrain Toolbox. Unity 2018.3 enabled users to paint across multiple terrain tiles. This new feature was awesome but needed some important tooling to help streamline the creation of large terrains requiring many tiles and manage existing scenes with multiple terrain tiles.
此程序包中包含的最后一个主要功能是“地形工具箱”。 Unity 2018.3使用户能够跨多个地形图块进行绘制。 这项新功能很棒,但需要一些重要的工具来帮助简化需要许多图块的大型地形的创建并管理具有多个地形图块的现有场景。
The Terrain Toolbox can be launched from Menu > Window > Terrain > Terrain Toolbox. This is a centralized hub for all your terrain-related settings. It helps you create new terrains utilizing preset settings or imported heightmap(s), batch change terrain settings on multiple terrain tiles, and import/export splat-maps and height-maps for improved interoperability between Unity and other digital content creation software.
可以从菜单>窗口>地形>地形工具箱中启动地形工具箱。 这是所有与地形相关的设置的集中式枢纽。 它可帮助您利用预设设置或导入的高度图创建新的地形,在多个地形图块上批量更改地形设置,以及导入/导出splat贴图和高度图,以提高Unity与其他数字内容创建软件之间的互操作性。
安装地形工具包 (Installing the Terrain Tools Package)
To access the new package, you will need to install the new Terrain Tools package from the Package Manager. Go to Window > Package Manager. Simply find the “Terrain Tools” entry in the list on the left, and click the “Install” button on the lower right of the window.
要访问新软件包,您需要从“软件包管理器”中安装新的Terrain Tools软件包。 转到窗口>程序包管理器。 只需在左侧列表中找到“地形工具”条目,然后单击窗口右下方的“安装”按钮。
This package is intended to work with Unity 2019.1. It has only been tested against that release. This package is also in preview and as such is subject to frequent changes (API, UX, scope, etc.) and not covered by traditional Unity support. Please report any issues you find on our forum page instead.
该软件包旨在与Unity 2019.1一起使用 。 仅针对该版本进行了测试。 该软件包也处于预览状态,因此会经常更改(API,UX,范围等),并且不受传统Unity支持的覆盖。 请报告在论坛页面上发现的所有问题。
To showcase how to use the Terrain Tools package to sculpt beautiful terrains in Unity let’s walk through an example:
为了展示如何使用Terrain Tools软件包在Unity中雕刻美丽的地形,让我们来看一个示例:
雕刻火山 (Sculpting a Volcano)
Before we get started, let’s set up our brush hotkeys so we can quickly switch between the brushes we’re going to be using the most. I like using the function keys for switching between my sculpting brushes, but with the Shortcut Manager (Edit > Shortcuts menu) you can set these however you’d like.
在开始之前,让我们设置画笔热键,以便我们可以快速切换要使用最多的画笔。 我喜欢使用功能键在雕刻笔之间进行切换,但是使用“ 快捷方式管理器” (“编辑”>“快捷方式”菜单),可以根据需要进行设置。
Now that we have our brush shortcuts set up, let’s start by roughing out the macro shapes for our volcano. I live in the Pacific Northwest, so I was inspired by Mt. Saint Helens, which experienced a massive landslide following the eruption in 1980.
现在我们已经设置了画笔快捷方式,让我们从为火山绘制宏观形状开始。 我住在太平洋西北地区,所以受到了山的启发。 圣海伦斯(Saint Helens)在1980年的火山爆发后经历了大规模的滑坡。
I use the new procedural Noise tool to get started by blocking in a rough mountainous shape. I’m not too concerned with the brush settings here – I really just wanted some organic variation, but I did vary the noise offset and scale a bit to create features of varying scale.
我使用新的程序性“噪波”工具开始以粗糙的山区形状进行阻塞。 我在这里不太关心画笔设置-我确实只是想要一些有机变化,但是我确实改变了噪波偏移并进行了一些缩放以创建可变比例的功能。
I’m happy with the overall composition, but it’s not looking very natural yet, so I’m going to first use the Thermal Erosion tool to smooth out the bumps a bit and allow the sediment to sort of “avalanche” down the steep slopes as it would in real life. Here, I used the “Granite Scree” preset uniformly over the peaks just to make the angles a little more natural, and smooth things out a bit.
我对整体组成感到满意,但是看起来还不是很自然,因此我将首先使用热蚀工具稍微平整凹凸并允许沉积物在陡峭的斜坡上“雪崩”。就像现实生活中那样。 在这里,我在峰上均匀地使用了“花岗岩碎石”预设,只是为了使角度稍微自然一些,并使物体平滑一些。
Ok, this is starting to look a little more natural, but we’re obviously not there yet; it sort of looks a bit like a pile of sand, rather than a volcanic mountain. Let’s fix that by switching over to the Hydraulic Erosion tool to simulate the effect of eons of rainfall eroding the landscape.
好的,这看起来似乎更自然了,但是我们显然还不存在。 它看起来有点像一堆沙子,而不是一座火山山。 让我们通过切换到“水力侵蚀”工具来解决该问题,以模拟降雨侵蚀土壤的效果。
This tool works best at high terrain resolutions, so I’m going to switch the resolution of my terrain tile to 2049 so I can capture as much detail as possible. (Later I can down-res, and maintain most of my erosion details).
该工具在高地形分辨率下效果最佳,因此我将将地形图块的分辨率切换为2049,以便可以捕获尽可能多的细节。 (稍后我可以缩减分辨率,并保留大部分腐蚀细节)。
As I use the Hydraulic Erosion tool, I adjust the Simulation Scale parameter slightly to add variation in the details. I also fiddle with the Riverbank parameters to vary the shape of the features the tool creates. This is a really complex sculpting tool, so it’s worth spending some time to get familiar with. However, the default settings work well if you just want a quick result.
在使用“水力侵蚀”工具时,我会稍微调整“模拟比例”参数以添加细节变化。 我还使用Riverbank参数来改变该工具创建的功能的形状。 这是一个非常复杂的雕刻工具,因此值得花一些时间来熟悉。 但是,如果您只想快速获得结果,则默认设置会很好用。
So after some noodling with these three sculpting tools, the heightmap is starting to look much more recognizable as a volcanic mountain – it just needs some materials. Rather than manually paint in the materials though, let’s export the heightmap using the new TerrainToolbox, and generate the material distribution map in an external app (I used World Machine).
因此,在对这三种雕刻工具进行了点刻调整之后,高度图开始看起来像火山山一样更加可识别–它只需要一些材料。 但是,让我们使用新的TerrainToolbox导出高度图,然后在外部应用程序中生成材质分布图(我使用World Machine),而不是手动在材质中绘制。
Launch the Terrain Toolbox from the Window > Terrain > Terrain Toolbox menu option, and select the Terrain Utilities tab. The option to export our heightmap can be found at the bottom of the window:
从“窗口”>“地形”>“地形工具箱”菜单选项启动“地形工具箱”,然后选择“地形实用工具”选项卡。 可以在窗口底部找到导出高度图的选项:
I won’t get into the specifics of my World Machine setup (that’s for another blog post!), but I used a combination of erosion, slope and concavity selection nodes to generate my splat map, using the sculpted heightmap as an input.
我将不涉及我的World Machine设置的细节(这是另一篇博客文章!),但是我使用了侵蚀,坡度和凹度选择节点的组合来生成我的splat图,并使用了雕刻的高度图作为输入。
Once we have the splat-map generated, we just import back into Unity using the TerrainToolbox, and we have a nice, snow-capped peak:
生成splat-map后,我们就可以使用TerrainToolbox导入回Unity,然后得到一个漂亮的雪峰:
Finally, I create neighboring terrain tiles, noodle around some more with the erosion brushes (used the new wind erosion brush to give a natural wind-swept look to the snowy peaks), and add some rolling hills surrounding the main peak (using the same techniques as above).
最后,我创建了相邻的地形图块,并使用侵蚀刷(使用新的风力侵蚀刷使雪峰具有自然的风扫效果)围绕着更多面,并在主峰周围添加了一些起伏的丘陵(使用相同的以上技术)。
We hope the tools in the Terrain Tools packages enhance your experience using Unity’s terrain and we can’t wait to see all the spectacular terrains users sculpt. Stay tuned for future updates from the Terrain Tools team, we have more tools planned for this 2019 cycle that we can’t wait to share with you all!
我们希望Terrain Tools软件包中的工具能够改善您使用Unity地形的体验,并且我们迫不及待地看到用户雕刻的所有壮观地形。 请随时关注Terrain Tools团队的未来更新,我们计划在2019年这一周期中推出更多工具,我们迫不及待想与大家分享!
We’re also looking forward to hearing what you think about our new package on our forum page.
我们也期待在论坛页面上听到您对我们新包装的看法。
翻译自: https://blogs.unity3d.com/2019/05/28/speed-up-your-work-with-the-new-terrain-tools-package/
terrain layer