Using Terrains 使用地形 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.如下图所示
增加树和增加贴图是一样的,所不同的只是 Blend factor 这个参数,如果要有树在风中摇摆的效果,就设置为1 或以上,不要风的效果就设置为 0. 按住 Shift, 可以移除树.还是两个快捷键 F 键和 Alt 键.可以提高效率.
树的参数如下: Brush Size Radius in meters of the tree placing brush. 以米为单位,树的半径.一次画多少棵树 Tree Spacing Percentage of tree width between trees.树与树之间的百分数 Color Variation Allowed amount of color difference between each tree. 树与树之间颜色差的范围 Tree Height Height adjustment of each tree compared to the asset.场景中树与模型之间高度比 Height Variation Allowed amount of difference in height between each tree.树与树之间的高度比 Tree Width Width adjustment of each tree compared to the asset. 场景中树与模型之间宽度比 Width Variation Allowed amount of difference in width between each tree. 树与树之间的宽度比
Pixel Error Amount of allowable errors in the display of Terrain Geometry. This is essentially a LOD setting. 地形容差. Base Map Dist. The distance that Terrain Textures will be displayed in high-resolution. 高分辨率下显示地形贴图的距离. Lighting Vertex Lightmap Pixel Terrain lighting mode:地形灯光模式. Terrain is lit by lights in vertex lit mode. 顶点灯光模式 Terrain uses lightmap and is not affected by lights.灯光贴图模式 Terrain is lit by pixel & vertex lights up close, and fades out to lightmap in the distance. Close by it can also receive shadows. 像素灯光模式 Cast Shadows Should terrain cast shadows?地形是否显示阴影 Tree & Detail Settings 树与细节的设置 Draw If enabled, all trees, grass, and detail meshes will be drawn 是否可画.可用的话所有树,草和细节都渲染.必须为可用,不然看不到树,草和细节 . Detail Distance Distance from the camera that details will stop being displayed. 离摄像机多远之后不显示细节 Tree Distance Distance from the camera that trees will stop being displayed. The higher this is, the further-distance trees can be seen.同上,不过这个是关于树的
Billboard Start Distance from the camera that trees will start appearing as Billboards instead of Meshes.离摄像机多远树开始以图片而不是网格来显示 Fade Length Total distance delta that trees will use to transition from Billboard orientation to Mesh orientation.树的图片和网格方式显示距离. Max Mesh Trees Total number of allowed mesh trees to be capped in the Terrain. 地形网格显示的最大数