Sub topic 13
Troubleshooting common skinning problems
This chapter assumes you can bind a mesh with automatic weights, switch between Object, Edit, Pose and Weight Paint modes, and read the weight colors. It also assumes you know what vertex groups and the Armature modifier do. Most skinning failures come from a short list of causes. You can find each one by checking the same things in the same order.
A diagnostic order
Check the cheap, structural causes before you start painting. Painting over a structural fault hides it and leaves you with weights that only work in one pose.
- Confirm the mesh has an Armature modifier and that its Object field points at the right armature.
- Confirm the object scale is applied on both the mesh and the armature.
- Confirm the bones you expect to move have Deform enabled.
- Confirm vertex group names match bone names exactly.
- Inspect the weights of the misbehaving vertices.
- Only then paint, smooth, limit or clean.
The mesh does not move at all
When you rotate a bone in Pose Mode and the mesh stays put, the link between bone and vertex is broken. There are four usual reasons.
- No Armature modifier. The modifier is what reads vertex group weights and applies bone motion. Parenting with automatic weights adds it for you. If you made the groups by hand, you must add the modifier yourself.
- Modifier disabled or pointing at nothing. Check the viewport display toggle on the modifier header and the Object field.
- Names do not match. The modifier looks up each bone by name and uses the vertex group with the same name. A group called
Arm.Ldoes not respond to a bone calledarm.L. Case and punctuation both count. - Deform is off. A bone with Deform disabled is ignored by the modifier, even if its vertex group exists and holds weights.
This script lists every bone that has no matching vertex group, which finds name mismatches quickly.
import bpy
mesh_obj = bpy.data.objects["Body"]
arm_obj = bpy.data.objects["Armature"]
group_names = {vg.name for vg in mesh_obj.vertex_groups}
for bone in arm_obj.data.bones:
if bone.use_deform and bone.name not in group_names:
print("Deforming bone without a vertex group:", bone.name)
bone_names = {b.name for b in arm_obj.data.bones}
for name in sorted(group_names - bone_names):
print("Vertex group without a bone:", name)The first loop reports deforming bones that have no group, so they cannot move anything. The second prints groups that no bone uses, which are usually leftovers from a rename.
The Deform setting
Deform is a per-bone flag. In the Properties editor, select the bone and open the Bone tab. The Deform panel has a checkbox in its header.
Automatic weights only create groups for bones with Deform enabled. If you add a bone later, or if an imported rig has Deform turned off, that bone will have no group after binding. Enable Deform on the bone, then either rebind or create the group by hand. Turning Deform on afterward does not create the group by itself.
The reverse also causes problems. If a helper bone has Deform on and you do not want it to move vertices, it can steal weight during an automatic bind. Turn Deform off on the helper bones, then redo the bind.
Unapplied scale and the whole mesh distorting
Symptoms: the mesh stretches, shears or shrinks when a bone rotates, or automatic weights come out strange (large, blotchy influences, or a bone affecting a faraway region).
The usual cause is non-uniform or non-unit scale on the mesh object or the armature object. Bone envelopes and the heat-diffusion calculation behind automatic weights work in the object's own space, so a scaled object gives them distorted input. A rotated bone then scales the mesh in odd directions.
To check, select each object and press N to open the sidebar. The Item tab shows Scale. It should read 1.0 on all three axes.
To fix it:
- In Object Mode, select the mesh and choose Object > Apply > Scale.
- Do the same for the armature.
- If you had already bound the mesh, clear the weights (Weights > Clean or delete the groups) and bind again, because the old automatic weights were computed with the wrong scale.
Apply scale before binding when you can. Applying it afterward changes the geometry the weights were computed from.
Overlapping influence and collapsing joints
Symptoms: when an elbow or knee bends, the inner side of the joint pinches, or a finger drags the neighboring finger along with it.
Cause: weights from a bone reach vertices that belong to another part of the body. In Weight Paint mode with the bone's group active, red or orange vertices that should be blue show the overlap.
Fixes, in the order to try them:
- Use the Average or Blur brush to spread the weight gradually across the joint, which stops it ending at a sharp edge.
- Use Draw with a weight of 0 and blend mode Subtract to remove weight from vertices that should not follow the bone.
- Paint one bone at a time with bone selection masking, so you can see exactly where each bone reaches.
- For close parts such as fingers, keep the mesh separated enough that automatic weights can tell them apart. If they touch, expect to correct them by hand.
Smooth joints need topology as well as weights. A joint with only one edge loop across the bend will fold, whatever the weights are. Add loops around the joint if the mesh pinches even though the weights look right.
Vertices that do not follow any bone
A few vertices stay behind while the rest moves. They often look like spikes or stuck points.
Possible causes:
- The vertices have no weight in any group, so nothing moves them.
- The total weight on them is less than 1.0. A vertex with a total weight of 0.4 follows the bones by only part of the motion, and that is a stretch toward the rest position.
- The vertices belong to a disconnected island that automatic weights could not reach.
To find unweighted vertices, switch to Weight Paint mode and enable the vertex selection tool, or in Edit Mode use Select > Select All by Trait > Ungrouped Verts. Select them, assign them to the right group with the weight set in the Item or Data properties, and test again.
For a total below 1.0, run normalization so the weights sum to 1. This is covered in the chapter on normalizing weights and limiting influences. If the sum is far from 1 on many vertices, the cause is usually that Normalize All was never run after painting with locked groups.
Too many influences
Game engines commonly accept only four bone influences per vertex. If your model looks right in Blender and wrong in the engine, a vertex probably has five or more small weights, and the exporter dropped the extras.
import bpy
obj = bpy.context.active_object
limit = 4
for v in obj.data.vertices:
count = sum(1 for g in v.groups if g.weight > 0.0)
if count > limit:
print("Vertex", v.index, "has", count, "influences")To fix it, limit and then normalize, in that order. Normalizing first and limiting second leaves the sums below 1.
import bpy
bpy.ops.object.vertex_group_limit_total(group_select_mode='ALL', limit=4)
bpy.ops.object.vertex_group_normalize_all(group_select_mode='ALL', lock_active=False)Run this with the mesh as the active object. If the operator reports no change, check that the object is in Object Mode or Weight Paint mode.
Quick reference
| Symptom | Likely cause | Fix |
|---|---|---|
| Mesh does not move | Missing or disabled Armature modifier | Add it and set its Object |
| One bone moves nothing | Deform off, or group name mismatch | Enable Deform, rename the group |
| Whole mesh stretches or shears | Unapplied scale | Apply scale, rebind |
| Joint pinches or collapses | Overlapping influence, too few edge loops | Blur or subtract weights, add loops |
| A few vertices stay behind | Ungrouped vertices or weights summing below 1 | Assign groups, normalize |
| Looks different in game engine | More than four influences | Limit Total, then normalize |
| Wrong bone moves a region | Overlapping automatic weights | Mask by bone and repaint |
Check the result
After any fix, test in Pose Mode, not only in the weight display. Rotate each joint through its full range and look for pinching, spikes and stuck vertices. Return to the rest pose afterward by selecting all bones and clearing rotation, location and scale (Alt+R, Alt+G, Alt+S) so your tests do not remain on the rig.
Exercise
A character's left forearm bone is named forearm.L, and its vertex group is named Forearm.L. The Armature modifier is present and Deform is on. When you rotate the bone, the forearm does not move. What is wrong, and how do you fix it?
Show answer
The names differ in case. The Armature modifier matches vertex groups to bones by exact name, so Forearm.L is not used for forearm.L. Rename the vertex group (or the bone) so both names are identical, then test again in Pose Mode.
Exercise
After binding, a character's arm looks stretched and sheared when the shoulder rotates. The mesh scale reads 1.0, 1.0, 1.0, but the armature scale reads 1.0, 1.0, 2.0. What do you do, and what do you do about the existing weights?
Show answer
Select the armature in Object Mode and apply scale (Object > Apply > Scale). Then clear the automatic weights, or delete the vertex groups, and bind again with automatic weights, since the old weights were computed with the unapplied scale. Test in Pose Mode afterward.