Sub topic 7
Denoising: Trading Samples for Cleanup
Prerequisites and the role of denoising
This chapter assumes that you can render a scene in Blender, change Cycles settings, and inspect the result in the Image Editor. You should also understand that Cycles estimates lighting by tracing many paths from the camera through the scene.
A sample is one lighting estimate for a pixel. With too few samples, the estimates vary from pixel to pixel. This variation appears as grain, or noise. More samples reduce the noise, but each additional sample increases render time.
Denoising is an image-processing step that estimates what the image would look like with less noise. It can make a low-sample render look clean without tracing every additional light path.
What denoising changes
Cycles denoising does not calculate missing light paths. It examines nearby pixels and supporting information such as surface color and normals. It then smooths patterns that resemble noise while preserving edges that appear to represent geometry or material boundaries.
This creates a useful trade-off:
| Method | Main benefit | Main cost |
|---|---|---|
| More samples | Physically reduces noise | Longer render time |
| Denoising | Produces a clean image quickly | Can remove detail or create artifacts |
| More samples plus denoising | Clean result with fewer visible artifacts | Uses more time and memory |
Denoising works best when the image contains moderate noise. If a pixel has almost no useful information, the denoiser must guess. The result can include smeared textures, waxy surfaces, broken fine detail, or dark blotches.
Denoising is especially helpful for previews, animation tests, and scenes where some difficult lighting effects would otherwise require very high sample counts. For a final image, compare the denoised result with a higher-sample reference before accepting it.
Enabling Cycles denoising
In the Render Properties, choose Cycles and find the Sampling section. Enable denoising for the render. The exact controls can vary between Blender versions, but Blender commonly provides OpenImageDenoise and may provide a GPU-based OptiX denoiser when supported hardware and drivers are available.
You can also enable the setting with Python:
import bpy
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
scene.cycles.samples = 128
scene.cycles.use_denoising = TrueThe sample count still matters. Denoising at 16 samples may be fast, but it has less reliable information than denoising at 64 or 128 samples.
A practical workflow
- Render a small region or a reduced resolution.
- Start with a moderate sample count, such as 64.
- Enable denoising and inspect edges, textures, shadows, and glossy reflections.
- Increase the samples if the denoiser smears detail or leaves visible blotches.
- Use a higher-quality test at the final resolution before rendering the complete animation.
Adaptive Sampling can improve this workflow. It allows Cycles to spend more samples on noisy pixels and fewer samples on pixels that have already converged. Denoising can then clean the remaining moderate noise.
> callout note > Do not use denoising to hide incorrect lighting, missing objects, fireflies caused by extreme highlights, or a material with the wrong roughness. Fix the scene first, then use denoising to reduce sampling noise.
Choosing the trade-off
For a still image, raise samples until small features and glossy areas remain stable, then use denoising as a final cleanup step. For an animation, test several consecutive frames. A denoiser can make individual frames look clean while producing changing details between frames, which appears as flicker.
A common starting point is 64 to 128 samples with denoising enabled. Treat this as a test range rather than a universal setting. Large interiors, volumes, caustics, and reflective materials may need more samples.
Exercise
A render looks clean after denoising, but a thin textured pattern has disappeared. Should you immediately increase the denoiser strength?
Show answer
No. First compare the denoised image with a higher-sample render. Reduce the denoising effect or increase the samples if the texture is being mistaken for noise.