Keyframe interpolation is the process by which animation software calculates the values of an animated property between two or more keys that an animator has set by hand. In rigging & animation for 3D graphics, a key stores a value such as position, rotation, scale or a blend shape weight at a specific frame, and the interpolation method decides how the software travels from one stored value to the next.
The choice of interpolation shapes timing, spacing and the feel of motion. The same two keys can produce a mechanical glide, a soft ease in and ease out, or an abrupt jump, depending only on the interpolation mode and the tangents attached to each key. Animators inspect and edit the result as an animation curve in the graph editor.
How keyframe interpolation computes in-between frames
Keyframe interpolation works by evaluating a mathematical function for every frame that lies between two keys. The software takes the key values, their frame numbers and any tangent handles, then samples the resulting curve at each frame or subframe. Because the curve is continuous, the property can also be evaluated at fractional times, which matters for motion blur and for simulations that run with substeps.
Most packages describe each segment as a cubic Bezier or Hermite curve. Every key has an incoming and an outgoing tangent, and the tangent angle sets the velocity at that key while the tangent length, called weight in weighted-tangent systems, controls how long that velocity influences the segment. The table below summarizes the data that a single key carries.
| Key component | What it stores | Effect on interpolation |
|---|---|---|
| Frame | Time position, often fractional | Sets where the curve passes |
| Value | Property value at that frame | Fixes the curve height |
| In tangent | Slope arriving at the key | Controls deceleration into the key |
| Out tangent | Slope leaving the key | Controls acceleration out of the key |
| Tangent weight | Handle length | Changes how far the slope reaches |
| Interpolation mode | Constant, linear, Bezier and others | Selects the curve family |
Interpolation modes and tangent types
Animation tools offer a small set of standard interpolation modes, and their names differ slightly between applications. Constant interpolation, also called stepped interpolation, holds a value until the next key. Linear interpolation moves at a fixed rate. Spline-based modes such as Bezier, auto clamped and flat produce smooth acceleration and are the default for most character work.
| Mode | Motion character | Typical use |
|---|---|---|
| Constant (stepped) | Instant jump at the next key | Blocking, visibility switches |
| Linear | Uniform speed, sharp corners at keys | Mechanical motion, constant spin |
| Bezier (free) | Smooth, fully editable | Polishing character animation |
| Auto clamped | Smooth without overshoot | Default spline for most keys |
| Flat | Zero velocity at each key | Holds and clean ease in and out |
| Easing presets | Predefined acceleration profiles | Motion graphics and user interface work |
A frequent problem with unrestricted splines is overshoot: the curve swings past a key value even though no key requests it, which can push a foot through the floor. Clamped tangents prevent this by flattening the slope when neighboring keys have equal or near-equal values. Some applications also provide cycle modifiers that repeat or offset a curve, which is how a walk cycle loops without manual copying.
Interpolating rotations and other special properties
Rotations need special treatment because each Euler channel is interpolated independently. When X, Y and Z rotation curves move separately, the combined orientation can take an unexpected path or suffer from gimbal lock, where two axes align and one degree of freedom is lost. Animators often apply an Euler filter to remove 360-degree flips that occur after baking or motion capture import.
Quaternion interpolation avoids these issues by blending orientations on a four-dimensional unit sphere. Spherical linear interpolation, known as slerp, gives the shortest constant-speed path between two orientations, while squad and similar schemes add smoothness across several keys. The trade-off is that quaternion curves are harder to read and edit in a graph editor, so many studios keep Euler rotations for hand animation.
| Approach | Strength | Limitation |
|---|---|---|
| Euler curves | Readable per-axis editing | Gimbal lock, flipping |
| Quaternion slerp | Shortest stable path | No intuitive per-axis curves |
| Quaternion squad | Smooth across many keys | Less common in user interfaces |
| Axis-angle | Clear single-axis turns | Ambiguous for multi-axis motion |
Keyframe interpolation compared with related techniques
Keyframe interpolation is the automated core of in-betweening, the traditional practice of drawing frames between key poses. In pose-to-pose animation, the animator sets strong keys first and lets interpolation fill the gaps, then adds breakdowns where the computer guess is weak. Motion capture and procedural animation generate dense data instead, so interpolation plays a smaller role until the data is reduced to fewer keys.
| Method | Source of motion | Role of interpolation |
|---|---|---|
| Pose-to-pose keying | Animator key poses | Primary source of in-betweens |
| Straight-ahead keying | Key on many frames | Minor, fills small gaps |
| Motion capture | Recorded performance | Used after key reduction |
| Procedural animation | Rules and expressions | Often bypassed entirely |
| Nonlinear animation | Clips and blending | Blends between clip values |
Practical workflow and common mistakes
A reliable workflow starts in stepped mode during blocking, so poses and timing can be judged without misleading in-betweens. The animator then switches to splines, checks the result in the graph editor, and adds breakdown keys where arcs or spacing look wrong. Working curve by curve, with clean tangents and as few keys as necessary, keeps the animation easy to revise.
- Floaty motion: spline defaults spread acceleration too evenly; tighten tangents or add a breakdown key.
- Overshoot and floor penetration: free tangents swing past a value; switch to clamped or flat tangents.
- Rotation flips: Euler values jump by 360 degrees; run an Euler filter or use quaternions.
- Mushy contacts: spline curves soften impacts; use linear or broken tangents at the contact key.
- Key clutter: baked data hides intent; apply key reduction before polishing.
Understanding it simply
An animator does not draw every frame. They set a few important moments, called keys. The computer fills in the frames between them. That filling-in is keyframe interpolation.
Think of it like planning a car trip. You choose the start and the destination. The route between them can be a straight road or a gentle curve. You can start slowly and speed up, or drive at one speed the whole way. The interpolation mode is the driving style. It decides whether the motion looks robotic, smooth or sudden.
Applied in practice
A character animator on a game project needs a 24-frame jump for a hero. She blocks the action in stepped mode with four poses: crouch at frame 1, takeoff at frame 6, apex at frame 14 and landing at frame 22. The director approves the timing quickly because no automatic in-betweens blur the poses.
She then converts the keys to auto clamped splines. The jump looks floaty, so she flattens the tangents at the apex to create a short hang time and makes the takeoff tangent steeper to show force. The landing uses a linear incoming tangent so the feet hit the ground with a crisp contact. The result is a jump that reads as heavy and powerful with only eight keys per control, which keeps later revisions fast.