Sub topic 9
Adding detail with Normal Map and Bump
This chapter assumes you can open the Shader Editor, connect nodes, and load an image texture into an Image Texture node. It also assumes you know what UV coordinates are and have set color spaces for image maps (previous chapter). By the end you will know when to use a Normal Map node, when to use a Bump node, how to wire each into the Principled BSDF, and how to fix the usual errors.
Why fake detail at all
A surface with fine detail such as bricks, pores, scratches or fabric weave would need millions of polygons to model directly. Normal Map and Bump nodes avoid this. They do not move any geometry. They change the shading normal, the direction the renderer uses to decide how light reflects at each point. The silhouette of the object stays smooth, but the lighting behaves as if the surface were bumpy.
The Principled BSDF has a Normal input near the bottom of the node. Both techniques connect to it.
| Technique | Input data | Best for | Cost of authoring |
|---|---|---|---|
| Normal Map node | An RGB image that stores a direction per pixel | Baked detail from a high-poly model, sculpts, downloaded PBR sets | Needs a baked or downloaded map |
| Bump node | A grayscale height value, from an image or a procedural texture | Quick detail, procedural patterns, small scratches | Any grayscale source works |
Normal Map
What a normal map stores
A normal map is an image in which each pixel's red, green and blue values encode a direction vector. The common tangent-space format is mostly a light purple-blue color. Flat areas are about (0.5, 0.5, 1.0), meaning "pointing straight out of the surface". Red encodes the X tilt, green the Y tilt, and blue the Z component.
Tangent space means the directions are stored relative to the surface itself, using the UV layout. This lets the same map work when the object is rotated, moved or deformed. Blender's Normal Map node uses tangent space by default.
Wiring it up
- Add an Image Texture node and load the normal map.
- Set its color space to Non-Color. This is required, because the pixel values are vectors, not colors. If the image stays in sRGB, Blender applies a color curve to the values, and the lighting looks wrong.
- Add a Normal Map node (Add > Vector > Normal Map).
- Connect Image Texture Color to Normal Map Color.
- Connect Normal Map Normal to Principled BSDF Normal.
Never connect the Image Texture straight to the Principled BSDF Normal socket. The Normal Map node does the conversion from the color encoding to a usable direction.
The Normal Map node has these settings:
- Space: Tangent (default), Object, World, or Blender Object/World. Use Tangent unless the map was baked in another space.
- UV Map: which UV map defines the tangent space. In Tangent space with several UV maps, choose the one the map was baked for. If left empty, Blender uses the active render UV map.
- Strength: scales the effect. 1.0 is full, 0 disables it. Values above 1 exaggerate it, though results can look unnatural.
OpenGL and DirectX normal maps
Normal maps come in two conventions. They differ in the direction of the green channel. Blender expects the OpenGL convention (Y up, green points up). Many game-oriented tools and some texture sites export DirectX maps (Y down). If a DirectX map is used in Blender, bumps look like dents and the lighting appears to come from the wrong side in the vertical direction, while horizontal lighting looks fine.
To fix it, either download the OpenGL version, or invert the green channel. In the node tree, use a Separate Color node, an Invert Color node on Green, and a Combine Color node, then feed the result to the Normal Map node.
Bump
How bump works
A bump map is a grayscale height field. The Bump node reads the height at a point and at neighboring points, finds the slope, and tilts the normal accordingly. White is high, black is low. It never needs a special image format: any grayscale value works, including procedural textures such as Noise or Voronoi.
Wiring it up
- Add the texture that provides height, for example an Image Texture with a grayscale image, set to Non-Color.
- Add a Bump node (Add > Vector > Bump).
- Connect the texture's Color or Fac output to the Bump node Height input.
- Connect Bump Normal to Principled BSDF Normal.
The Bump node has these inputs:
- Strength: how strong the effect is, from 0 to 1. This blends between the original normal and the bump result.
- Distance: how far, in scene units, the surface moves between height 0 and height 1. Small values such as 0.01 suit fine detail on a 1 m object. Large values exaggerate the effect.
- Invert: swaps high and low, which is useful for engraved detail.
- Normal: an optional input for chaining. It accepts another normal, such as a Normal Map result.
Combining both
You can add fine detail on top of a normal map. Connect the Normal Map node output to the Normal input of the Bump node, then connect the Bump node output to the Principled BSDF. The bump detail is applied on top of the normal-mapped shape. This is a common way to add scratches to a baked brick map.
Choosing between them
Use a normal map when you have one, especially from a bake or a PBR texture set. It captures detail from a high-poly model and gives accurate results in a single texture lookup. Use bump when you only have a height or grayscale source, when you want a procedural pattern, or when you want quick, adjustable detail.
Neither method changes the geometry, so both have limits:
- Silhouettes stay flat. Edges of the object do not show the bumps.
- Shadows cast by the detail do not appear. Only shading changes.
- At steep viewing angles, the illusion breaks down and the surface looks flat.
For real displacement, you need the Displacement output of the Material Output node, or actual geometry such as a Displacement modifier. Those are separate techniques and are not covered here.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Surface looks tinted or lighting is uneven | Normal map image left in sRGB | Set the Image Texture color space to Non-Color |
| Bumps look like dents | DirectX normal map, or Invert enabled by mistake | Invert the green channel, or turn Invert off |
| Normal map has no visible effect | Image connected to Base Color, or Strength is 0 | Route it through a Normal Map node to the Normal input and check Strength |
| Whole surface looks wrongly shaded and smeared | Wrong UV map selected, or UVs overlap or are mirrored incorrectly | Choose the right UV Map in the Normal Map node and check the UV layout |
| Bump looks far too strong | Distance too large for the object scale | Reduce Distance, or lower Strength |
| Detail looks stair-stepped or blocky | Low resolution height image | Use a larger image or a smoother source |
Mirrored UVs deserve a note. Tangent-space normal maps assume consistent UV orientation. Mirrored UV islands flip the tangent direction, so the baked map must account for that, which most baking tools do. If you see a seam down the middle of a symmetrical object, mirrored UVs are a likely cause.
Setting it up with Python
This script adds a normal map and a bump on top of it, using the node setup described above. It assumes the active object already has a material with a Principled BSDF, and that the image path is a placeholder you replace.
import bpy
obj = bpy.context.active_object
mat = obj.active_material
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.node_tree.links
bsdf = nodes.get("Principled BSDF")
# Normal map image: data, so Non-Color
nm_tex = nodes.new("ShaderNodeTexImage")
nm_tex.image = bpy.data.images.load("//textures/brick_normal.png")
nm_tex.image.colorspace_settings.name = "Non-Color"
nm = nodes.new("ShaderNodeNormalMap")
nm.space = 'TANGENT'
nm.inputs["Strength"].default_value = 1.0
links.new(nm_tex.outputs["Color"], nm.inputs["Color"])
# Procedural bump for fine surface noise, layered on the normal map
noise = nodes.new("ShaderNodeTexNoise")
noise.inputs["Scale"].default_value = 80.0
bump = nodes.new("ShaderNodeBump")
bump.inputs["Strength"].default_value = 0.3
bump.inputs["Distance"].default_value = 0.01
links.new(noise.outputs["Fac"], bump.inputs["Height"])
links.new(nm.outputs["Normal"], bump.inputs["Normal"])
links.new(bump.outputs["Normal"], bsdf.inputs["Normal"])Exercise
A downloaded brick material looks wrong. The bumps seem to be lit from below, and the surface has a slight color cast. Name two likely causes and the fix for each.
Show answer
First, the normal map is probably a DirectX-convention map, so the green channel is flipped. Download the OpenGL version or invert the green channel with Separate Color, Invert Color and Combine Color nodes. Second, the normal map Image Texture is probably set to sRGB. Change its color space to Non-Color so the pixel values are read as vectors.
Exercise
You have a metal plate with a baked normal map and want to add light random scratches without baking again. How do you wire this, and which node input takes the normal map result?
Show answer
Add a Noise or similar grayscale texture and connect it to the Height input of a Bump node. Connect the Normal Map node output to the Bump node's Normal input, then connect the Bump node's Normal output to the Principled BSDF Normal input. Use a low Strength and a small Distance so the scratches stay subtle.