查看: 4037|回复: 0
打印 上一主题 下一主题

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

[复制链接]
.    

3797

主题

11

听众

5万

积分

首席设计师

Rank: 8Rank: 8

纳金币
32328
精华
41

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

跳转到指定楼层
楼主
发表于 2013-2-16 17:15:35 |只看该作者 |倒序浏览
【Creating a new Terrain 创建一个新的地形】A new Terrain can be created from Terrain->Create Terrain. This will add a Terrain to your Project and Hierarchy Views.使用菜单Terrain->Create Terrain可以创建一个新的地形,它将才你的工程视图和层级视图中添加一个地形Your new Terrain will look like this in the Scene View:你的新地形在场景中看起来是这样的。
A new Terrain in Scene View 场景视图中的一个新地形。If you would like a differently sized Terrain, choose Terrain->Set Resolution from the menu bar. There are a number of settings that related to Terrain size which you can change from this dialog.如果你想要一个不同尺寸的地形,在菜单中选择Terrain->Set Resolution,在弹出的对话框中会有一些关于地形尺寸的设置可供更改。
Setting the resolution of your terrain. 设置地形解析度On the above image, there are values that can be changed.
These values are:在上图中,有一些值是可以更改的。这些值包括:    Terrain Width: The width of the Terrain in units. 地形宽度:地形的单位宽度。
    Terrain Height: The height of the Terrain in units. 地形高度:地形的单位高度。
    Terrain Length: The length of the Terrain in units. 地形长度:地形的单位长度。
    HeightMap Resolution: The HeightMap resolution for the selected Terrain.
    高度图分辨率:当前选中的地形的高度图分辨率
    Detail Resolution: The resolution of the map that controls grass and detail meshes. For performance reasons (to save on draw calls) the lower you set this number the better.
    细节分辨率:控制草地和细节模型的地图分辨率,考虑性能(节省描绘调用)这个值越低越好。
    Control Texture Resolution: The resolution of the splat map used to layer the different textures painted onto the Terrain.
    控制纹理分辨率:用于绘制到地形上混合不同纹理的溅斑贴图的分辨率。
    Base Texture Resolution: The resolution of the composite texture that is used in place of the splat map at certain distances.
    基础纹理分辨率:在一定的距离用于代替溅斑贴图的复合纹理的分辨率  【Navigating the Terrain 地形导航】Terrains work a bit differently than other GameObjects. Most notably, there is no Transform Gizmo that allows you to position the Terrain. Instead, you use ***shes to paint and manipulate your Terrain. If you do want to reposition a Terrain, you can modify its Transform Position values in the Inspector. This allows you to move your Terrain around, but you cannot rotate or scale it.地形与其他的游戏对象有些不同,比较明显的是,它没有允许你移动位置的变换组件线框。反之,你可以用笔刷来绘制和操 作你的地形。如果你想重新定位一个地形,你可以在监视窗中修改它的Transform Position值,它允许你自由移动你的地形,但是你不能旋转或缩放它。While your Terrain is selected in the Hierarchy, you can gracefully navigate the terrain with the F (focus) key. When you press F, wherever your mouse is positioned will be moved to the center of the Scene View. This allows you to touch up an area, and quickly zoom over to a different area and change something else. If your mouse is not hovering over an area of the Terrain when you press the F key, the entire Terrain will be centered in your Scene View.当你在层级中选中你的地形,你可以使用F(焦点)键平滑的导航你的地形。当你按下F键,鼠标所在的位置就会移动到场 景视图的中心,它能使你快速的缩放选中的区域和切换不同的区域来做修改或其他一些事情,当你的鼠标不在地形的区域上时,按下F键会使整个地形在场景视图中 居中。
【Editing the Terrain 编辑地形】With the Terrain selected, you can look at the Inspector to see some incredible new Terrain editing tools.选中地形以后,你可以查看监视窗来找到一些惊艳的新地形编辑工具。
Terrain Editing Tools appear in the Inspector 出现在监视窗中的地形编辑工具。Each rectangular button is a different Terrain tool. There are tools to change the height, paint splat maps, or attach details like trees or rocks. To use a specific tool, click on it. You will then see a short description of the tool appear in text below the tool buttons.每个矩形按钮都是一个不同的地形工具,这些工具可以用来地形升降、绘制纹理或附加细节如树或石头等,想要使用某个工具只需直接点击它,你会看到在工具按钮的下方出现一段简介文字。Most of the tools make use of a ***sh. Many different ***shes are displayed for any tool that uses a ***sh. To select a ***sh, just click on it. The currently selected ***sh will display a preview when you hover the mouse over the terrain, at the size you have specified.这些工具中大部分以笔刷的形式来使用,使用笔刷的工具会显示出一些不同的笔刷,选择一个笔刷,只需在上面点击即可。当你把鼠标放到地形上的时候当前选中的笔刷工具将会显示一个预览,预览的大小就是你的笔刷大小。You will use all of these ***shes in the Scene View to paint directly onto your Terrain. Simply choose the tool and ***sh you want, then click & drag on the Terrain to alter it in real-time. To paint height, textures, or decorations, you must have the Terrain selected in the Hierarchy View.你可以在场景视图中直接使用这些笔刷在你的地形上进行绘制,简单的选择你想要的工具和笔刷,然后在地形上点击并拖动来实时的对地形进行修改。当你想绘制高度、纹理或装饰物时,你必须先层级视图中选中你的地形对象。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键,这将会使鼠标指向的位置相对于场景视图居中并自动缩放到笔刷尺寸的合适距离,这是你在创建地形时最快速且最简单的导航方法。
【Terrain Keyboard Shortcuts 地形键盘快捷键】While Terrain Inspector is active, those keyboard shortcuts can be used for fast editing (all of them customizable in Unity Preferences):当地形监视器被激活时,这些键盘快捷键可以用于快速编辑(所有的快捷键都可以在Unity首选项中进行自定义)    Shift-Q to Shift-Y selects active terrain tool.
    Shif+Q,Shift+Y选择活动的地形工具
    Comma (,) and dot (.) cycle through active ***sh.
    逗号(,)和点号(.) 循环选择笔刷。
    Shift-comma (<) and Shift-dot (>) cycle through active tree/texture/detail object.
    Shift+逗号(<),Shift+点(>)循环选择活动的树/纹理/细节对象。 ---有点怪  【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

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

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

GMT+8, 2024-11-14 12:27 , Processed in 0.097051 second(s), 33 queries .

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

© 2008-2019 Narkii Inc.

回顶部