Height fields are used by Atoms for handling your terrains or ground meshes.
You can open the height field manager by using the shelf button or via the Atoms Menu: Atoms > Atoms Crowdは、TerrainまたはGround Mesheを処理するために、Heightフィールドを使用します。
Height Field Managerは、シェルフボタンを使用するか、Atomsメニューから開くことができます。Atoms> Height field manager.
Create a mesh representing your ground in Maya, scale it so that your agents will have plenty of space to move around and move some vertices/faces.
With your mesh still selected press on the "Add" Button in the height field manager, then type a name in the sub dialog (i.e. hf) and press the "Select" button. The name of your mesh will appear in the "Mesh" field.
Leave the "Animated" box unchecked.
Click on "OK", a new entry "hf" will appear in your Height Fields list.
Now go back to your stateMachine/clipReader module in the agent group UI and set the "heightField" value to "hf".
Rewind your sim and press play. Your agents will walk on the ground mesh.Height Field Manager GUI
Height Field Manager
GUIA few more things.
If you right click on an height field in the "Height Fields" list a menu will pop up. From there you will be able to "Reload", "Edit" or "Delete" it.
You must reload an height field whenever you modify it in your 3D application.
Animated height fields are available in Atoms. Atoms rebuilds the animated height field internal data at each frame, for this reason they are less performing than static height fields.
GUIで新しいフィールドを追加します。
こちらのGUIは、ユーザーのシーンに含まれているすべてのHeight フィールドを表示します。
Height フィールドの項目を右クリックすると、メニューがポップアップします。そこからユーザーは "Edit"、 "Reload"、 "Delete"、 "Select"することができます。
アニメーションのHeight フィールドは、Atomsで利用可能です。 Atomsは、アニメーションのHeight フィールドの内部データを各フレームで再構築します。そのため、スタティックなHeightフィールドよりもパフォーマンスが低下します。
高さを作成するときは、デフォルトのKdTree structureまたはBVHを選択できます。
BVHは、Height フィールドを格納するためのレイキャストの加速構造です。デフォルトのKdTreeと比較すると、ビルドは格段に高速ですが、レイキャストは遅延することがあります。アニメーションのHeight フィールドや充分なメッシュを使用することを推奨します。
注意 |
---|
3DアプリケーションでHeight フィールドを変更するたびに、Height フィールドを再読み込みする必要があります。 |
注意 |
---|
エージェントがHeight フィールドと交差している場合は、メッシュをもう少し細かく分割して、再読み込みを実行してください。 |