比較バージョン

キー

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

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 > Height field manager.



Adding an height field

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, so that the ground is uneven.In the height field manager .

With your mesh still selected press on the "Add" Button in the height field manager, then type a name in the sub dialog type a name dialog (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 meshwhenever you modify it in your 3D application.

Animated height fields are available in Atoms. Atoms rebuilds the animated height field internal structure data of the height field at each time change when animatedframe, for this reason they are less performant performing than static height fields.