Normal map

Also known as: normal mapping

On this page 8

A normal map is a texture whose red, green and blue channels encode a surface normal direction for every texel, so that a renderer can light a surface as if it contained detail that the mesh does not actually have. In Texturing & materials for 3D graphics & animation, normal mapping is the standard way to transfer fine detail from a high-polygon sculpt onto a lightweight model used in games, real-time applications and many offline renders.

The technique changes only the shading, never the geometry. Silhouettes, shadows cast by the mesh and the outline of the object stay exactly as the underlying polygons define them, which is the central trade-off that every artist working with normal maps must understand.

How a normal map perturbs shading

A normal map works by replacing the interpolated vertex normal with a direction read from the texture before the lighting calculation runs. Lighting models such as Lambertian diffuse and microfacet specular depend on the angle between the surface normal and the light or view direction, so changing the normal changes how bright each pixel appears without moving any vertex.

Each channel stores one vector component remapped from the range -1 to +1 into 0 to 1. A flat, unperturbed surface therefore encodes as the color (0.5, 0.5, 1.0), which explains the characteristic lavender-blue tint of tangent-space normal maps. The shader reverses the remapping, normalizes the vector and transforms it into the space used for lighting.

The following table shows how the color channels correspond to directions in a typical tangent-space normal map.

ChannelVector axisMeaning of high valuesFlat-surface value
RedX (tangent)Normal tilts toward +U0.5 (128 in 8 bit)
GreenY (bitangent)Normal tilts toward +V or -V, by convention0.5 (128 in 8 bit)
BlueZ (surface normal)Normal points straight out1.0 (255 in 8 bit)
Channel encoding in a tangent-space normal map

Tangent-space and object-space normal maps

Normal maps differ mainly in the coordinate space in which their vectors are stored. Tangent space expresses each direction relative to the local surface, defined by the vertex normal, the tangent and the bitangent derived from UV mapping. Object space stores directions relative to the model itself, and world space stores them relative to the scene.

Tangent space dominates production because it survives deformation and texture reuse: a skinned character can bend, and a tileable brick texture can wrap around any wall. Object-space maps are slightly more precise and easier to filter, yet they are locked to one specific mesh and pose.

SpaceTypical appearanceWorks on deforming meshesReusable across modelsTypical use
Tangent spaceMostly blue-violetYesYes, including tilingGames, characters, tileable materials
Object spaceRainbow gradientsNo, unless re-bakedNoStatic props, some baking pipelines
World spaceRainbow gradientsNoNoIntermediate passes, terrain tools
Comparison of normal map spaces

Baking a normal map from a high-polygon model

Baking is the process that captures detail from a dense source mesh and writes it into a normal map for a simpler target mesh. The baker casts rays from each texel of the low-polygon surface, finds the matching point on the high-polygon model and records the difference between the two normals in the chosen space.

  1. Create a clean, non-overlapping UV layout for the low-polygon model, with seams placed where hard edges occur.
  2. Align the high-polygon and low-polygon meshes in the same position and scale.
  3. Set a cage or ray distance that encloses the high-polygon detail without reaching unrelated geometry.
  4. Bake at the target resolution, often 2048 or 4096 pixels square, with padding of several pixels around each UV island.
  5. Inspect the result under a moving light and correct errors in the cage, UVs or smoothing groups.

The most important requirement is a synchronized tangent basis. The baker and the renderer must calculate tangents identically, which is why many tools adopt the MikkTSpace standard. When the bases differ, smooth surfaces show faint seams and shading gradients that no texture edit can fully remove.

Normal maps sit between simple bump maps and true displacement in both visual fidelity and cost. Each technique answers a different question about how much of the surface should actually change.

TechniqueData storedChanges geometryAffects silhouetteRelative cost
Bump mapSingle-channel heightNoNoLow, derivatives computed in shader
Normal mapThree-channel directionNoNoLow, one texture lookup
Parallax occlusion mappingHeight used for ray marchingNo, simulated depthNoMedium to high per pixel
Displacement mapHeight applied to verticesYesYesHigh, requires dense tessellation
Normal maps and neighboring techniques

A bump map gives similar results for small detail but must be sampled several times to derive slopes, whereas a normal map stores slopes directly and can describe overhang-like angles that a height field cannot. In physically based rendering, the normal map feeds the same Principled BSDF input as a bump node, and the two are often chained so that fine procedural bumps add to a baked normal map.

Conventions, formats and common errors

The most frequent problem with normal maps is the green channel convention. OpenGL-style maps (often called Y+) treat a higher green value as pointing up in texture space, while DirectX-style maps (Y-) invert it. Blender and many offline renderers expect the OpenGL convention, while Unreal Engine expects DirectX, so flipping the green channel is a routine conversion step.

Normal maps must also be stored as non-color data with linear interpretation. Treating them as sRGB color shifts every vector, producing shading that looks slightly wrong in a way that is hard to diagnose. For compression, game engines use two-channel formats such as BC5, storing X and Y and reconstructing Z in the shader.

SymptomLikely causeFix
Bumps look inverted, lit from belowWrong green channel conventionInvert the green channel or change the importer setting
Visible seams on smooth surfacesMismatched tangent basisBake and render with the same tangent space, such as MikkTSpace
Washed-out or tilted shadingMap loaded as sRGB colorSet the texture to non-color or linear
Wavy artifacts on flat facesCage too small or wrong smoothingAdjust cage distance and split hard edges at UV seams
Blocky banding on gentle curves8-bit precision limitsBake to 16 bit and use dithering or BC5 compression
Typical normal map errors and fixes

Limitations of normal mapping

Because a normal map leaves the mesh untouched, silhouettes remain flat and detail disappears at grazing angles, where the outline reveals the low-polygon shape. Large forms such as deep cracks or protruding bolts should be modeled in the geometry or handled with displacement, while the normal map carries medium and fine detail.

  • No self-shadowing: details do not cast shadows on each other, which is why an ambient occlusion map is often added.
  • Mipmapping reduces strength: averaging vectors at a distance shortens them and flattens detail, a problem addressed by techniques such as Toksvig or LEAN mapping that adjust roughness.
  • Mirrored UVs need care: mirrored islands require a tangent basis that handles flipped bitangents correctly.
  • Texel density matters: insufficient resolution turns sharp edges into soft blur.

A plain-language summary

A normal map is a picture that tells a 3D program which way each tiny spot of a surface faces. The program uses that information to decide how light should hit the spot, so a perfectly flat wall can look covered in bricks, scratches or rivets.

Think of it as a skillful illusion painted with light. Up close and from the front it looks convincing, but if you look at the edge of the object you see that it is still flat. Artists use it because it gives rich visual detail without making the model heavy for the computer.

An example from practice

A character artist on a mid-size game team sculpts a sci-fi helmet with about four million polygons, including panel lines, screws and worn edges. The game can afford roughly 8,000 triangles for this asset, so the artist builds a low-polygon version, unwraps it with seams at the hard edges and bakes a 4096-pixel tangent-space normal map using MikkTSpace tangents.

During review in the engine, the panel lines appear raised instead of recessed. The cause is the DirectX green channel convention expected by the engine, while the map was baked for OpenGL. After the importer setting is changed, the helmet shades correctly. The final asset keeps all the visible sculpted detail in close-up shots while costing less than one percent of the original polygon count, and only the outline around the visor shows the simplified geometry.