3D Animation & Rigging
ðĶī 3D Animation, Rigging & Pipeline
In 3D game development, animation is the intersection of math, deformation, and performance. Regardless of whether you author keyframes in Blender or Maya, the runtime representation across game engines (Unreal, Godot, Unity) relies on the same core components: Skeletons (Armatures), Skinning Weights, Constraints, and State Machines.
ðïļ 1. The Anatomy of a 3D Character Rig
+-------------------------------------------------------------+
| 1. Skeleton / Armature (Hierarchical Bone Tree) |
| - Root -> Pelvis -> Spine -> Chest -> Arms / Legs / Head |
+-------------------------------------------------------------+
â (Local & World Transforms)
âž
+-------------------------------------------------------------+
| 2. Mesh Binding & Skin Weights (Vertex Deformation) |
| - Each vertex stores Bone Indices + Bone Weights (sum = 1)|
+-------------------------------------------------------------+
â
âž
+-------------------------------------------------------------+
| 3. Animation Data (Tracks / Curves / Keyframes) |
| - Translation, Rotation (Quaternions), Scale over time |
+-------------------------------------------------------------+
â
âž
+-------------------------------------------------------------+
| 4. Engine Runtime (Blend Trees, State Machines, IK Solvers) |
| - Unreal AnimGraph / Godot AnimationTree / Unity BlendTree|
+-------------------------------------------------------------+
Bone Hierarchy & Local vs World Space
- Bones form a directed tree with parent-child relationships. Moving the
Pelvisautomatically moves the entire upper and lower body. - When an animation keyframes a bone, it stores local transforms relative to the parent bone.
- Root Bone Rule: Always have a true
rootbone located at world origin(0, 0, 0)on the floor between the character's feet. This root bone drives in-game Root Motion (calculating character displacement physically rather than sliding code velocity).
ðŊ 2. FK (Forward Kinematics) vs IK (Inverse Kinematics)
| Feature | Forward Kinematics (FK) | Inverse Kinematics (IK) |
|---|---|---|
| Control Style | Rotate parents to position children | Position child target; parent bones calculate angles |
| Workflow | Shoulder | Move Hand Target |
| Best Used For | Arcs, swinging arms, overlapping action | Grounding feet on uneven slopes, grabbing ledges/weapons |
| Runtime Cost | Low (pure matrix multiplication) | Higher (iterative solvers: Two-Bone IK, FABRIK, CCD-IK) |
Practical Rigging Setup
When authoring character rigs in Blender, build FK/IK switchable controls. Animate broad, expressive body language in FK for natural arcs, and switch limbs to IK when hands or feet must pin firmly to weapons, steering wheels, or the floor.
âïļ 3. Vertex Skinning & Performance Limits
Vertex skinning determines how the 3D surface mesh stretches when bones rotate:
- Vertex Weights: Each vertex in your mesh is influenced by
bones. The sum of all weights per vertex must equal :
- The 4-Bones-per-Vertex Standard: In game engines and GPU vertex shaders (such as custom Vulkan skinning pipelines), vertex data structures are typically hardcoded to
uvec4(bone indices) andvec4(weights). Any vertex painted with more than 4 or 8 bone influences will be clamped at export, causing mesh tearing or clipping if not normalized.
ðŽ 4. The 3D Animation Workflow: From Blockout to Polish
- Step 1: Posing & Keyframing (Stepped Mode)
- Set key poses (Key, Breakdown, Extremes) using stepped/constant interpolation. Focus purely on silhouettes, weight distribution, and timing.
- Step 2: Spline Curves & Graph Editor
- Convert stepped keys into Bezier curves. Refine the speed curves, anticipation ease-in, and impact snap.
- Step 3: Secondary & Overlapping Motion
- Offset keys for loose parts (hair, pouches, capes, weapon tails) by 2â4 frames after the primary body motion hits.
- Step 4: Cleanup & Normalization
- Ensure looped animations (Walk, Run, Idle) have identical first and last pose frames to eliminate hitching.
ðŪ 5. Engine Implementation & Animation State Machines
In Unreal Engine 5
- Anim Blueprints & AnimGraph: Drive transitions between Locomotion states using speed and direction variables.
- BlendSpaces (1D & 2D): Smoothly blend between
Idle,Walk, andRunanimations based on current velocity vectors. - Control Rig & Full-Body IK (FBIK): Procedural foot placement and climbing adjustments directly inside UE5.
In Godot 4
AnimationPlayer: Holds track keys for transforms, node properties, method calls, and audio triggers.AnimationTree(State Machine & BlendTree): Blends multiple animations (e.g. blendRunwith upper-bodyAim_RifleusingBlend2orAdd2nodes).
ð Related Notes
- Getting Started With 3D Animation â Beginner overview, the Bouncing Ball test, and the 12 Principles.
- 2D Animation, Tools & Frame-by-Frame Workflow â Frame-by-frame, cut-out rigs, and timing charts.
- VFX & Shaders for Games â Visual effects, particles, flipbooks, and shader deformation.
- Index for Unreal â Unreal Engine character animation and systems.
- Godot Basics & Architecture â Godot animation nodes and scene composition.
- Game Development Hub â Central game development index.