Sub topic 4
Cycles: Path Tracing and Its Settings
This chapter assumes that you can navigate Blender’s Properties editor, create Principled BSDF materials, add lights and a camera, and render a still image with F12. Cycles is Blender’s path-tracing render engine. It calculates many possible paths for light as it travels from a camera, bounces through the scene, and reaches light sources.
How Cycles builds an image
Rasterization draws visible surfaces directly. Cycles instead estimates how much light reaches each camera pixel. It traces rays from the camera into the scene and follows their reflections, refractions, shadows, and volume interactions.
One complete estimate for a pixel is called a sample. More samples usually produce a more accurate image, but they also increase render time. Because the estimates use random paths, a low-sample render has visible grain called noise.
Cycles does not need a light to be directly visible from the camera. A light can illuminate another surface, which then illuminates the subject. This indirect lighting is one reason Cycles can produce natural global illumination, soft color bounce, and realistic shadows.
Main Cycles settings
Open the Render Properties tab and select Cycles as the render engine. The most important controls are:
| Setting | What it controls | Typical effect |
|---|---|---|
| Render Samples | Number of paths estimated per pixel | Higher values reduce noise but take longer |
| Max Samples | Upper limit when adaptive sampling is enabled | Limits render time |
| Denoise | Cleanup of remaining grain | Faster renders, with possible loss of detail |
| Max Bounces | Number of light bounces | More indirect light, but slower rendering |
| Device | CPU or configured GPU | Changes render speed and memory use |
For a quick test, use 32 to 64 samples. For a final still, you might use 128 or more, depending on the scene. Resolution, complicated shaders, glass, volumes, and many light bounces can matter as much as the sample count.
Sampling and denoising
Use enough samples to preserve important details, then use denoising to remove fine grain. Denoising is an image-estimation step, not a replacement for correct lighting. Very noisy input can produce blotches, softened textures, or missing small highlights.
Adaptive sampling can stop spending samples on pixels that have already converged. This is useful when only a few parts of the image, such as glossy reflections or dark corners, remain noisy.
import bpy
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
scene.cycles.device = 'GPU'
scene.cycles.samples = 128
scene.cycles.use_denoising = TrueThe GPU value requests GPU rendering. It works only when a supported compute device is enabled in Blender’s Preferences. Otherwise, choose CPU, or configure the device before running the script.
Light paths and memory
Increasing the maximum number of bounces can improve glass, reflections, and indirect lighting. It can also make rendering slower and consume more memory. Lower bounce limits are often suitable for product previews or scenes with simple materials.
GPU rendering is often faster for scenes that fit in video memory. Large textures, dense geometry, and complex volumes can exceed that memory. In such cases, CPU rendering may be slower but more reliable.
A practical Cycles workflow
- Render a low-resolution preview with 32 samples.
- Check exposure, camera framing, materials, and light directions.
- Increase samples only after the scene is correct.
- Enable denoising and compare fine details against an undenoised region.
- Raise bounce limits only when reflections, refractions, or indirect light need them.
- Test the final settings at the target resolution.
Exercise
A Cycles render is grainy, and the scene already has correct lighting. Which setting should you increase first, and what trade-off does it create?
Show answer
Increase the render samples first. This usually reduces noise, but it increases render time. Denoising can provide additional cleanup without tracing as many samples.