Sub topic 4
Preparing the high- and low-poly meshes
This chapter assumes you can move between Object Mode and Edit Mode, know how to mark seams and unwrap, and understand that shading normals are the per-vertex directions Blender uses to light a surface. The bake itself comes in later chapters. Here the goal is to make sure the two meshes are ready, because most bad bakes come from the meshes and not from the bake settings.
What the baker needs from your meshes
The Cycles baker fires a ray from each texel of the low-poly mesh's UV layout toward the high-poly surface and records what it hits. The result is only as good as three things: the two meshes line up in space, the low-poly surface has trustworthy normals and UVs, and both objects carry clean transforms. Each is a separate preparation step.
Naming and placement
Use a consistent suffix such as Asset_high and Asset_low. The scripts later in this tutorial look objects up by name, and exporters and game engines often match _high and _low automatically.
The high-poly mesh must occupy the same space as the low-poly mesh. Do not move the high-poly mesh away "to see it better", because rays are cast in world space and any offset becomes a bake error. If you want to compare them in the viewport, use a collection toggle or the object's viewport visibility instead of moving them.
For a first bake the low-poly mesh should sit just inside or on the high-poly surface, so rays cast outward hit it. Sculpted detail that pokes out beyond the low-poly silhouette is the case that cage extrusion and ray distance handle later.
Apply transforms
Scale and rotation on an object that have not been applied are the most common cause of skewed or stretched normal maps. A non-uniform scale such as (1, 1, 2) stretches the normals the baker calculates. A leftover rotation can leave tangent-space output that no longer matches the mesh when you export it.
For both objects, apply rotation and scale (Ctrl+A, then Rotation & Scale). You can leave location unapplied, since the baker works in world space. If the object has a negative scale, such as a mirrored copy, applying it flips the face winding, so recalculate normals afterwards.
The script below checks both objects and prints what needs fixing. It changes nothing, so you can run it safely.
import bpy
def check_object(obj):
problems = []
if obj is None:
return ["object not found"]
if obj.type != 'MESH':
return ["not a mesh"]
loc, rot, scale = obj.matrix_world.decompose()
if any(abs(s - 1.0) > 1e-4 for s in scale):
problems.append(f"scale is {tuple(round(s, 4) for s in scale)}, apply it")
if any(abs(a) > 1e-4 for a in rot.to_euler()):
problems.append("rotation is not applied")
if obj.matrix_world.to_3x3().determinant() < 0:
problems.append("negative scale, normals may point inward")
return problems
for name in ("Asset_high", "Asset_low"):
obj = bpy.data.objects.get(name)
issues = check_object(obj)
print(name, "OK" if not issues else issues)Because the check reads matrix_world, a parent's transform counts as well. A child of a scaled parent will report that scale even though its own scale reads 1.
Normals: direction and shading
There are two separate normal problems, and they have different fixes.
Direction. Every face normal must point outward. In Edit Mode, select everything and use Shift+N (Mesh > Normals > Recalculate Outside). To see the problem, turn on Face Orientation in the viewport overlays. Blue is the outside and red is the inside. Any red on a closed mesh is a bug. Inward-facing normals on the high-poly mesh produce missed rays or inverted detail, because the baker reads the surface orientation from the side it hit.
Shading. This applies to the low-poly mesh. The normal map is the difference between the high-poly surface and the low-poly shading normals. Whatever shading the low-poly mesh has at bake time is the shading the map is built against, so the map only looks right when the same shading is used later in the engine.
- Use smooth shading on the low-poly mesh. Flat shading on a curved low-poly mesh pushes the faceting into the map as strong gradients.
- Mark an edge sharp wherever you want a hard angle, and put a UV seam on that same edge. A sharp edge without a seam leaves a gradient across a shading split. A seam without a sharp edge splits the texture where the shading is continuous. Both leave a visible line.
- In Blender 4.1 and later, smooth shading no longer needs the Auto Smooth setting, and sharp edges are used directly. In older versions, enable Auto Smooth in the mesh data properties so sharp edges take effect.
Triangulate the low-poly mesh
Quads are split into triangles when exported to a game engine, and the way a quad is split changes the interpolated normals across it. If you bake on quads but the engine splits them differently, the shading can differ along the diagonal. Add a Triangulate modifier to the low-poly mesh and keep it in the stack at export time, or apply it before baking, so the bake and the engine use the same triangles. Check the modifier's quad and N-gon methods. Fixed or Beauty are common choices, and the point is to keep the same settings in both places.
Modifiers on both meshes
The baker uses the evaluated mesh, so modifiers that are enabled for rendering are included.
- A Subdivision Surface modifier on the high-poly mesh is fine, as long as its Render level is the one you want to bake from.
- A Mirror modifier on the low-poly mesh is fine, but mirrored UVs overlap. Overlapping islands bake two halves into the same texels, which gives wrong results for normal maps. Handled in the UV chapter: offset the mirrored island by one UV tile or apply the modifier before baking.
- Disable or remove any modifier that moves the low-poly surface away from the high-poly one, such as a Displace modifier you only used for preview.
UVs and material on the low-poly mesh
Before you bake, the low-poly mesh needs exactly one active UV map with non-overlapping islands, and a material slot to hold the bake target. The high-poly mesh needs neither. The baker ignores its UVs and materials for a normal or AO bake, so you do not have to unwrap a sculpt with millions of faces.
The script below checks the low-poly mesh for those requirements and for non-triangulated faces.
import bpy
low = bpy.data.objects["Asset_low"]
mesh = low.data
if mesh.uv_layers.active is None:
print("No UV map: unwrap before baking")
if not low.material_slots or low.active_material is None:
print("No material: add one to hold the bake target image")
if not all(p.use_smooth for p in mesh.polygons):
print("Some faces are flat shaded")
non_tris = sum(1 for p in mesh.polygons if len(p.vertices) != 3)
print(f"{non_tris} of {len(mesh.polygons)} faces are not triangles")If the last line reports non-triangles, either apply the Triangulate modifier or confirm it is in the stack, as described above.
Common preparation mistakes
| Symptom in the bake | Likely preparation cause |
|---|---|
| Stretched or skewed detail | Unapplied non-uniform scale on either object |
| Black patches or missing detail | Inward-facing normals on the high-poly mesh |
| Hard line across a smooth surface | Seam without a matching sharp edge, or the reverse |
| Gradient along a diagonal in the engine | Quads baked but triangulated differently on export |
| Detail doubled or smeared on one side | Overlapping mirrored UV islands |
Exercise
Your low-poly mesh has a hard 90 degree edge along a box corner, and the bake shows a soft gradient across that edge. Which two things should you check, and what should be true of them?
Show answer
Check that the edge is marked sharp and that it is also a UV seam. Both must be set on the same edge. If it is sharp without a seam, the texture continues across a shading split and produces a gradient. If it is a seam without sharpness, the shading is continuous and the seam shows as a line.
Exercise
A teammate scaled the high-poly mesh to (1, 1, 2) in Object Mode to make it taller and then baked. The normal map looks stretched. What should they have done, and why does this matter for a bake?
Show answer
Apply the scale (Ctrl+A, Rotation & Scale) before baking, or edit the mesh in Edit Mode instead. The baker reads the surface in world space, and a non-uniform scale on an unapplied object distorts the normals it records, which produces stretched or skewed detail.