Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Added


Atoms supports blend shapes deformation. In order to To use blend shapes during the simulation, the blend shapes target targets must be exported using the export mesh tool. The export mesh exporter tool writes the blend shape data of each target (P, N, id and name information of each target ) inside the mesh file. The variation builder automatically exports the belnd shapes information, so if you created your variation with the variation builder you have already all setupthis data.

When you load our a mesh inside the variation manager atoms load , Atoms also loads all the blend shape targets if they exist.

In order to use the blend shapes inside the simulation you should use some special metadata. These metadata should have this format: Double metadata named following the given naming convention must be used to control the weight of each blend shape: (AGENT TYPE NAME)_(MESH_NAME)_(TARGET_ID)

So for example For instance, if you added some three blend shapes to the atoms robot head mesh ("robot1_head"), you can activate would control them with the following double metadata: "atomsRobot_Headrobot1_head_0","atomsRobot_Headrobot1_head_1", "atomsRobot_Headrobot1_head_02" etc. Please remember that the geometry name is not the mesh file name, but the name use used inside the Variation manager.

You can add these metadatas usign metadata using the "addMetadata" behaviour module, or you can animate the blend shapes using with the blendShapeAnim module, please have a look at the tutorial section.