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.
| Channel | Vector axis | Meaning of high values | Flat-surface value |
|---|---|---|---|
| Red | X (tangent) | Normal tilts toward +U | 0.5 (128 in 8 bit) |
| Green | Y (bitangent) | Normal tilts toward +V or -V, by convention | 0.5 (128 in 8 bit) |
| Blue | Z (surface normal) | Normal points straight out | 1.0 (255 in 8 bit) |
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.
| Space | Typical appearance | Works on deforming meshes | Reusable across models | Typical use |
|---|---|---|---|---|
| Tangent space | Mostly blue-violet | Yes | Yes, including tiling | Games, characters, tileable materials |
| Object space | Rainbow gradients | No, unless re-baked | No | Static props, some baking pipelines |
| World space | Rainbow gradients | No | No | Intermediate passes, terrain tools |
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.
- Create a clean, non-overlapping UV layout for the low-polygon model, with seams placed where hard edges occur.
- Align the high-polygon and low-polygon meshes in the same position and scale.
- Set a cage or ray distance that encloses the high-polygon detail without reaching unrelated geometry.
- Bake at the target resolution, often 2048 or 4096 pixels square, with padding of several pixels around each UV island.
- 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 compared with related surface maps
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.
| Technique | Data stored | Changes geometry | Affects silhouette | Relative cost |
|---|---|---|---|---|
| Bump map | Single-channel height | No | No | Low, derivatives computed in shader |
| Normal map | Three-channel direction | No | No | Low, one texture lookup |
| Parallax occlusion mapping | Height used for ray marching | No, simulated depth | No | Medium to high per pixel |
| Displacement map | Height applied to vertices | Yes | Yes | High, requires dense tessellation |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Bumps look inverted, lit from below | Wrong green channel convention | Invert the green channel or change the importer setting |
| Visible seams on smooth surfaces | Mismatched tangent basis | Bake and render with the same tangent space, such as MikkTSpace |
| Washed-out or tilted shading | Map loaded as sRGB color | Set the texture to non-color or linear |
| Wavy artifacts on flat faces | Cage too small or wrong smoothing | Adjust cage distance and split hard edges at UV seams |
| Blocky banding on gentle curves | 8-bit precision limits | Bake to 16 bit and use dithering or BC5 compression |
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.