01 / 20

Sampling &
Denoising

Learn how ray samples build your render image and how denoising algorithms clean up the noise: giving you faster, cleaner results in Blender's Cycles engine.

3D Rendering Blender Cycles Renderer

What Is Sampling?

In Cycles, every pixel in your image is calculated by shooting rays from the camera into the scene. Each ray bounces off surfaces, picks up color and light information, and returns a value. A single ray per pixel would be extremely noisy because it captures only one random light path. Sampling means shooting multiple rays per pixel and averaging the results to converge toward a clean, accurate image.

How Noise Decreases with Samples

Noise Level Samples per Pixel 0 64 256 512 1024 2048 Diminishing returns "Clean"

What Is Denoising?

Denoising is a post-process (or real-time) algorithm that intelligently removes noise from a render. Instead of spending hours computing extra samples, you render at a moderate sample count and let the denoiser reconstruct a clean image by analyzing patterns in the noisy data.

Input
A noisy render plus auxiliary passes: surface normals, albedo (base color), and depth
Process
The denoiser compares nearby pixels, separates signal from noise using the auxiliary data
Output
A much cleaner image that looks like a render with far more samples

Blender's Three Denoisers

OpenImageDenoise
Intel's AI-based denoiser. Runs on CPU. Best overall quality. Used as the Compositor node or render setting.
OptiX Denoiser
NVIDIA's GPU-accelerated AI denoiser. Very fast on RTX cards. Similar quality to OIDN. Viewport and final render.
Compositor NLM
Non-Local Means: a traditional (non-AI) filter. Older, less effective but fully controllable with manual parameters.

The Sampling-Denoising Tradeoff

High Samples (e.g. 4096 spp) ✓ Very clean ✕ Very slow No denoiser needed vs Low Samples + Denoise (e.g. 128 spp + OIDN) ✓ Clean enough ✓ Much faster May lose fine detail

The \( \frac{1}{\sqrt{N}} \) Noise Rule

Path tracing noise follows a fundamental statistical law. The standard deviation of noise in a pixel is proportional to:

1
To halve the noise, you need \( 4\times \) the samples (since \( \frac{1}{\sqrt{4}} = \frac{1}{2} \))
2
To reduce noise to one third, you need \( 9\times \) the samples
3
This means diminishing returns on pure sampling: doubling render time only gives ~29% less noise

Render vs Viewport Samples

Render Samples Viewport Samples
Purpose Final output image/animation Interactive preview while working
Typical Range 128 - 4096 16 - 128
Denoiser OIDN or OptiX (post-render) OptiX or OIDN (real-time)
Speed Priority Quality over speed Speed over quality
Location Render Properties > Sampling Render Properties > Sampling

Adaptive Sampling

Not every pixel needs the same number of samples. A bright, directly-lit wall converges quickly, while a dark shadow or caustic needs many more. Adaptive Sampling lets Cycles stop sampling pixels early once they are "clean enough."

Scene Regions Bright Wall Dark Corner Caustic / Glass Samples Used 64 512 1024

Key Settings Breakdown

Max Samples
Upper limit on rays per pixel. Adaptive Sampling may stop early, but never exceeds this.
Noise Threshold
Controls when Adaptive Sampling stops. Lower values (0.001) = cleaner. Default: 0.01.
Min Samples
Minimum rays before adaptive sampling can kick in. Prevents stopping too early on complex pixels.
Light Bounces
Max times a ray bounces. Higher bounces = more realistic light but slower. Usually 4-12 total.

Step-by-Step Workflow

1
Set your render engine to Cycles in Render Properties. EEVEE uses a completely different (rasterization) approach.
2
Enable Adaptive Sampling. Set Max Samples to 512-1024 and Noise Threshold to 0.01.
3
Turn on Denoising in Render Properties. Choose OpenImageDenoise (CPU) or OptiX (NVIDIA GPU).
4
Enable Denoising Data passes (View Layer Properties) if compositing. This outputs Normal, Albedo, and Depth passes for the denoiser.
5
Do a test render. Check for artifacts: smeared details, fireflies, or remaining noise. Adjust samples or threshold as needed.
6
Set viewport samples lower (32-64) with viewport denoising for comfortable scene navigation.

Example 1: Simple Interior

A room with a window, a table, and diffuse walls. Mostly direct lighting with some soft shadows.

Settings
Max Samples: 256
Noise Threshold: 0.01
Denoiser: OIDN
Bounces: 6 total
Why It Works
Simple diffuse materials converge fast. OIDN cleans up the remaining noise easily. Adaptive Sampling stops most pixels at ~80-128 samples.

Example 2: Glass Caustics

A wine glass on a table with sunlight creating caustic patterns. This is one of the hardest scenes for path tracing.

Settings
Max Samples: 1024
Noise Threshold: 0.005
Denoiser: OIDN
Bounces: 12 total, Glossy/Transmission: 8
Why More Samples
Glass requires many bounces. Caustics are high-variance light paths. A lower noise threshold prevents the denoiser from smearing the caustic pattern.

Example 3: Animation Denoising

Denoising animations introduces a unique challenge: temporal flickering. Each frame is denoised independently, so the denoiser may make slightly different decisions frame-to-frame, causing shimmer.

1
Use higher samples for animation (256-512 minimum) to give the denoiser more consistent input data between frames.
2
Render with Denoising Data passes and denoise in the Compositor. This gives you control over denoising strength.
3
Use a fixed seed or animated seed to avoid pattern repetition. Blender increments the seed per frame by default.

Common Mistakes

✕ Maxing Out Samples
Setting 4096+ samples "just to be safe" wastes hours. Use Adaptive Sampling + denoising instead.
✕ Denoising Too Low
Denoising a 16-sample render loses all detail. The denoiser needs at least 64-128 clean-ish samples to work with.
✕ Ignoring Fireflies
Bright pixel spikes from caustics or lamp clipping. Use Clamping (indirect: 10) to limit extreme values before denoising.
✕ Wrong Denoiser Passes
Forgetting to enable Albedo/Normal passes for compositor denoising results in much worse quality.
✕ Same Settings Everywhere
A simple product shot and a complex forest scene need very different sample counts. Always test render first.

Summary Comparison

Strategy Quality Speed Best For
High Samples Only ★★★ ★ Reference renders, final portfolio
Low Samples + Denoise ★★ ★★★ Quick previews, test renders
Adaptive + Denoise ★★★ ★★ Production renders (recommended)
Compositor Denoise ★★★ ★★ Animation, fine control needed

Question 1 of 5

According to the inverse square root rule, if you want to halve the noise in a render, you must multiply the sample count by:

Question 2 of 5

What does Adaptive Sampling do in Blender's Cycles renderer?

Question 3 of 5

You are rendering a scene with glass objects producing caustics. Your render at 128 samples + OIDN shows smeared caustic patterns. What is the best fix?

Question 4 of 5

What is a firefly in the context of path tracing, and how is it typically handled?

Question 5 of 5

When denoising an animation in Blender, what additional challenge must you consider compared to a still image?