メタデータの末尾にスキップ
メタデータの先頭に移動

このページの古いバージョンを表示しています。現在のバージョンを表示します。

現在のバージョンとの相違点 ページ履歴を表示

« 前のバージョン バージョン 5 次のバージョン »

Atoms can place agents on different terrains using height field and gravity field.


Basic terrain
  • Create and agent group
  • Add a grid layout module and set the size attribute to (5, 0, 5 )
  • Add a state machine module and set the state attribute to 1
  • Create a simple ground with some hills
  • Open the height field manager formt he Atoms menu Atoms → Heigh field manager
  • Select the terrain mesh
  • Press the Add button,  in the name field of the dialog set a name, for example put "ground"
  • Press the select button to automatically fill the mesh field with the ground path
  • Press Ok, close the height field manager and rewind your scene
  • Select the agent group
  • In the state machine module options, set ground has height field
  • Rewind your scene and press play. Atoms will place the agents on the mesh


If you modify the ground you need to update the heght field. Open the Hegiht field manager, select the height field form the list then press the right mouse button and choose reload to update the height field



Deformed terrain
  • Create and agent group
  • Add a grid layout module and set the size attribute to (5, 0, 5 )
  • Add a state machine module and set the state attribute to 1
  • Create a plane and increase the subdivision to 50 50 and scale to 3000,3000,3000
  • Add a wave deformer, set the amplitude to 0.1 and put some keyframe to the offset to animate the deformation
  • Open the height field manager formt he Atoms menu Atoms → Heigh field manager
  • Select the terrain mesh
  • Press the Add button,  in the name field of the dialog set a name, for example put "ground"
  • Press the select button to automatically fill the mesh field with the ground path
  • Check the animated checkbox
  • Press Ok, close the height field manager and rewind your scene
  • Select the agent group
  • In the state machine module options, set ground has height field
  • Rewind your scene and press play. Atoms will place the agents on the deformed mesh

When the animated option is on atoms rebuild the height field at every frame and for dense mesh this could be expensive. If you ground has only the transform animated please have a look the the next section



Transformed terrain

If your ground has the transform animated without any deformer you can use the parent constriant module to speed up the ground computation without using an animated height field.


  • Create and agent group
  • Add a grid layout module and set the size attribute to (5, 0, 5 )
  • Add a state machine module and set the state attribute to 1
  • Create a plane and increase the subdivision to 50 50 and scale to 3000,3000,3000
  • Put the plane inside a group and animate the transform of the group adding some keyframes
  • Open the height field manager formt he Atoms menu Atoms → Heigh field manager
  • Select the terrain mesh
  • Press the Add button,  in the name field of the dialog set a name, for example put "ground"
  • Press the select button to automatically fill the mesh field with the ground path
  • Check the animated checkbox
  • Press Ok, close the height field manager and rewind your scene
  • Select the agent group
  • In the state machine module options, set ground has height field
  • Add a parent constraint behaviour module and rewind the scene
  • Connect group1.worldMatrix to tcAgentGroupNodeShape1.atoms_parentConstraint_parentMatrix
  • Rewind the scene and press play





Gravity fields and 3d terrain

The gravity fields are standard height fields but they are used to modify the gravity and agents up vector metadata. With the gravity field you can create different effects. here two examples

  • Create and agent group
  • Add a grid layout module and set the size attribute to (5, 0, 5)
  • Add a state machine module and set the state attribute to 1
  • Create a simple sphere and scale it to (1000,1000,1000) and move to (0, -1000, 0)
  • Create an height field using this sphere and set the name to groundMesh
  • Duplicate the sphere and defor this sphere a little bit to create some hills
  • Create a new height field using this sphere and set the name to gravityMesh
  • Select the agent group
  • In the state machine module options, set groundMesh has height field and gravityMesh has heightField
  • Rewind your scene and press play.



  • Create and agent group
  • Add a grid layout module and set the size attribute to (5, 0, 5)
  • Add a state machine module and set the state attribute to 1
  • Create a simple plane and scale it to (1000,1000,1000)
  • Create an height field using this plane and set the name to groundMesh
  • Duplicate the plane and rotate it to (30, 0, 0)
  • Create a new height field using this plane and set the name to gravityMesh
  • Select the agent group
  • In the state machine module options, set groundMesh has height field and gravityMesh has heightField
  • Rewind your scene and press play.


  • ラベルがありません