io7m / jcalcium

Skeletal animation
ISC License
0 stars 0 forks source link

Skeleton compilation #2

Closed io7m closed 7 years ago

io7m commented 7 years ago

Compilation needs to:

  1. Assign monotonically increasing integer identifiers to bones in a deterministic manner. A bone ID changing is a breaking change for any meshes that have been preprocessed for that skeleton.
  2. Check that the tree of bones is acyclic and that all bones except the root have exactly one parent.
io7m commented 7 years ago

Compiled skeleton definitions need to either be stored, or they need to be generated completely deterministically (which implies that the input definitions also need to be generated deterministically). Mesh preprocessing depends on them (#3).

io7m commented 7 years ago

Specifically, mesh preprocessing depends on the integer IDs.