木 / Trees
Wind Zones

草とその他の詳細について

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

terrainシステムは草の塊を持つことができ,岩のような他の小さなオブジェクトの表面を覆うことができます。草は他を詳細に標準メッシュから生成している間,個々の塊を表現する2D画像を用いてレンダリングされます。

Terrain with grass
Terrain with grass

イネーブルの詳細

ツールバーのdetailsボタンで草/詳細のペインティングができます。

最初は,terrainが利用できる草や詳細はありませんが,インスペクタで_Edit Details_ボタンをクリックすると,表示されるメニュー上の_Add Grass Texture_と_Add Detail Mesh_オプションが表示されます。ウィンドウにterrainに追加するアセットの選択が表示されます。

For grass, the window looks like this:-

The Add Grass Texture window
The Add Grass Texture window

The Detail Texture is the texture that represents the grass. A few suitable textures are included in Unity’s standard assets (menu: Assets > Import Package > Terrain Assets) but you can also create your own. The texture is simply a small image with alpha set to zero for the empty areas. (“Grass” is a generic term, of course - you can use the images to represent flowers, brush and perhaps even artificial objects like barbed wire coils.)

The Min Width, Min Height, Max Width and Max Height values specify the upper and lower limits of the size of the clumps of grass that are generated. For an authentic look, the grass is generated in random “noisy” patterns that have bare patches interspersed with the grass.

The Noise Spread value controls the approximate size of the alternating patches, with higher values indicating more variation within a given area. (Tech note: the noise is actually generated using Perlin noise; the noise spread refers to the scaling applied between the x,y position on the terrain and the noise image.) The alternating patches of grass are considered more “healthy” at the centres than at the edges and the Healthy/Dry Color settings show the health of grass clumps by their color.

Finally, when the Billboard option is enabled, the grass images will rotate so that they always face the camera. This option can be useful when you want to show a dense field of grass because there is no possibility of seeing clumps side-on and therefore visibly two-dimensional. However, with sparse grass, the rotations of individual clumps can become apparent, creating a strange effect.

For detail meshes, such as rocks, the selection window looks like this:-

The Add Detail Mesh window
The Add Detail Mesh window

The Detail property is used to select a prefab from your project which will be scaled by the Random Width and Random Height values for individual instances. The Noise Spread and Healthy/Dry Color values work the same as they do for grass (although the concept of “healthy” is stretched somewhat when applied to objects like rocks!) The Render Mode can be set to Grass or Vertex Lit. In Grass Mode, the instances of detail objects in the scene will be flattened into 2D images that behave like the grass textures. In Vertex Lit mode, the details will be rendered as solid, vertex lit objects in the scene.

木 / Trees
Wind Zones