Problemintro
Character skinning
Also called mesh skinning.
Deform the surface mesh of a character from the transforms of its skeleton joints, smoothly and without artifacts at the joints.
Character skinning is the problem of moving the skin mesh of a character with its skeleton. The skeleton gives a rigid transform per joint in each frame, and the skin must follow it: rigid where a part of the body is rigid, smooth across the joints, with no loss of volume and no folds where none belong. There is no single correct answer, because a real limb is not a function of its joints alone; methods are judged by the properties they prove, by their artifacts and by their cost per frame. It is a special case of shape deformation, where the handles are the joints of a skeleton; the methods for it are on the algorithm pages listed below.
In plain words
A character has a skin made of many small triangles and an inner skeleton made of a few joints. When the joints move, every point of the skin must move too, in a way that looks right. Points in the middle of the upper arm should move with the upper arm. Points near the elbow should move partly with the upper arm and partly with the forearm, so that the skin bends smoothly. The hard part is to bend and twist the skin without making it thin, flat or crumpled at the joints, and to do it many times per second for many characters.
Definition
Input.
- The rest mesh: vertices with their normals and triangles, in the bind pose.
- The skeleton with joints, the world transforms of the bind pose and, in each frame, the world transforms of the pose; together they give the skinning matrices .
- The weights: for each vertex at most pairs with and .
Output. The deformed positions and normals of the frame.
Requirements. A method should meet these; the first three are exact properties that a page can prove.
- In the bind pose, where every , the output is the rest mesh.
- A vertex with one joint of weight 1 moves rigidly with that joint: .
- If every joint moves by the same rigid motion , the mesh moves by .
- The output depends smoothly on the pose and on the weights.
- The volume near a joint is kept in a bend and a twist (no candy wrapper artifact, no collapsing elbow), and there is no bulge where none belongs.
- Optionally: the skin does not pass through itself, and it bulges where parts press together.
Cost model. The real-RAM model; the cost per frame is given in , and , apart from a precomputation that runs once for the rest mesh. The weights are given here; finding them is a separate problem (see Variants).
Variants
- Rigging. Find the skeleton and the weights for a rest mesh; see automatic rigging and bounded biharmonic weights.
- Skinning decomposition. The inverse problem: given example meshes, find the weights and the joint transforms that best reproduce them (see skinning decomposition).
- Example-based skinning. Given sculpted meshes at some poses, interpolate corrections over the pose space (see pose-space deformation).
- Skinning with contact. Add requirement 6, as implicit skinning does.
- Skinning with scale. Allow scale in the joint transforms, as for stretchy cartoon limbs; this rules out methods that blend only rigid transforms.
Examples
The twist. Take two joints with the weights and , where joint 0 stays at the identity and joint 1 turns by about the axis. The vertex should turn by , to , since it lies halfway in weight. Linear blend skinning gives : the vertex falls onto the axis. Dual quaternion skinning gives and keeps the radius 1.
The bend. Take the elbow at , joint 0 at the identity and joint 1 bent by about the axis through the elbow, and the vertex with the weights and ; it is at the distance from the elbow. LBS gives , at the distance from the elbow. DQS gives , a turn by about the elbow, at the distance .
Known algorithms
| method | per frame | precomputation | main property and limit |
|---|---|---|---|
| linear blend skinning | none | requirements 1 to 4; loses volume in twists and bends | |
| dual quaternion skinning | none | each vertex moves rigidly when the blended real part is not zero; bulges in bends, does not blend scale | |
| spherical blend skinning | plus one center per set of joints | none | rigid per vertex, about a least squares center of rotation |
| optimized centers of rotation | a center per vertex from the similarity of the weights | rigid rotation about the center; the paper reports less bulge than DQS | |
| implicit skinning | for projection steps | a field per bone | a correction with contact and bulges; iterative |
| delta mush | for smoothing steps | the deltas of the rest mesh | a correction that hides rough weights; does not keep the radius in a twist |
| pose-space deformation | the correction of the examples near the pose | sculpted examples | adds artist-made shapes on top of a skinning |
The first four are direct methods: each vertex is a function of its own weights, its rest position and the palette. The last three use the mesh or extra data.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Automatic rigging by heat diffusion | O(B C^2 n + J C^J log C) embedding | O(B C^2 + J C^J + n^2) extra | deterministicnot exactofflineiterative | 1 language |
| Bounded biharmonic weights | O(n^3 + m I n^3) total | O(n^2 + m n) extra | deterministicexactofflineiterative | 1 language |
| Delta mush | O(j + n k + K (n + f)) frame | O(n + f) extra | deterministicexactofflineiterative | 1 language |
| Dual quaternion skinning | O(j + n k) frame | O(j) extra | deterministicexactofflineiterative | 1 language |
| Implicit skinning | O(j + n (k + i j)) frame | O(n + j) extra | deterministicnot exactofflineiterative | 1 language |
| Linear blend skinning | O(j + n k) frame | O(j) extra | deterministicexactofflineiterative | 1 language |
| Optimized centers of rotation skinning | O(j + n k) frame | O(n + m) extra | deterministicexactofflineiterative | 1 language |
| Pose space deformation | O(m j + j + n (m + k)) frame | O(m n + m^2) extra | deterministicexactofflineiterative | 1 language |
| Smooth skinning decomposition with rigid bones | O(n 2^B (B^3 + B^2 F) + B F n K) iteration | O(n B + B F) extra | deterministicnot exactofflineiterative | 1 language |
| Spherical blend skinning | O(j + n k^2) frame | O(j + n) extra | deterministicexactofflineiterative | 1 language |
Bounds
- Lower bound. Every output vertex depends on its weights, so a method that reads them needs time per frame in the worst case, and the palette needs . LBS and DQS meet this bound.
- No linear blend is rigid. A weighted average of rotation matrices is not a rotation in general, so no method that blends the matrices linearly meets requirement 5 for every pose; see candy wrapper artifact for the proof.
- Direct methods cannot model contact. In a direct method, two vertices with the same rest position and the same weights move together in every pose, whatever the rest of the mesh does; so the inner side of a bend cannot stop at the other side, and requirement 6 needs a method that looks at the mesh.
Reductions
- LBS is a matrix product. Stack the top three rows of the matrices side by side into a matrix , and let be the matrix whose column has the block at the rows of joint . Then the deformed vertices are the columns of . This is the form that skinning decomposition fits.
- Skinning as shape deformation. A skinning method is a deformation with rigid handles and fixed weights per vertex, so the methods of shape deformation with handles apply, at a higher cost.
- Skinning of one limb from two joints. The two-joint twist and bend above are the test cases of every method; a method that fails them fails on characters.
Applications
- Real-time characters in games and VR, skinned on the GPU from a palette of joint matrices; glTF stores up to four joints and weights per vertex in each set of attributes.
- Film characters, where a fast skinning gives the base and corrections, simulation and sculpted shapes go on top.
- Bodies for cloth and hair simulation, which need the skinned mesh as a collision surface.
- Skeletal animation in general: retargeted motion capture and crowds reuse one skinned mesh for many motions.
References
- 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 and the candy wrapper artifact) and Section 4 (dual quaternion blending and the bulging artifact)
- Ladislav Kavan, Steven Collins, Jiří Žára and Carol O'Sullivan, Geometric skinning with approximate dual quaternion blending, ACM Transactions on Graphics 27(4), article 105, 2008, Section 2 (previous skinning methods) and Section 2.2 (linear blend skinning)
- The Khronos Group, glTF 2.0 Specification, Section 3.7.3 (skins, inverse bind matrices, and sets of four joints and weights per vertex)
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 | W2 basic |
|
Tag RJPPJ9 Edit this page History Report an error Markdown