Baking cage

Also known as: projection cage

On this page 7

A baking cage, also called a projection cage, is an inflated duplicate of a low-poly mesh that encloses the high-poly model and defines where and in which direction rays are cast when surface detail is baked into texture maps. In sculpting, a core discipline of 3D graphics & animation, the cage is the control surface that decides how fine sculpted detail is transferred onto the game-ready mesh through normal, ambient occlusion and other maps.

Without a cage, a baker projects rays along the averaged or split vertex normals of the low-poly mesh using a single distance value. A cage replaces that global value with per-vertex control, so artists can push the projection surface out where the sculpt bulges and pull it in where neighboring parts would otherwise be captured by mistake.

How a baking cage guides ray projection

During texture baking, the baker visits every texel of the low-poly UV layout and fires a ray to find the matching point on the high-poly surface. With a cage, each ray starts on the cage surface and travels inward toward the low-poly surface; the first high-poly hit along that path supplies the normal, height or color value written into the texel.

The cage must share identical topology with the low-poly mesh: the same vertex count, vertex order, face layout and UV-relevant structure. Bakers interpolate ray directions between corresponding cage and low-poly vertices, so any topology mismatch breaks the correspondence and the bake fails or produces garbage.

The table below summarizes the three surfaces involved in a cage bake and the role each one plays.

SurfaceRole in the bakeTypical source
High-poly meshSupplies the detail that is capturedSculpt or subdivided model
Low-poly meshReceives the baked maps through its UVsRetopology or game mesh
Baking cageSets ray start points and directionsInflated copy of the low-poly mesh
Surfaces involved in a cage bake

Cage distance and ray direction

The most important cage parameter is extrusion distance, the offset between the low-poly surface and the cage. It must be large enough to fully enclose the high-poly model but no larger than necessary, because an oversized cage lets rays travel far enough to strike unrelated geometry.

Equally important is how the cage is pushed. A cage inflated along averaged vertex normals keeps the projection continuous across hard edges, which avoids gaps and seams in the bake. Inflating along split face normals tears the cage apart at hard edges and leaves visible seam artifacts where neighboring faces receive rays from separate directions.

The following table shows how common cage settings affect the result.

SettingToo small or wrongToo large or right
Extrusion distanceMissing detail, red or black holesToo large: ray skew and stray captures
Push directionSplit normals cause seam gapsAveraged normals give continuous rays
Local cage editsThin parts capture neighborsHand-tuned vertices isolate parts
Ray length beyond cageRays end before reaching detailMatched length keeps bakes clean
Cage settings and their effects

Baking with a cage versus without one

Most baking tools support both cage-based projection and a simpler ray distance projection that uses front and rear distances along the low-poly normals. The choice affects control, setup time and how predictable the result is on complex assets.

AspectCage projectionRay distance projection
ControlPer-vertex, editable by handOne global value per bake
Hard edge handlingContinuous rays with averaged cageProne to gaps on split normals
Setup timeLonger, needs cage editingVery short
Best forComplex or tight assetsSimple, rounded shapes
Main riskTopology mismatch breaks the bakeRay misses or stray hits
Cage projection compared with distance projection

A related technique is exploded baking, in which separate parts of the model are moved apart before the bake. It is often combined with a cage, because separation prevents parts from capturing each other while the cage controls detail within each part.

Creating and editing a baking cage

Most pipelines start with an automatic cage created by the baker or the 3D application, then refine it by hand. Typical tools include a push modifier or an inflate operation that offsets every vertex along its averaged normal by a set distance.

  1. Finish the retopology and UV layout of the low-poly mesh first, because later topology changes invalidate the cage.
  2. Duplicate the low-poly mesh and push it outward until it just covers the high-poly model everywhere.
  3. Inspect tight areas such as fingers, straps and stacked panels, and pull cage vertices inward where they reach into neighboring parts.
  4. Export the cage alongside the low-poly mesh, keeping vertex order intact, and assign it in the baker.
  5. Run a test bake, look for errors in the normal map and ambient occlusion map, and adjust only the affected cage regions.

A critical rule is to keep the low-poly mesh triangulated in the same way for the bake and for the final engine. Different triangulation changes the tangent basis, so a perfect cage bake can still shade incorrectly when the engine triangulates differently.

Common cage errors and how to fix them

Most baking defects trace back to cage coverage or cage shape. Reading the symptom in the baked map usually points directly to the region that needs adjustment.

Symptom in the mapLikely causeFix
Flat or missing detail patchesCage inside the high-polyPush the cage out locally
Detail from a neighbor partCage too inflated in a tight areaPull vertices in or explode the bake
Wavy or skewed detailsRays strongly angled by an uneven cageEven out the cage offset
Seams along hard edgesCage pushed along split normalsUse averaged normals for the cage
Bake fails to startVertex count mismatchRecreate the cage from the final mesh
Baking errors linked to the cage

In plain words

A baking cage is a slightly larger shell around a simple 3D model. Inside the shell sits a detailed sculpt. The software shoots tiny rays from the shell inward. Each ray records the detail it hits. The detail is then stored as an image on the simple model.

Imagine a mold around a carved statue. If the mold is too tight, parts of the statue poke through and get lost. If it is too loose, it catches things that do not belong. A good cage fits closely everywhere, so the copied detail looks right.

A real-world example

A character artist prepares a sci-fi soldier for a video game. The sculpt has about 12 million polygons, and the game mesh has about 25,000 triangles. A first bake with a single ray distance shows armor plates printed onto the chest straps and gaps along hard edges of the helmet.

The artist creates a baking cage from the final low-poly mesh with an outward push of about 0.8 centimeters, built on averaged normals. Around the straps and fingers, the artist pulls cage vertices inward by hand. The second bake produces a clean 4K normal map with no cross-captures and no seams, and the soldier shades correctly in the game engine on the first import.