Modern 2D runtimes can add vertex deformation, attachment swaps, draw order and constraints to bones and skinning. Extra bones can also represent some folds or bulges. Choose mechanisms by the required deformation, degrees of freedom and authoring cost.
What bones can and cannot express
Recall the central equation from linear blend skinning: the final position of a mesh vertex v is a weighted sum of the transforms of the bones it is bound to.
v' = Σ_i w_i · M_i · B_i⁻¹ · v Σ_i w_i = 1
Here B_i⁻¹ is the inverse bind matrix and M_i the bone’s current world matrix. The expressive power of this equation is tightly bounded: a vertex position can only ever be a linear combination of bone transforms. There are finitely many bones, each offering only translation, rotation and scale, so any deformation outside the linear span of that set is unreachable by skinning.
A fixed set of bones and weights limits deformation; vertex offsets provide additional local control. Mouth attachment swaps and draw order are separate states outside the LBS vertex formula.
Mesh deformation animates the vertex offsets themselves
The teaching model below adds an offset in bind-pose coordinates before skinning. A format may instead store weighted-mesh offsets in each influencing bone’s local space. Check that data convention when importing:
v' = Σ_i w_i · M_i · B_i⁻¹ · (v + Δv(t))
Δv(t) is a displacement stored per vertex per keyframe, entirely independent of the bones. Under one and the same bone pose you can therefore sculpt cloth folds, cheek compression, or a bending weapon.
Transform offsets according to their declared space. Bind-space offsets follow skinning; world-space corrections can intentionally be added afterwards. Both designs are valid when their coordinate conventions are consistent.
The cost is data volume. Δv is one vector per vertex per keyframe, so denser meshes and more deform keys grow the file quickly. In practice meshes are refined only on parts that need detail deformation — faces, cloth — while rigid parts such as weapons and armour stay low-poly or skip meshes entirely.
Draw order is its own animation track
In a purely 2D slot renderer, positions and slot order are separate states. Other renderers can use a depth buffer to determine visibility.
Slot runtimes such as Spine can store draw order in a discrete animation track. The permutation switches at a key; crossfades, masks or split parts can create a continuous visual transition when required.
A switch during occlusion or rapid motion may reduce a visible pop. Inspect contours, overlaps and blend modes in playback.
Constraint order and world-transform updates
Constraints adjust bone transforms in a dependency-sensitive order and can trigger descendant world-transform updates. Check that targets are current and that later recomputation preserves earlier changes. A single pass after the entire hierarchy is not a universal evaluation rule.
An IK constraint aligns the tip of a bone chain to a target — the problem solved in two-bone inverse kinematics. Runtime versions typically add two parameters: mix, blending the IK result against the original FK pose so animation can cross smoothly between them, and softness, which eases off as the chain approaches full extension so a knee or elbow does not snap rigid at the limit.
A transform constraint makes one bone partially copy another’s transform:
b.rotation = lerp(b.rotation, source.rotation + offset, mix)
This lerp mixes poses at the same time. A mix of 0.3 does not itself delay motion by several frames. Lag needs history samples, a recursive filter or physical state. Reusing the previous output also requires a time-step-aware response.
Path constraints can distribute bones by path length, with spacing modes defined by the runtime. An arc-length lookup supports approximately constant speed or spacing. Nonuniform parameter speed changes spacing; curvature alone is not the cause.
Live2D takes a different route: parameters driving deformers
Tools in the Spine family are organised around bones. Live2D is organised around parameters and deformers, and the difference in thinking is substantial.
A model declares parameters, for instance ParamAngleX for turning the head left and right, ranging from −30 to 30. The artist sculpts keyforms at selected values of that parameter: the mesh vertex positions at −30, at 0, at 30. At runtime, given a parameter value p, the two neighbouring keyforms are interpolated:
for p in [p_0, p_1]
u = (p - p_0) / (p_1 - p_0)
vertex = (1 - u) · vertex@p_0 + u · vertex@p_1
This is how “pseudo-3D” head rotation is constructed. There is no three-dimensional geometry anywhere; the artist drew several angles and the runtime interpolates between them. It reads as dimensional because the keyforms already contain the perspective, the occlusion relationships and the shifted facial feature positions — that information was drawn, not computed.
Rotation deformers act about pivots; warp deformers use a deformable lattice. Both can nest. A warp is generally non-affine and cannot be reduced to the same single-matrix multiplication used for rigid hierarchies.
Two parameters with three keys each have nine combinations in a full Cartesian grid. Actual models may use independent deformers, sparse combinations or other interpolation settings. Work depends on the parameter combinations and parts that need joint coverage.
Physics is a parameter wired to a spring
Secondary motion in hair and accessories is usually not keyed by hand. A physics system takes an input parameter — typically body or head angle — drives a damped spring or pendulum, and writes the output back into another parameter such as hair sway angle.
a = (k · (target - x) - c · v) / m
v += a · dt
x += v · dt
The spring snippet updates velocity before position, so it is semi-implicit Euler. Real elapsed time can drive a fixed-step accumulator or a validated variable-step scheme. Each dt denotes time. Large steps can still be unstable; retain residual time and specify pause and catch-up policies.
Common failures, in the order worth checking
- Seam tearing: compare positions, bone mappings and weights; normalisation alone does not ensure matching deformation.
- Wrong deform direction: check offset space, transform order and runtime data format.
- Layer popping: inspect draw-order keys, occlusion and blending; compare alternative switching times.
- Extension locking: inspect reach, joint limits and the softness distance map; soften the raw distance as the implementation defines.
- Low-rate instability: inspect integration steps, stiffness, damping, collisions and catch-up policy.
Which layer to add first
Build the required poses, hierarchy and weights, then add draw order, constraints or vertex deformation where the motion needs them. Lag requires temporal state. Measure deformation data and authoring effort for the actual assets before choosing.
For the underlying bone and skinning mathematics, work through the 2D Animation Principles series in order.