Algorithm Search⌘K

Definitionintro

Bind pose

Also called rest pose.

The pose of the skeleton in which the skin was attached. The inverses of its joint world transforms map the rest mesh into the frame of each joint.

The bind pose is the pose of a character skeleton in which the skin mesh was attached to it. The mesh as it was modeled, the rest mesh, sits around the skeleton in this pose. Skinning needs to know where each vertex was relative to each joint at that moment, and the inverse of the world transform of each joint in the bind pose gives exactly that. Every skinning method of this sub-area, for example linear blend skinning, starts from these matrices.

Definition

Let a skeleton with jj joints have the world transforms M0,…,Mj−1M_0, \ldots, M_{j-1} in its current pose (see character skeleton for Mi=Mp(i)LiM_i = M_{p(i)} L_i). The bind pose is one fixed pose of the skeleton, chosen when the mesh is attached; its world transforms are B0,…,Bj−1B_0, \ldots, B_{j-1}. The inverse bind matrix of joint ii is Bi−1B_i^{-1}. It maps a point of the rest mesh, given in model coordinates, to the coordinates of the frame of joint ii in the bind pose.

The skinning matrix of joint ii in the current pose is

Ci=Mi Bi−1.C_i = M_i\, B_i^{-1}.

It maps a rest vertex to the place it would have if it moved rigidly with joint ii from the bind pose to the current pose. Linear blend skinning is v′=∑iwi Ci vv' = \sum_i w_i\, C_i\, v with wi≥0w_i \ge 0 and ∑iwi=1\sum_i w_i = 1.

Property (proved). In the bind pose Mi=BiM_i = B_i for every joint, so Ci=IC_i = I, and any skinning that blends the CiC_i with weights of sum 1 returns the rest mesh: ∑iwi I v=v\sum_i w_i\, I\, v = v. This is the first test of every skinning code on this site.

The inverse bind matrices do not change during the animation, so they are computed once, or stored in the file; glTF stores them in the inverseBindMatrices accessor of a skin, in the order of its joints array.

Notation

  • BiB_i is the world transform of joint ii in the bind pose, and MiM_i is its world transform in the current pose.
  • Normals move with the inverse transpose of the linear part of the blended matrix, normalized again.
  • Points are column vectors, and the world frame is right-handed with yy up.

Examples and non-examples

One vertex on a forearm. Take the shoulder at the origin and the elbow at (1,0,0)(1, 0, 0) in the bind pose, with no rotation, so B0=IB_0 = I and B1=T(1,0,0)B_1 = T(1, 0, 0). The rest vertex v=(1.5,0.2,0)v = (1.5, 0.2, 0) has the coordinates B1−1v=(0.5,0.2,0)B_1^{-1} v = (0.5, 0.2, 0) in the frame of the elbow. Now bend the elbow by π/2\pi/2 about zz, with the shoulder fixed: M1=T(1,0,0) Rz(π/2)M_1 = T(1, 0, 0)\, R_z(\pi/2). Then C1v=M1(0.5,0.2,0)=(1,0,0)+(−0.2,0.5,0)=(0.8,0.5,0)C_1 v = M_1 (0.5, 0.2, 0) = (1, 0, 0) + (-0.2, 0.5, 0) = (0.8, 0.5, 0): the vertex keeps its place relative to the elbow. With the weights 0.50.5 on the shoulder and 0.50.5 on the elbow, linear blend skinning gives 0.5 v+0.5 C1v=(1.15,0.35,0)0.5\, v + 0.5\, C_1 v = (1.15, 0.35, 0).

T-pose and A-pose. Characters are often modeled and bound with the arms straight out (a T-pose) or angled down (an A-pose), so that the skin of the armpits and the shoulders is open and easy to weight.

Non-example: the world transform alone. Using M1M_1 in place of C1C_1 applies the offset of the elbow twice: M1v=(0.8,1.5,0)M_1 v = (0.8, 1.5, 0), not (0.8,0.5,0)(0.8, 0.5, 0). Even in the bind pose M1v=(2.5,0.2,0)≠vM_1 v = (2.5, 0.2, 0) \ne v, so the mesh moves with no animation at all.

Non-example: a rest pose that is not the bind pose. Some tools keep a separate "rest pose" of the skeleton, for example a neutral pose for editing, that differs from the pose in which the mesh was bound. If the code takes the world transforms of that pose as BiB_i, the skinning matrices are not II when the skeleton is in its true bind pose, and the mesh is deformed before any animation. The alias "rest pose" of this page is right only when the two poses agree.

Non-example: a mesh with its own transform. In glTF the transform of the node that holds the skinned mesh is ignored, and only the joint transforms move the vertices; applying it as well moves the mesh twice.

History

The bind pose came with the joint-based skinning of the late 1980s and the 1990s, where each vertex moves with the change of its joints from the attachment pose. Exchange formats such as glTF store the inverse bind matrices with the skin, so that a viewer does not need the bind pose itself.

References

  1. The Khronos Group, glTF 2.0 Specification, Section 3.7.3 (skins, the joints and the inverseBindMatrices accessor, the per-vertex matrix as a weighted linear sum of the joint matrices, and the rule that the transform of the skinned mesh node is ignored)
  2. Ladislav Kavan, Part I, Direct skinning methods and deformation primitives, in Alec Jacobson, Zhigang Deng, Ladislav Kavan and J. P. Lewis, Skinning, Real-time Shape Deformation, SIGGRAPH 2014 course, Section 2 (linear blend skinning)

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/3RBDTZ/text.yaml