Definitionintro
Character skeleton
Also called joint hierarchy, bone hierarchy.
A tree of joints, each with a transform relative to its parent, whose world transforms are found by multiplying down the tree.
A character skeleton is the hierarchy of joints that drives a character in skeletal animation. Each joint has a transform relative to its parent, and the world transform of a joint is the product of the transforms on the path from the root to it. The skeleton is not drawn; it moves the skin through a skinning method. It is the same tree as a kinematic chain of a robot in forward kinematics, but animation tools store a full transform per joint, with scale, where robotics uses joint angles and fixed link parameters, and the robotics pages use z up.
Definition
A character skeleton with joints is a rooted tree on the joints , given by a parent array , together with a local transform for each joint . The root has ; every other joint has a parent . The skeleton is stored in parent order when for every joint that is not the root, so the root is joint 0.
The local transform is a homogeneous matrix that acts on column vectors: first the scale , then the rotation , then the translation . It maps the coordinates of the frame of joint to those of the frame of its parent. The world transform of joint is
where a model transform of the whole character can be put in front of . The pose of the skeleton is the list of its local transforms; animation changes the pose, and the tree stays the same.
In parent order, one pass over computes every , because is ready when joint comes. This pass is forward kinematics; it does matrix products, so it costs time and space, with no recursion.
Notation
- A bone is the segment from a joint to one of its children; its length is the length of the translation of the child, when the parent has no scale. Many tools say "bone" for the joint itself.
- The world position of joint is , the origin of its frame.
- A chain is a path in the tree, for example shoulder, elbow, wrist.
- The world frame is right-handed with the axis up.
Examples and non-examples
A planar arm. Take three joints in parent order: the shoulder 0 at the origin, the elbow 1 with the local translation , and the wrist 2 with the local translation . With the rotations , and , and no scale:
- , so the shoulder stays at the origin;
- , so the elbow is at ;
- , so the wrist is at .
The rotation of the shoulder moves the elbow and the wrist, and the rotation of the elbow moves only the wrist: each joint carries its subtree.
A humanoid. A typical game or film character has its root at the hips, a spine chain to the head, and chains for the arms, the legs and the fingers. The hips carry the motion of the whole body through the world, so moving the root moves every joint.
Not in parent order. The parent array is a tree, but joint 1 comes before its parent 2, so one pass in index order would use before it is computed. A topological sort of the tree, for example a breadth-first order from the root, renumbers it into parent order. File formats may list the joints in any order; glTF requires only that the node hierarchy is a set of disjoint strict trees, so a loader sorts the joints first.
Not a skeleton. Two hands that hold one stick make a closed loop: the stick has two parents. A skeleton has no loops, so the loop is a constraint that inverse kinematics must solve each frame, not part of the hierarchy.
Not a world transform. The product in the wrong order, , applies the transform of the parent inside the frame of the child. For the arm above it puts the elbow at and the wrist at , in place of and : the rotations no longer carry the subtrees.
Related definitions
- Bind pose: the pose in which the skin was attached; its world transforms give the inverse bind matrices that skinning needs.
- Forward kinematics: the map from the pose to the world transforms; for a robot it is written with joint angles, often in the Denavit-Hartenberg convention.
- Inverse kinematics: the inverse problem, from a target position to a pose; two-bone IK solves one limb in closed form.
- Euler angles: one way to give ; animation tools use several rotate orders, and unit quaternions are the usual stored form.
- Rooted tree: the graph structure under the skeleton.
- Skinning: the problem of moving the mesh with the world transforms of the joints.
History
Hierarchical models with transforms relative to a parent come from computer graphics of the 1970s and from the kinematics of robot arms. Character tools added the joint with a full local transform, scale included, and the bind pose for skinning.
References
- The Khronos Group, glTF 2.0 Specification, Section 3.4 (the right-handed frame with y up), Section 3.5.2 (the node hierarchy as disjoint strict trees), Section 3.5.3 (the T * R * S order of a local transform) and Section 3.7.3 (skins and their joints)
- Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 4, Forward Kinematics (the product of the transforms along a chain, in the z-up frames of robotics)
- Rick Parent, Computer Animation, Algorithms and Techniques, 3rd edition, Morgan Kaufmann, 2012, the chapter on kinematic linkages (hierarchical models and forward kinematics)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 2RYEBQ Edit this page History Report an error Markdown