Sub topic 12
Testing Deformation in Pose Mode
This chapter assumes you can switch between Object, Edit, Pose and Weight Paint modes. It also assumes you have bound a mesh to an armature with automatic weights, and that you know what vertex groups and the Armature modifier do. Here you will learn to stress-test a rig, so you find bad weights before an animator does.
Why test in Pose Mode
Weight maps look fine in Weight Paint mode and still fail when a joint bends. A weight color only tells you how strongly one bone influences a vertex. It does not show the final shape. Only posing the rig shows that.
Pose Mode lets you rotate and move bones without changing the rest pose. The Armature modifier reads each bone's pose transform relative to its rest transform. It then moves each vertex by the weighted blend of those transforms. Any error in the weights becomes a visible dent, tear or pinch.
Testing is a loop. You pose, spot a problem, fix the weights, and pose again.
Setting up a good test view
Set up the viewport so problems are easy to see.
- Select the armature and press Ctrl+Tab to enter Pose Mode.
- In the Viewport Overlays, turn on Wireframe for the mesh, or press Z and pick Wireframe. A wireframe shows how edge loops collapse at a joint.
- Open the armature's Object Data properties and, under Viewport Display, enable In Front. Bones then draw over the mesh, so you can select them while the mesh covers them.
- Use a matcap or a plain solid shading mode. Strong lighting on a flat color shows creases clearly.
Weight Paint with a pose active
You can pose the rig and paint at the same time. Select the armature and enter Pose Mode. Then select the mesh as well, and switch the mesh to Weight Paint mode. The pose stays active while you paint. This lets you paint a joint while it is bent, so you see the effect of every stroke at once.
For this to work, the mesh must be in Weight Paint mode with the armature still in Pose Mode. In Blender 2.8 and later you can do this by selecting the armature, entering Pose Mode, then Ctrl-clicking the mesh in the Outliner and switching it to Weight Paint mode. If your Blender version differs, check that the Lock Object Modes option in the Edit menu is turned off.
Moving bones safely
Every bone has three pose transforms: location, rotation and scale. Use these keys while a bone is selected in Pose Mode.
| Action | Shortcut | Notes |
|---|---|---|
| Rotate | R | Press R then X, Y or Z to constrain to an axis. |
| Move | G | Only bones that are not connected to a parent can move freely. |
| Scale | S | Useful for testing stretch and squash. |
| Clear rotation | Alt+R | Returns the selected bones to rest rotation. |
| Clear location | Alt+G | Returns the selected bones to rest location. |
| Clear scale | Alt+S | Returns the selected bones to rest scale. |
| Select all | A | Then use the clear shortcuts to reset the whole rig. |
Always reset the pose with A, then Alt+G, Alt+R and Alt+S before you leave a test session. If you leave a pose in place, the next person to open the file sees a rig that is not in its rest pose. Then the Armature modifier looks as if it is broken.
Pose Library and keyframes
You do not have to redo your test poses each time. Create a set of extreme poses and store them as keyframes or as assets in the Asset Browser. A typical set is a full arm raise, a full arm lowering, a deep knee bend, a head turn to each side, and a spine twist.
A simple way is to key each pose on a separate frame of the timeline. Then you can scrub through the frames and watch the mesh change. Scrubbing is quicker than posing by hand after every weight stroke.
Press I with the bones selected to insert a keyframe. Keep these test keys in a separate action, or delete them before you hand the rig over.
What to test at each joint
Every joint has a range of motion it must survive. Test the full range and a bit beyond it.
- Shoulder: raise the arm straight up, then forward, then across the chest. The shoulder is the hardest joint, because the arm moves in a wide arc.
- Elbow: bend to the maximum. The inside of the elbow should crease without the mesh shrinking too much.
- Wrist and fingers: twist the forearm by rotating the wrist bone along its length.
- Hips and thighs: raise the leg forward, to the side and backward.
- Knees: bend fully and check the back of the knee.
- Spine and neck: bend and twist. Weights are spread over several bones here, so the blend must be smooth.
If a rig will only be used in a narrow range, test that range thoroughly instead. Testing extreme poses that the character never does wastes time.
Reading what you see
Each symptom points to a cause. This table links them.
| Symptom | Likely cause | Fix |
|---|---|---|
| A part of the mesh stays in place when a bone moves | The vertices have no weight to that bone, or the bone's Deform flag is off | Check the bone's Deform checkbox, then paint weight |
| The whole mesh moves with one bone | A vertex group has weight 1.0 across the mesh, or the mesh has the wrong parent | Check the vertex groups and the parent relationship |
| Vertices on a neighboring limb are dragged along | Overlapping influence between nearby bones | Reduce the weight with the Subtract blend mode |
| A candy-wrapper twist at the joint | Linear blending of rotation around the bone's axis | Add twist bones, or enable Preserve Volume |
| A flattened or collapsed elbow | Too few edge loops, or weights that change too sharply | Add loops, then smooth with the Blur brush |
| Sudden pops in one frame | Weights that sum unevenly, or more than the influence limit | Normalize and limit the weights |
| Left and right sides deform differently | Weights are not symmetrical | Mirror the weights |
Linear blending and Preserve Volume
By default the Armature modifier uses linear blend skinning. It averages the transform matrices, and this shrinks the mesh when a bone twists. This is the cause of the candy-wrapper look.
The modifier has an option called Preserve Volume. When you turn it on, the modifier uses a dual quaternion method instead. It keeps the volume at twisting joints. It can also add a bulge at sharply bent joints, so test both settings on your mesh.
Add the modifier option from a script when you need to switch it for many meshes:
import bpy
mesh_obj = bpy.data.objects["Body"]
# Find the Armature modifier and switch on dual quaternion skinning.
for mod in mesh_obj.modifiers:
if mod.type == 'ARMATURE':
mod.use_deform_preserve_volume = True
print("Preserve Volume on for", mod.name)Preserve Volume is not a replacement for good weights. Fix the weights first, and then use the option if a twist still collapses.
Testing the Armature modifier itself
Sometimes the weights are fine and the modifier is the problem. Check these items when a whole mesh does not respond.
- The Armature modifier exists on the mesh and points at the correct armature object.
- The modifier's viewport display (the monitor icon) is on.
- The modifier is first in the stack, or at least before modifiers that change vertex counts, such as Subdivision Surface.
- The mesh and armature have their scale applied (Ctrl+A, then Scale). Unapplied scale distorts the deformation.
- The vertex group names match the bone names exactly, including case.
A quick way to check the last item is with a short script:
import bpy
mesh_obj = bpy.data.objects["Body"]
arm_obj = bpy.data.objects["Armature"]
bone_names = {b.name for b in arm_obj.data.bones if b.use_deform}
group_names = {g.name for g in mesh_obj.vertex_groups}
print("Deform bones with no vertex group:", sorted(bone_names - group_names))
print("Vertex groups with no deform bone:", sorted(group_names - bone_names))The first line lists bones that are set to deform but have no group, so they move nothing. The second lists groups that no bone uses, which are often leftovers from renamed bones.
Testing with extreme and in-between poses
Test at three levels.
- Rest pose. The mesh should look identical to how it looked before binding. If it does not, the armature or the mesh has an unapplied transform, or the mesh was changed after binding.
- Extreme poses. These show the worst case. A weight that works at 90 degrees may fail at 150.
- In-between poses. Scrub slowly. A deformation can look good at both ends and pop in the middle.
Checking symmetry
Pose the left and right limbs in the same way and compare them. Weights that were mirrored should give mirror-image results. If they differ, one side has stray weights, or the mesh itself is not symmetrical.
A worked test session
Suppose the elbow of a character collapses when the forearm bends.
- Select the armature, enter Pose Mode, and rotate the forearm bone 120 degrees on its bending axis.
- In wireframe, notice that the edge loops at the inside of the elbow bunch together, and the outside is stretched flat.
- Select the mesh, and switch to Weight Paint mode. Choose the forearm bone's group in the Vertex Groups list.
- Look at the colors near the elbow. If the red area ends sharply at the joint, the weight changes too fast.
- Select the Blur brush, set the strength to about 0.5, and brush across the elbow to soften the transition.
- Return to the armature, rotate the forearm again, and compare.
- Reset the pose with A, Alt+G, Alt+R and Alt+S.
If the loops still collapse after smoothing, the mesh needs another edge loop at the joint. No amount of painting makes up for too little geometry.
Summary of the testing routine
- Enter Pose Mode and use wireframe and In Front to see the mesh and bones together.
- Rotate each bone through its real range of motion, including extremes.
- Match every symptom to its cause before you paint.
- Test with Preserve Volume on and off at twisting joints.
- Scrub through stored test poses after each round of fixes.
- Reset the pose to rest before you finish.
Exercise
A character's upper arm bends correctly, but when you rotate the forearm bone, the hand and forearm mesh stay behind and do not follow. Name the first three things you would check, in order.
Show answer
First, check that the forearm bone's Deform checkbox is enabled in the Bone properties. A bone with Deform off is ignored by the Armature modifier. Second, check that the mesh has a vertex group with exactly the same name as the forearm bone, since a mismatch means the modifier finds no weights. Third, enter Weight Paint mode with that group active and confirm that the forearm vertices are painted with non-zero weight (not blue). If all three are correct, also check that the Armature modifier is enabled in the viewport and points at the right armature.
Exercise
A shoulder looks right at rest but the upper arm shrinks and twists like a wrapped candy when the arm rotates along its length. What causes this, and what two actions can you take?
Show answer
The Armature modifier uses linear blend skinning by default, which averages transforms and loses volume when a bone twists around its own axis. You can turn on Preserve Volume in the Armature modifier, which switches to dual quaternion skinning, or you can add twist bones along the limb and divide the twist between them using weights. Check the weights first, and test Preserve Volume for any bulging at sharply bent joints.