Unity3d 绘制摇曳的草丛 sway in the breeze, add Grass Texture, add Detail Meshes

来源:互联网 发布:数据挖掘会议 编辑:程序博客网 时间:2024/04/29 23:51

1.Click Terrain in Hierarchy panel.

2.In Inspector panel ==> Terrain(Script) ==> Click the sixth button==> click "Edit Details..." button, for this menu ,We choose "add Grass Texture".

3.the bigger value Noise Spread is ,the more isolated clumps(更加孤立的团块).

4.choose the grass in the Details on your right side of Inspector. Change the Brush size, Opacity, Target Strength. Then decorate the terrain.


Let‘s look atanother case,“add Detail Meshes”:

(everything that is a grass detail and all the detail meshes set to Grass Render type will sway in the breeze.)


int address :http://docs.unity3d.com/Documentation/Components/terrain-DetailMeshes.html

it says that:Any Terrain decoration that is not trees or grass should be created as aDetail Mesh. This is perfect for things like

                                   rocks, 3D shrubbery灌木),or other static items.

Just because we don't want the rocks or static items sway in the breeze.

Edit Detail... ==> Add Rock. Detail Mesh==>choose rock, and change Healthy Color and Dry Color to white ,change Render Mode to "Vertex List"。


the things to remember about detail meshes are :

one, in Grass Render mode  theymay use alpha channel textures and will be affected by grass type wind, and
 two, in VertexLit Render mode, alpha channels are ignored in textures and the mesh is not affectedby grass type wind.

(from lynda.com Unity 3d 3.5 essential training.)








原创粉丝点击