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


ðŸŽŊ 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 → Elbow → Wrist Move Hand Target → Arm automatically bends
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:

∑i=1NWi=1.0

🎎 4. The 3D Animation Workflow: From Blockout to Polish

  1. Step 1: Posing & Keyframing (Stepped Mode)
    • Set key poses (Key, Breakdown, Extremes) using stepped/constant interpolation. Focus purely on silhouettes, weight distribution, and timing.
  2. Step 2: Spline Curves & Graph Editor
    • Convert stepped keys into Bezier curves. Refine the speed curves, anticipation ease-in, and impact snap.
  3. 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.
  4. 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

In Godot 4