Sub topic 4
Cycles: Path Tracing and Its Settings
This chapter explains how Cycles builds an image and which settings control its speed and quality. It assumes you can navigate Blender and the Properties editor, assign a Principled BSDF material, place lights and a camera, and render a still with F12. Samples, denoising and device choice each get a deeper treatment in later chapters. Here you get the working model and the settings you will touch most often.
What Cycles does
Cycles is Blender's path-tracing render engine. For each pixel, it sends rays from the camera into the scene. When a ray hits a surface, the material decides how the ray continues: it may reflect, refract, scatter, or be absorbed. The ray keeps bouncing until it reaches a light, leaves the scene, or hits a bounce limit. The light that the path collects becomes one measurement for that pixel.
One path is a noisy estimate. Cycles repeats the process many times per pixel and averages the results. Each repetition is a sample. With more samples, the average gets closer to the true lighting, and the visible grain (noise) falls.
Because light is simulated by following paths instead of being approximated with tricks, effects such as soft shadows, indirect light, caustic-like reflections and refraction come from the same process. You do not set them up separately.
Enabling Cycles
Open the Render Properties tab and set Render Engine to Cycles. The panels below change to the Cycles set: Sampling, Light Paths, Volumes, Curves, Simplify, Motion Blur, Film, Performance, Color Management and others.
From Python, the same change looks like this:
import bpy
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
scene.cycles.device = 'GPU'
scene.cycles.samples = 128
scene.cycles.use_denoising = TrueSetting scene.cycles.device = 'GPU' only requests GPU rendering. It takes effect only if a compute device is enabled in Preferences (covered below). Otherwise Blender renders on the CPU.
The settings you will use most
Sampling
The Sampling panel has separate values for the viewport and for the final render.
| Setting | What it controls |
|---|---|
| Render Max Samples | The number of samples per pixel in an F12 or animation render. |
| Viewport Max Samples | The number of samples in Rendered viewport shading. |
| Noise Threshold | An adaptive limit. Pixels whose estimated noise falls below it stop receiving samples early. |
| Time Limit | An optional cap in seconds. Rendering stops at the limit even if the sample count is not reached. |
| Denoise | Cleans up the noisy result after sampling. |
Adaptive sampling is on by default. Cycles stops sampling pixels that have converged, such as a flat, evenly lit wall, and spends the saved samples on noisy regions, such as shadowed corners. With adaptive sampling on, Max Samples acts as an upper limit instead of a fixed count, so a render may finish many pixels well before it.
A lower Noise Threshold gives a cleaner image and a longer render. A higher one gives a faster, noisier image.
Denoising
Cycles can denoise the final render and the viewport separately. The two common denoisers are OpenImageDenoise (runs on the CPU, with GPU support on recent hardware and builds) and OptiX (NVIDIA RTX GPUs only). Denoising lets you use fewer samples, because the denoiser removes the remaining grain. The cost is that it can smooth fine detail, such as small textures or thin hair, and in animations it can produce flicker between frames.
Light Paths
The Light Paths panel sets how far rays travel. The Max Bounces group has a Total value and individual limits for Diffuse, Glossy, Transmission, Volume and Transparent bounces.
- Raising bounce limits adds more indirect light and makes interiors brighter, at the cost of render time.
- Lowering them speeds up rendering but darkens indirect light, which is most visible in interiors lit through a window.
- Glass and water usually need higher Transmission bounces. If a glass object looks black inside, the ray ran out of bounces before leaving it.
The Clamping options limit how bright a single sample can be. A small number of extremely bright samples cause "fireflies", which are isolated bright pixels. Lowering Indirect Light clamping removes them, but it also dims real highlights and indirect light, so use small steps.
Caustics options (Filter Glossy, Reflective, Refractive) also reduce noise by blurring sharp glossy paths. The trade-off is slightly inaccurate reflections.
Film and Performance
- Film > Filter Size sets the pixel reconstruction filter width. The default of 1.50 px is a good balance between sharpness and anti-aliasing.
- Film > Transparent renders the world as transparent so you can composite the result.
- Performance > Tiles (the tile size) matters less on modern versions. Larger tiles generally suit GPUs, and smaller ones can suit CPUs.
- Performance > Persistent Data keeps scene data in memory between animation frames, which can speed up animation renders at the cost of memory.
Choosing a device
Cycles can render on the CPU or on a GPU.
- Open Edit > Preferences > System.
- Under Cycles Render Devices, choose the backend for your hardware (for example CUDA or OptiX for NVIDIA, HIP for AMD, Metal for Apple, oneAPI for Intel). Backend names depend on your Blender version and platform.
- Tick the specific devices you want to use.
- In Render Properties, set Device to GPU Compute.
Typical trade-offs:
| Factor | CPU | GPU |
|---|---|---|
| Speed | Slower for most scenes | Usually much faster |
| Memory | Uses system RAM, which is often large | Limited by video memory (VRAM) |
| Large scenes | Handles them well | May fail if textures and geometry exceed VRAM |
| Compatibility | Works everywhere | Needs a supported card and drivers |
If a scene fits in VRAM, GPU rendering is usually the better choice. If a render fails with an out-of-memory error, reduce texture sizes, use Simplify, or switch the device to CPU.
Light and the world
Cycles lights the scene from lights, emissive materials and the World. A bright HDRI or a sky texture in the World node acts as a large light source and contributes indirect light. Mesh objects with Emission shaders are real lights in Cycles. Small, very bright emitters can add noise, so for large light sources, area lights tend to sample more cleanly than tiny bright emissive meshes.
The World can also be sampled more efficiently with World Lighting > Sampling > Multiple Importance (and with Sample Map Resolution). These settings reduce noise when a small, bright part of an HDRI, such as the sun, dominates the lighting.
Typical problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| GPU is selected but the render is slow | No compute device is enabled in Preferences | Enable the device under Preferences > System, then set Device to GPU Compute |
| Bright isolated pixels (fireflies) | Rare, very bright light paths | Lower Indirect Light clamping, enable Filter Glossy, or soften small bright lights |
| Glass looks dark or black | Bounce limits too low | Raise Transmission and Total bounces |
| Interior is too dark | Indirect light is cut off by low bounces | Raise Diffuse and Total bounces |
| Render fails with an out-of-memory error | Scene exceeds VRAM | Reduce textures, simplify the scene, or use the CPU |
| Fine detail looks smeared | Denoiser is too aggressive | Raise samples, or lower denoising strength by adding samples before denoising |
| Animation flickers | Frame-to-frame noise differences | Use a fixed seed with enough samples, or a denoiser that supports temporal stability |
The seed value (in the Sampling panel under Advanced) changes the random pattern used for the noise. A fixed seed gives the same noise in every frame, which can look like a dirty window. Animating the seed gives varied noise that tends to look more natural.
Rendering from the command line
You can select Cycles when you render without opening the interface. The output path and engine go before the frame argument, because Blender processes arguments in order.
blender -b scene.blend -E CYCLES -o //render_#### -f 1Here -b runs in the background, -E CYCLES picks the engine, -o sets the output path (// means relative to the .blend file, and #### becomes the frame number), and -f 1 renders frame 1. The engine identifier for EEVEE has changed between Blender versions, so if you automate engine choice, list the available identifiers first. The chapter on scripting covers this.
Exercise
A Cycles render finishes quickly, but the shadowed corners of the room are still grainy while the walls look clean. You have Adaptive Sampling on. Which two settings would you adjust first, and in which direction?
Show answer
Lower the Noise Threshold so that noisy pixels keep receiving samples, and raise Render Max Samples so the ceiling does not cut those pixels off. Enabling or strengthening denoising is a reasonable third step.
Exercise
You set scene.cycles.device = 'GPU' in a script, but the render runs at CPU speed. What is the most likely cause?
Show answer
No GPU compute device is enabled in Preferences > System > Cycles Render Devices. The device property only requests GPU rendering, so Blender falls back to the CPU until a device is enabled.