Sub topic 9
Choosing the Right Color Space for Each Image
Assume that you can navigate the Blender viewport, switch between Object Mode and Edit Mode, select mesh components, and create a basic material. This chapter focuses on the images connected to material nodes after a UV map already exists.
A color space describes how numeric image values represent color or other data. Choosing the wrong color space can make a material look too bright, too dark, too rough, or incorrectly shaded.
Color images and data images
A color texture contains colors that you want Blender to display. A brick photograph, painted character map, or fabric color map is color data. Set these images to sRGB.
A data texture contains measurements rather than visible colors. Roughness, metallic, ambient occlusion, height, and normal maps are common examples. Set these images to Non-Color so Blender does not apply a display-color conversion to their values.
| Image type | Typical setting | Common node destination |
|---|---|---|
| Base color or painted albedo | sRGB | Principled BSDF Base Color |
| Roughness or metallic map | Non-Color | Roughness or Metallic |
| Normal map | Non-Color | Normal Map node |
| Height or displacement map | Non-Color | Bump Height or displacement |
| HDR environment image | Linear or the appropriate HDR setting | Environment Texture |
Why the setting changes the result
sRGB is designed for storing and displaying color. Its numeric values are encoded so that they work well with screens and image formats. Blender converts sRGB color textures into its working color space before shading.
A roughness value does not describe a color. A pixel value of 0.5 should mean roughly half roughness. If Blender treats that value as sRGB color and decodes it, the resulting material value changes. The texture may then look much glossier or rougher than intended.
The same problem affects normal maps. Normal-map channels encode direction vectors. They must reach the shader as their original numeric values.
Set the color space in Blender
Select an image in the Image Texture node, then open its image settings in the node or Image Editor. Use the Color Space control to choose sRGB or Non-Color.
For a normal map, connect the Image Texture node to a Normal Map node, then connect that node's Normal output to the Principled BSDF Normal input. Do not connect a normal image directly to the shader's Normal input.
Handle special image types
Normal maps need more than the Non-Color setting. Their format also matters. Blender commonly expects tangent-space normal maps in the OpenGL convention. If the surface shading appears inverted, especially along the green channel, check whether the file uses a different convention before editing the image.
HDR and EXR files often contain scene-lighting or high-dynamic-range data. Use them as linear data when they represent illumination or measurements. The exact available name depends on Blender's version and the active view-transform configuration, so inspect the choices Blender provides instead of assuming every version uses the same label.
Do not confuse an image's color space with the View Transform in the Color Management settings. The image setting describes the input data. The view transform controls how the final rendered result is displayed.
Set the choice with Python
The following example loads a color image and a roughness image, then assigns the appropriate settings:
import bpy
color_image = bpy.data.images.load("//textures/brick_color.png")
color_image.colorspace_settings.name = "sRGB"
roughness_image = bpy.data.images.load("//textures/brick_roughness.png")
roughness_image.colorspace_settings.name = "Non-Color"
print(color_image.colorspace_settings.name)
print(roughness_image.colorspace_settings.name)The // prefix makes each path relative to the .blend file. Save the file before relying on relative paths.
Check the result
Inspect the material in Rendered or Material Preview mode. If the base color looks unexpectedly washed out, verify that the image is a color texture and uses sRGB. If roughness or normal detail behaves strangely, verify that the image uses Non-Color and that it is connected to the correct node input.
Exercise
A grayscale image controls a Principled BSDF Roughness input. Which color space should you choose, and why?
Show answer
Choose Non-Color because the grayscale values are material data, not colors that should be converted from sRGB.