Sub topic 1
Why bake detail from a high-poly mesh onto a low-poly mesh
Baking turns surface detail that costs geometry into texture data that costs memory. This chapter covers the working model of a high-to-low bake and what a bake can and cannot capture. It also covers the errors that show up first. The later chapters set up and run each step.
Prerequisites
This chapter assumes you can already do the following:
- Navigate the 3D Viewport and switch between Object Mode and Edit Mode.
- Create materials and open the Shader Editor to connect nodes.
- Unwrap a mesh with seams and view the result in the UV Editor.
- Explain what polygon count and shading normals are. A shading normal is the direction the renderer treats a surface as facing at a point, which may differ from the true geometric direction.
You do not need prior baking experience.
The problem baking solves
A sculpted asset can have several million triangles. Pores, rivets, dents and panel lines all live in that geometry. A real-time engine cannot draw a million-triangle prop hundreds of times per frame, so games and interactive viewers use a much lighter mesh.
Baking links the two meshes. You keep a dense mesh as the source of detail and a light mesh as the thing you ship. You then compute the difference between them and store it in images.
| Mesh | Role | Typical size | Kept in the final asset |
|---|---|---|---|
| High-poly | Source of detail | Hundreds of thousands to millions of triangles | No, usually discarded or archived |
| Low-poly | Target that carries the textures | Hundreds to a few thousand triangles | Yes |
The low-poly mesh keeps the silhouette and the broad shapes. The baked images supply the fine shading detail.
The working model
A bake is a ray-casting job. For every pixel of the target image, Blender asks which point on the low-poly surface that pixel represents. It uses the low-poly UV layout to answer. From that point, Blender casts a ray toward the high-poly surface and finds where the ray hits. It then records a value at that hit and writes it into the pixel.
What gets recorded depends on the bake type:
- For a normal map, the value is the direction the high-poly surface faces at the hit. It is stored relative to the low-poly surface.
- For ambient occlusion, the value is how much nearby geometry blocks light at the hit.
Three consequences follow from this model:
- The target needs UVs. Without a UV layout, Blender cannot map image pixels to surface points.
- The two meshes must overlap in space. A ray can only hit what is near it.
- The result is an image. Its sharpness is limited by texture resolution, not by the high-poly mesh.
What a bake transfers and what it cannot
A normal map changes how light shades a surface. It does not move any vertex. This has limits you will meet in practice:
- The silhouette stays low-poly. A bumpy edge baked into a normal map will still look straight when viewed from the side.
- Parallax is absent. A deep groove looks correct head-on but looks flat at grazing angles, because the surface behind the groove never moves.
- Self-shadowing is absent from a normal map. An ambient occlusion map adds some contact shading back, which is why the two are baked together.
This is why artists put real geometry into the low-poly mesh wherever the silhouette matters, and bake only the detail that sits inside it. Large forms go in geometry. Small forms go in textures.
Why the two meshes need to match
Both meshes need to describe the same object. If the low-poly mesh drifts away from the high-poly one, rays travel too far or hit the wrong surface. The baker lets you control this with a cage and a maximum ray distance. Those settings get their own chapter. For now, hold on to the general rule: the closer the low-poly surface hugs the high-poly one, the cleaner the result.
A related rule concerns shading. A normal map is calculated against the low-poly mesh's shading normals. If you bake with smooth shading and later view with flat shading, or the reverse, the map will not cancel the low-poly shading correctly. The same applies to a change in triangulation after the bake. Fix the shading and the triangulation before you bake, then leave them alone.
Two maps, two jobs
This tutorial bakes two maps because they answer different questions:
| Map | Question it answers | Stored as | Used in the material through |
|---|---|---|---|
| Normal | Which way does the surface face at each point? | RGB color encoding a direction | A Normal Map node into the shader's Normal input |
| Ambient occlusion | How hidden from ambient light is each point? | Grayscale brightness | Multiplied into base color, or exported for the engine's AO slot |
Both are data, not color. Their pixel values are measurements, so they must not be color-managed like a photograph. Blender's Non-Color setting stops the color pipeline from altering them. Skipping this setting is among the most common causes of a bake that looks wrong.
Checking the scale of the saving
Before baking, it helps to know what you are trading. This script prints the polygon counts of a pair of objects named Asset_high and Asset_low. It uses the evaluated mesh, so modifiers such as Subdivision Surface are included.
import bpy
depsgraph = bpy.context.evaluated_depsgraph_get()
for name in ("Asset_high", "Asset_low"):
obj = bpy.data.objects[name]
evaluated = obj.evaluated_get(depsgraph)
mesh = evaluated.to_mesh()
print(f"{name}: {len(mesh.polygons)} polygons")
evaluated.to_mesh_clear()Run it from the Scripting workspace with both objects in the scene. Reading obj.data.polygons directly would ignore modifiers and could under-report a subdivided sculpt.
Common first mistakes
- Baking with no UV map on the low-poly mesh. The bake either fails or writes nothing useful.
- Overlapping UV islands. Two surface regions sharing the same pixels overwrite each other's data.
- Leaving unapplied scale on either object. Distances such as ray distance then behave inconsistently.
- Forgetting that the high-poly mesh is only a source. It does not need UVs or materials for a normal or AO bake.
- Expecting the bake to repair a low-poly mesh that is too different from the high-poly one. Baking transfers detail but does not correct poor modeling.
Where this chapter leads
The rest of the tutorial follows the order of the working model. You will prepare the two meshes and the UV layout, create a target image, set the color space, and configure the Cycles Bake panel. You will then bake each map, apply it in a material, and diagnose artifacts. A Python script at the end automates the repeatable parts.
Exercise
A colleague bakes a normal map and finds that the low-poly object's silhouette still looks smooth and round, although the high-poly sculpt has a jagged edge. Is the bake broken? Explain using the working model.
Show answer
The bake is not broken. A normal map stores only the direction the surface faces, so it changes shading and not vertex positions. The silhouette comes from the low-poly geometry, which the bake never moves. To get a jagged outline, the low-poly mesh needs real geometry along that edge.
Exercise
Why does a high-to-low bake require the low-poly mesh to have a UV layout, and what happens to two surface regions whose UV islands overlap?
Show answer
Blender writes each result into an image pixel and uses the low-poly UVs to know which surface point each pixel represents. Without UVs, there is no mapping from pixels to points. If two islands overlap, both regions claim the same pixels, so one region's baked data overwrites the other's and one of them shows wrong detail.