查看: 4065|回复: 1
打印 上一主题 下一主题

[Unity 组件参考手册]桌面:地形引擎指南之高度

[复制链接]
.    

3797

主题

11

听众

5万

积分

首席设计师

Rank: 8Rank: 8

纳金币
32328
精华
41

活跃会员 优秀版主 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2013-2-16 17:24:23 |只看该作者 |倒序浏览
DesktopUsing any of the Terrain editing tools is very simple. You will literally paint the Terrain from within the Scene View. For the height tools and all others, you just have to select the tool, and click the Terrain in Scene View to manipulate it in real-time.所有地形编辑工具的使用都很简单,你可以直观的在场景视图中绘制你的地形,使用高度工具或其他工具,你只需选中那个工具,然后在场景视图中点击你的地形即可实时操作了。
Raising & Lowering Height 升高和降低高度The first tool on the left is the Raise Height tool.With this tool, you paint ***sh strokes that will raise the height of the Terrain. Clicking the mouse once will increment the height. Keeping the mouse button depressed and moving the mouse will continually raise the height until the maximum height is reached.左边第一个工具是 升高工具,使用这个工具你在地形上绘制时会根据笔触升高地形。单击鼠标会增加高度,保持鼠标按下状态移动鼠标会不断的升高高度直到达到高度的最大值。You can use any of the ***shes to achieve different results你可以使用不同的笔刷来实现不同的结果。If you want to lower the height when you click, hold the Shift key.如果你想要降低高度,按住Shift键再点击鼠标。Note:When you have a ***sh selected, move your mouse over the Terrain in the Scene View and press F. This will center the Scene View over the mouse pointer position and automatically zoom in to the ***sh Size distance. This is the quickest & easiest way to navigate around your Terrain while creating it.注意:当你选中一个笔刷后,在场景视图中把鼠标移动到地形上然后按F键将会以你的鼠标位置为准居中场景并且会自动缩放到笔刷尺寸的距离。这是创建地形过程中在地形上导航最快且最容易的方法。
【Paint Height 绘制高度】The second tool from the left is the Paint Height tool .This tool allows you to specify a target height, and move any part of the terrain toward that height. Once the terrain reaches the target height, it will stop moving and rest at that height.左数第二个工具是绘制高度工具,这个工具允许你指定一个高度,然后移动地形上任意部分达到这个高度,当地形达到这个高度以后,它将停止移动并且重置高度。To specify the target height, hold Shift and click on the terrain at the height you desire. You can also manually adjust the Height slider in the Inspector.想要指定高度,按住Shift键然后在地形上点击你想要的高度位置,你也可以在监视窗中手动调整高度滑块。Now you've specified the target height, and any clicks you make on the terrain will move the terrain up or down to reach that height.现在你指定了目标高度,之后你再点击你的地形是就会使地形相应的位置升高或降低到指定的高度。【Smoothing Height 平滑高度】The third tool from the left is the Smoothing Height tool .This tool allows you to soften any height differences within the area you're painting. Like the other ***shes, paint the areas you want to smooth in the Scene View.左数第三个工具是平滑高度工具,这个工具允许你柔化你绘制的区域的高度差,像其他笔刷一样,在场景视图中绘制你想要进行平滑的区域。【Working with Heightmaps 使用高度图】If you like, you can import a greyscale Heightmap created in photoshop, or from real-world geography data and apply it to your Terrain. To do this, choose Terrain->Import Heightmap - Raw..., then select the desired RAW file. You'll then see some import settings. These will be set for you, but you have the option of changing the size of your Terrain from this dialog if you like. When you're ready, click the Import button. Once the Heightmap has been applied to the Terrain, you can edit it normally with all the Tools described above. Note that the Unity Heightmap importer can only import grayscale raw files. Thus you can't create a raw heightmap using RGB channels, you must use grayscale.如果你愿意,你可以导入一个使用photoshop创建的或来自现实地理数据的灰度高度图来应用到你的地形。想要导入高度图,请在在菜单中选择Terrain->Import Heightmap - Raw..., ,然后选择想要的RAW文件,你将会看到一些导入设置,这些都已经为你设置好了,你可以随意的通过对话框中的选项改变地形的大小。当你准备好以后,点击Import按钮,当高度图被应用到地形以后,你可以正常的使用所有以上介绍的工具对它进行编辑。注意Unity高度图导入器只能导入灰度raw文件,因此你不能创建一个带有RGB通道的raw高度图,你必须使用灰度模式。Unity works with RAW files which make use of full 16-bit resolution. Any other heightmap editing application like Bryce, Terragen, or Photoshop can work with a Unity Heightmap at full resolution.Unity使用全16位分辨率的RAW文件,任何高度图编辑工具如Bryce,Terragen或Photoshop都可以使用全分辨率生成Unity高度图。You also have the option of exporting your Heightmap to RAW format. Choose Terrain->Export Heightmap - Raw... and you'll see a export settings dialog. Make any changes you like, and click Export to save your new Heightmap.你也可以设置导出你的高度图为RAW格式,选择菜单中的Terrain->Export Heightmap - Raw...之后你会看到导出设置对话框。随意改变其中的属性,然后点击Export按钮保存你的新高度图。Unity also provides an easy way to flatten your terrain. Choose Terrain->Flatten.... This lets you flatten your terrain to a height you specify in the wizard.Unity也提供一个简单的方法来弄平你的地形,选择菜单中的Terrain->Flatten....就可以使你弄平你的地形到你在向导中指定的高度。
iOSThis feature is currently not available for iOS targets.此功能目前不支持iOS。
AndroidThis feature is currently not supported by Android targets.此功能目前不支持Android。 【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

nts    

3

主题

1

听众

743

积分

初级设计师

Rank: 3Rank: 3

纳金币
7
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2013-10-20 12:56:55 |只看该作者
可以随意的通过对话框中的选项改变地形的大小。当你准备好以后,点击Import按钮,当高度图被应用到地形以后,你可以正常的使用所有以上介绍的工具对它进行编辑。注意Unity高度图导入器只能导入灰度raw文件,因此你不能创建一个带有RGB通道的raw高度图,你必须使用灰度模式。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-11-10 16:03 , Processed in 0.098290 second(s), 32 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部