Sub topic 2
How each engine handles light, shadows and global illumination
This chapter assumes you can use the Properties editor, assign a Principled BSDF material, add lights, and render a still image with F12. It compares how EEVEE and Cycles calculate light, then covers the Cycles sampling, denoising, and device settings that affect the result.
Light in EEVEE and Cycles
EEVEE is a rasterization engine. It projects each object onto the screen and approximates indirect light with light probes and screen-space effects. Shadows come from shadow maps, which are fast but can look soft or inaccurate at contact points.
Cycles is a path-tracing engine. For each pixel, it follows rays of light as they bounce around the scene. Global illumination is the light that arrives after bouncing off other surfaces, such as color bleeding from a red wall. Cycles computes it directly, so shadows and indirect light follow the real geometry.
Samples and noise in Cycles
A path tracer estimates each pixel by averaging many random light paths. Each path is one sample. Few samples leave grainy noise. Noise drops roughly with the square root of the sample count, so 4 times the samples halves the noise but takes about 4 times as long.
import bpy
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
scene.cycles.samples = 128Denoising: trading samples for cleanup
A denoiser is an algorithm that removes leftover noise from a render. Cycles includes denoisers that use the render's color, normal, and albedo data to keep edges sharp. Enable it under Render Properties, then Sampling, then Denoise. A denoised image at 64 samples often looks cleaner than an undenoised one at 256.
> Hmm, a denoiser can smear fine detail such as hair or fabric texture, so check details at full resolution.
::: callout note Denoising hides noise, but it does not add information. Very low sample counts can still produce blotchy results. :::
CPU versus GPU rendering
Cycles can render on the CPU or on a GPU. A GPU is usually faster for path tracing, but you must enable it in Edit, then Preferences, then System, under Cycles Render Devices. Then set Device to GPU Compute in Render Properties. If no compatible device is listed, Cycles falls back to the CPU. EEVEE uses the GPU for all rendering.
Materials that work in both engines
A Principled BSDF material works in both engines, so you can keep the same materials when you switch. Some features differ between them, such as refraction and subsurface scattering, which are described in a later chapter. Check each material in both engines before you commit to a final render.
Exercise
Exercise
Your Cycles render at 64 samples looks grainy. You want less noise without tripling the render time. What do you change first, and why?
Show answer
Turn on denoising. Raising samples from 64 to 192 triples the render time, but denoising removes most of the noise at a fraction of that cost.