Texture baking

Also known as: map baking

On this page 7

Texture baking, also called map baking, is the process of projecting surface information from one 3D model, or from a costly shading calculation, into 2D image maps stored in the UV space of a target mesh. In sculpting and across 3D graphics & animation, it is the step that turns a multimillion-polygon sculpt into normal, ambient occlusion and curvature maps that a lightweight game or real-time model can display.

Baking exists because detail is expensive as geometry but cheap as pixels. A texture lookup costs the GPU almost nothing, so baked maps let a model of a few thousand triangles reproduce the look of millions, as long as the viewing angle and lighting do not expose the illusion.

How texture baking projects detail

Most bakes rely on ray casting from the low-poly surface. For every texel in the target UV layout, the baker finds the matching point on the low-poly mesh, fires a ray along its interpolated normal and records what the ray hits on the high-poly source: the direction of the surface, its distance, its color or its occlusion.

Two settings control where rays start and how far they travel. A ray distance or front and rear offset defines a simple search shell, while a baking cage is an inflated copy of the low-poly mesh that gives each vertex an explicit ray origin. Cages produce cleaner results on hard edges because they avoid the gaps that averaged normals would otherwise cause.

A second family of bakes needs no high-poly source at all. Lighting and shading bakes evaluate a renderer on the model itself and store the result, for example precomputed global illumination in a lightmap or a procedural material flattened into ordinary textures.

Common baked map types

Each baked map type captures one kind of information and feeds a specific slot in a material or a later texturing step. The table summarizes the maps most often baked from sculpts.

MapWhat it storesMain use
Tangent-space normal mapSurface direction relative to the low-polyFake fine relief under lighting
Ambient occlusion mapHow exposed each point is to ambient lightContact shadows, dirt masks
Curvature mapConvex and concave areasEdge wear and cavity masks
Height or displacement mapDistance between high and low surfacesParallax or true displacement
Thickness mapApproximate local depth of the objectSubsurface scattering control
ID or color mapMaterial regions or polypaint colorsSelection masks, base color
Position or gradient mapWorld or object-space coordinatesDirectional dust and gradients
Frequently baked maps and their purpose

Normal maps are usually baked in tangent space because it survives deformation and reuse. The baker and the target engine must agree on the tangent basis, commonly MikkTSpace, and on the green channel convention, since OpenGL and DirectX formats flip that channel.

Texture baking within the sculpting workflow

Texture baking sits between retopology and texture painting in a typical asset pipeline. The sculpt supplies detail, retopology supplies a clean low-poly mesh, UV unwrapping supplies the space for pixels, and baking connects the three.

StageOutputRelation to baking
Digital sculptingHigh-poly mesh with fine detailSource of the bake
RetopologyClean low-poly meshTarget of the bake
UV unwrappingNon-overlapping UV islandsDefines texel layout
BakingNormal, AO, curvature and other mapsCore transfer step
Texture paintingAlbedo, roughness, metallic mapsUses baked maps as masks
Engine importGame-ready assetMust match tangent basis
Typical position of baking in an asset pipeline

Baking is related to, but distinct from, detail projection. Projection moves sculpted detail onto another mesh as geometry, whereas baking stores that detail as pixels. Vector displacement maps sit in between, because they are baked images that drive real displacement at render time.

Settings that decide bake quality

A clean bake depends more on preparation than on the baking tool. The low-poly silhouette should follow the high-poly closely, hard edges should coincide with UV seams, and UV islands need enough padding or dilation to prevent color bleeding into neighbors at lower mipmap levels.

  • Resolution: 2048 or 4096 pixels square is common for hero assets; 512 to 1024 suits props.
  • Anti-aliasing or supersampling: 4x to 16x samples smooth stair-stepping on fine edges.
  • Padding: about 8 to 16 pixels at 2K keeps seams clean when mipmaps are generated.
  • Explode or match by name: separating parts prevents rays from hitting neighboring pieces.
  • Bit depth: 16-bit output avoids banding in normal and height maps.

Typical baking artifacts and fixes

Most baking errors are geometric, not caused by the software. Rays that start too far away hit the wrong surface, rays that stop too early miss detail, and smoothing that disagrees with the engine produces visible shading gradients across flat faces.

ArtifactLikely causeFix
Wavy or skewed detailsRay direction follows averaged normalsUse a cage or add support geometry
Missing or cut-off detailRay distance too shortIncrease cage offset or distance
Projection from wrong partOverlapping objects during the bakeExplode meshes or match by name
Hard seams on edgesHard edges not split in the UVsPlace UV seams on hard edges
Gradient shading on flat facesMismatched tangent spaceBake and render with the same basis
Color bleeding at seamsInsufficient paddingIncrease dilation in pixels
Baking artifacts, causes and remedies

Baked results also have inherent limits. Normal maps cannot change a silhouette, baked lighting does not react to moving lights, and any later change to the high-poly sculpt requires a new bake to stay consistent.

Explained without jargon

Texture baking is like taking a detailed photograph of a sculpture and wrapping it around a simpler shape. The simple shape looks almost as rich as the original. It is much lighter to handle.

Artists first build a very detailed model. Then they make a simple version for games or apps. Baking copies the bumps, shadows and edges from the detailed model into pictures. Those pictures are painted onto the simple model. The computer then draws the scene quickly, yet viewers still see fine detail.

A typical use case

A prop artist prepares a sci-fi helmet for a console game. The sculpt contains about 8 million polygons with panel lines, bolts and scratches, while the game budget allows 6,000 triangles for the helmet.

After retopology and UV unwrapping, the artist sets up a cage, bakes 4K normal, ambient occlusion, curvature and ID maps with 8x supersampling, and fixes one skewed vent by adding two support edges. The curvature and occlusion maps then drive edge wear and grime in the texturing tool. In the engine, the 6,000-triangle helmet shows every panel line under moving lights and costs only a few texture lookups per pixel.