Miarmy Crowd Simulation Documentation (English)

Refine Bone Shapes

Bone Shape

In the OA hierarchy, each joint has a polygon box child (in below picture shown), we call this polygon box the bone shape, and this bone shape responsible for the displaying of specific bone of agent and also hold the shape and attribute of physics simulation

Since it determins the appearence and dynamic result of agent, we need to refine each one of it. Adjust the boxes of eacn joint and make them look correct size and transform.

Then, when we generate the agnets from the OA, the agents will inherit its OA's appearence (In below pictures show). And, we call this generating process the place agents

Transform on Correct Nodes

Be careful and please don't scale or move the joint! Otherwise it will affect the agent structure and animation and cause unpredictable results.

Please just transform (regular scale, rotate and translate) the bone shape.

Correctly Adjust Bone Shape

Please only use the transform when adjust bone shapes, please do not adjust the points, faces or edges components of bone shape. Adjust the components cannot change the bone shapes.

Please just transform (regular scale, rotate and translate) the bone shape.


 

(above) different the OA boxes; (below) the placed agents

Boneshape for Dynamical Simulation

When we turn on dynamical simulation on the agent, the agent will turn into the ragdoll, and the bone shapes will work as the linked rigid bodies and effected by the physics law. So we need to setup the bone shapes very well to get the tangible physical result.

There are some principles we can follow to get the better result: 5 Steps to Build Perfect Physical Character


Refine the Bounding Box

Scale and resize the green bounding box in OA, make it bound your agent.

No need very precise, but roughly bound the agent. This bounding box can determine:

  • Default sphere range
  • OpenGL display culling (The bounding box of each agent)



Store OA Refinement Result

We can save/load the refinement for bone shape results by our tool:

Miarmy > Original Agent > Save Original Agent SetupThis can save current active OA's setup into external txt file

Miarmy > Original Agent > Load Original Agent Setup: This load external txt file OA setup and apply it into current active OA





Basefount Technology