Rigging
Bind a model made outside the game (static, or rigged for another skeleton) to one of the game's skeletons so it plays the game's clips - fit it, weight it automatically, paint weights, try clips and export it into the mod.
Rigging (Characters & Animation section) binds a model made outside the game to one of the game's skeletons, so it plays the game's own clips: a new monster on the kobold's skeleton, a new body for a hero race, a statue that walks. The model can be static, or rigged for another skeleton (its skin is replaced).
The steps
1. Load the model
Load glTF or FBX..., or double-click a model file of the mod in the Content Browser. The import options ask how to bring it in, and which game skeleton to rig to.
2. Pick the skeleton
Pick a game archive: its skeleton is the one your model will use. Bones draws the skeleton; The archive's model beside it puts the game's own model next to yours to compare.
3. Fit
Auto fit scales and places your model on the archive's model (or to the skeleton's height). Scale, Turn (+90 steps) and Offset adjust it by hand.
The game's models face -Y with +X their left, standing on the ground (z = 0).
4. Weight automatically
Weight automatically gives each vertex the bones whose segments pass nearest it.
- Falloff sharpens or softens the joints.
- Bones per vertex caps the blend (the game uses up to four).
- In the Bones list, untick a bone to keep automatic weight off it (the root is off by default). Untick tails, weapons and other bones your model shouldn't follow.
5. Paint weights
Switch the view to Weights: the selected bone's weight shows as heat, from dark blue (none) to red (all).
| Do | How |
|---|---|
| Paint | Left drag, with the Brush: Add, Subtract or Smooth |
| Brush size | [ and ] |
| Pick the bone under the mouse | Ctrl+click |
| Paint both sides | Mirror (left and right) paints the other side's bone too |
Smooth all evens the whole mesh. Mirror left to right and Right to left copy one side's weights onto the other. Every stroke is an undo step.
6. Try clips
Play a clip plays any of the archive's clips on your model. Watch the joints (shoulders, hips, knees) and paint where the mesh pinches or tears.
7. Export into the mod
Export into the mod writes assets/models/<name>.glb: the mesh with its skin and texture, the skeleton with its
bone names and, if you choose, every clip of the archive. Cook the mod, and it is the archive @<mod>/<name>: pick
it in the Creature Editor's Model tab, or place it from the Level Editor's
Props.
New clips for this skeleton (Animation Editor) opens the Animation Editor on the same skeleton, to make clips the archive doesn't have.
Tips
- Model in the game's proportions: a hero is about 75 units (1.8 m) tall. Auto fit handles the rest.
- For a hero race's body, start from the Race Builder's exported body: a mesh made on it keeps its weights.
- To remodel a disc model, export it from the Model Replacer with its skeleton: it needs no rigging at all.
