Sub topic 10
Cage, Extrusion, and Max Ray Distance
This chapter assumes that the high-poly and low-poly meshes are prepared, have applied transforms, and use clean UVs. It also assumes that you know how to use Cycles baking and the Selected to Active workflow.
When Blender bakes from high poly to low poly, it sends rays from the low-poly surface toward the high-poly surface. The rays sample the high-poly shape and store the result in the low-poly texture. Blender needs to know how far those rays may travel and which surface region they should sample.
How the bake boundary works
A cage is a temporary copy of the low-poly mesh that is expanded outward. Blender starts rays on the cage and sends them inward or outward toward the high-poly mesh. The cage gives you more control than using the low-poly surface directly.
The cage should surround the low-poly mesh without reaching too far beyond the high-poly mesh:
If the cage is too small, some rays miss the high-poly mesh. The baked image then contains empty areas, dark patches, or the background color. If the cage is too large, rays may hit the wrong part of the high-poly object. This can create details projected from nearby surfaces.
Extrusion and max ray distance
In Blender's Cycles Bake settings, Cage Extrusion expands the low-poly surface by a uniform distance. It is useful when you do not have a separate cage object. A small value often works well for objects with evenly scaled parts.
Max Ray Distance limits how far each ray can travel from the low-poly surface. A value of 0 means no explicit maximum distance. Blender continues until a surface is found or the scene's ray behavior stops the search.
| Setting | What it controls | Common problem |
|---|---|---|
| Cage Extrusion | Uniform expansion around the low-poly mesh | Misses or unwanted nearby hits |
| Max Ray Distance | Maximum ray travel distance | Missing detail when too small |
| Custom Cage | Exact projection boundary | Requires a carefully shaped cage mesh |
Start with a small cage extrusion, such as 0.01 to 0.03 Blender units, based on the object's scale. Increase it only until the cage fully encloses the high-poly surface. For more control, create a duplicate low-poly object, edit its vertices outward, and select it as the custom cage.
A practical adjustment process
- Display the low-poly, high-poly, and cage objects in the viewport.
- Check the thinnest parts, sharp corners, and areas near other surfaces.
- Bake a small test image.
- Inspect the result for blank pixels, dark spots, or details from the wrong location.
- Increase extrusion slightly if rays miss.
- Reduce the distance or use a custom cage if rays cross into neighboring geometry.
- Keep
Max Ray Distanceat zero unless you need a deliberate limit.
Exercise
A bake has blank pixels on the tips of the low-poly mesh, but nearby surfaces are also being projected onto other faces. What should you try?
Show answer
Inspect the cage around the tips, enlarge it locally or increase extrusion slightly, then reduce the projection range or use a custom cage to prevent rays from reaching neighboring surfaces.