Sub topic 3
Exposure and color management for lit scenes
This chapter assumes you can place lamps, load an HDRI into the World shader, and render a scene in Cycles or EEVEE. The examples use Blender 4.x.
Exposure and color management
Exposure sets how bright the rendered image is. Color management converts scene light into the colors you see. Blender 4.x defaults to the AgX view transform. Set exposure in Properties > Color Management, or with Python as shown below.
Lighting in Cycles versus EEVEE
Cycles traces light paths, so lamps, the World, and emissive surfaces produce true bounce light and soft shadows. EEVEE approximates lighting in real time. It renders faster but misses some indirect light, so the same file can look different in each engine.
Controlling noise from lights and the World
Noise in Cycles comes from too few samples. Large, bright lamps and bright HDRI areas need more samples. Enable denoising, and use a low sample count for previews.
Using emissive materials as light sources
An emissive material is a surface that emits light. Raise Emission Strength in the Principled BSDF to make it a light source. Small, bright emitters add noise, so keep them small.
Light linking in Cycles
Light linking restricts which lights affect which objects. Select an object, then open Object Properties > Shading > Light Linking. This works only in Cycles.
Building the setup with Python
import bpy
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
scene.cycles.samples = 128
scene.cycles.use_denoising = True
scene.view_settings.view_transform = 'AgX'
scene.view_settings.exposure = -0.5
emit = bpy.data.materials.new(name="Glow")
emit.use_nodes = True
bsdf = emit.node_tree.nodes["Principled BSDF"]
bsdf.inputs["Emission Color"].default_value = (1.0, 0.8, 0.5, 1.0)
bsdf.inputs["Emission Strength"].default_value = 20.0Fixing flat, blown-out or noisy lighting
Flat lighting
Add a rim or key light, or lower the HDRI strength so the lamps stand out.
Blown-out highlights
Lower exposure first. If highlights still clip, reduce the lamp power or emission strength.
Noisy images
Raise the sample count, enable denoising, or shrink bright emitters.
Exercise
A scene renders with blown-out highlights and you want to darken it without changing the lamps. Which setting do you change, and why?
Show answer
Lower the exposure in Properties > Color Management. It scales the whole image, so it darkens the highlights without changing the lamp setup.