Sub topic 6
Samples and Noise in Cycles
This chapter assumes that you can navigate Blender’s Properties editor, assign a Principled BSDF material, add lights and a camera, and render a still image. You should also know how to switch the scene to Cycles.
Why Cycles produces noise
Cycles uses path tracing. For each pixel, it traces many simulated light paths through the scene and averages their results. A sample is one of these estimates for a pixel. The final pixel color becomes more reliable as the number of samples increases.
With too few samples, the estimate varies visibly between neighboring pixels. This variation is called render noise. It often appears as:
- Grain in dark areas.
- Speckles in reflections.
- Uneven color in shadows.
- Flickering from frame to frame in animation.
Noise is not usually caused by a broken material. It is a statistical limitation of estimating light with a finite number of paths.
The noise decreases slowly. In general, reducing noise by half requires about four times as many samples.
Setting the sample count
In Cycles, the main render sample setting is in Render Properties > Sampling > Render. A value such as 64 is useful for quick previews. Values from 128 to 512 may be suitable for a still image, but the right value depends on the scene.
A high sample count does not guarantee a clean image if the scene contains difficult lighting. Small bright lights, glossy reflections, glass, caustics, and heavily shadowed areas can remain noisy.
Use separate values for different stages of work:
| Stage | Typical samples | Purpose |
|---|---|---|
| Composition preview | 16–32 | Check camera, objects, and lighting |
| Look development | 64–128 | Tune materials and light balance |
| Final still | 128–1024 | Reduce remaining noise |
These are starting points, not quality rules. Inspect the image at its intended output size before increasing the value.
Adaptive sampling
Adaptive sampling stops tracing a pixel when Cycles estimates that it is already clean enough. Easy pixels receive fewer samples, while noisy pixels receive more.
Enable it in the Sampling panel. The Noise Threshold controls the stopping decision:
- A higher threshold stops sooner and renders faster.
- A lower threshold demands a cleaner estimate and renders longer.
- A minimum sample value ensures that every pixel receives an initial number of samples.
For example, a threshold of 0.01 is more demanding than 0.05. Adaptive sampling is especially useful when only small parts of an image are noisy.
import bpy
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
scene.cycles.samples = 256
scene.cycles.use_adaptive_sampling = True
scene.cycles.adaptive_threshold = 0.01
scene.cycles.adaptive_min_samples = 16Diagnosing noise before raising samples
Render a small region or lower the resolution while diagnosing. First identify where the noise comes from:
- Diffuse shadow noise: improve the light setup or use larger light sources.
- Glossy noise: inspect roughness, reflections, and bright emitters.
- Glass or volume noise: check transmission, volume density, and light paths.
- Noise everywhere: verify exposure, lighting, and the sample settings.
Increasing samples is the broadest solution, but it is often the most expensive one. A better light position, a less extreme material, or a suitable sampling limit can solve a local problem more efficiently.
Exercise
A render is four times slower after increasing Cycles samples from 64 to 256. Why might the image still not look four times cleaner, and what should you try first?
Show answer
Noise decreases gradually, so four times the samples usually gives about half the noise rather than four times the quality. Try adaptive sampling and inspect the specific noisy material, light, or reflection before raising samples again.