openworm / skeletonExtraction

Transforms Sibernetic output into a COLLADA animation
7 stars 2 forks source link

Analyse animation of muscle cells #19

Closed tarelli closed 10 years ago

tarelli commented 10 years ago

The muscle cells get contracted as part of the SPH simulation. The animation will have to show the same but this falls outside the classic skinning based animation.

martinmadaras commented 10 years ago

Muscles will be stretched in the the direction of muscle bone only. Direction perpendicular to the bone will be ignored.

First proposed solution for muscle animation:

  1. for each muscle cell a bone will be computed - this should be done by computing AABB bounding box of muscle particles
  2. bone space fore each muscle will be computed
  3. particles in each muscle will be transformed from object space into bone tangent space of the muscle, stretched in the bone space along the bone and transformed back to object space
  4. finally, a skinning animation of the cuticle will be applied on the muscle vertices