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.
| Surface | Role in the bake | Typical source |
|---|---|---|
| High-poly mesh | Supplies the detail that is captured | Sculpt or subdivided model |
| Low-poly mesh | Receives the baked maps through its UVs | Retopology or game mesh |
| Baking cage | Sets ray start points and directions | Inflated copy of the low-poly mesh |
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.
| Setting | Too small or wrong | Too large or right |
|---|---|---|
| Extrusion distance | Missing detail, red or black holes | Too large: ray skew and stray captures |
| Push direction | Split normals cause seam gaps | Averaged normals give continuous rays |
| Local cage edits | Thin parts capture neighbors | Hand-tuned vertices isolate parts |
| Ray length beyond cage | Rays end before reaching detail | Matched length keeps bakes clean |
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.
| Aspect | Cage projection | Ray distance projection |
|---|---|---|
| Control | Per-vertex, editable by hand | One global value per bake |
| Hard edge handling | Continuous rays with averaged cage | Prone to gaps on split normals |
| Setup time | Longer, needs cage editing | Very short |
| Best for | Complex or tight assets | Simple, rounded shapes |
| Main risk | Topology mismatch breaks the bake | Ray misses or stray hits |
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.
- Finish the retopology and UV layout of the low-poly mesh first, because later topology changes invalidate the cage.
- Duplicate the low-poly mesh and push it outward until it just covers the high-poly model everywhere.
- Inspect tight areas such as fingers, straps and stacked panels, and pull cage vertices inward where they reach into neighboring parts.
- Export the cage alongside the low-poly mesh, keeping vertex order intact, and assign it in the baker.
- 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 map | Likely cause | Fix |
|---|---|---|
| Flat or missing detail patches | Cage inside the high-poly | Push the cage out locally |
| Detail from a neighbor part | Cage too inflated in a tight area | Pull vertices in or explode the bake |
| Wavy or skewed details | Rays strongly angled by an uneven cage | Even out the cage offset |
| Seams along hard edges | Cage pushed along split normals | Use averaged normals for the cage |
| Bake fails to start | Vertex count mismatch | Recreate the cage from the final mesh |
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.