比較バージョン

キー

  • この行は追加されました。
  • この行は削除されました。
  • 書式設定が変更されました。

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.



Adding an height field

Create a mesh representing your ground in Maya and move some vertices/faces, so that the ground is uneven.

In the height field manager press on the "Add" Button, then in the sub dialog type a name (i.e. hf) and, after making sure your ground mesh is selected, 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

A 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 if you edit the your ground mesh.

Animated height fields are available in Atoms, although they are much less performant than static height fields. 
This is because Atoms will have to rebuild the internal structure data of the height field at each time change.
Image Removed

Height Field Manager GUI

Height Field Manager GUIで新しいフィールドを追加します。
こちらのGUIは、ユーザーのシーンに含まれているすべてのHeight フィールドを表示します。

Height フィールドの項目を右クリックすると、メニューがポップアップします。そこからユーザーは "Edit"、 "Reload"、 "Delete"、 "Select"することができます。

アニメーションのHeight フィールドは、Atomsで利用可能です。 Atomsは、アニメーションのHeight フィールドの内部データを各フレームで再構築します。そのため、スタティックなHeightフィールドよりもパフォーマンスが低下します。

高さを作成するときは、デフォルトのKdTree structureまたはBVHを選択できます。

BVHは、Height フィールドを格納するためのレイキャストの加速構造です。デフォルトのKdTreeと比較すると、ビルドは格段に高速ですが、レイキャストは遅延することがあります。アニメーションのHeight フィールドや充分なメッシュを使用することを推奨します。

注意

3DアプリケーションでHeight フィールドを変更するたびに、Height フィールドを再読み込みする必要があります。


注意

エージェントがHeight フィールドと交差している場合は、メッシュをもう少し細かく分割して、再読み込みを実行してください。


Image Added