Sampling

Reference

Panel

Render ‣ Sampling

The integrator is the rendering algorithm used to compute the lighting. Cycles currently supports a path tracing integrator with direct light sampling. It works well for various lighting setups, but is not as suitable for caustics and some other complex lighting situations.

Rays are traced from the camera into the scene, bouncing around until they find a light source such as a light, an object emitting light, or the world background. To find lights and surfaces emitting light, both indirect light sampling (letting the ray follow the surface BSDF) and direct light sampling (picking a light source and tracing a ray towards it) are used.

Integrator

There are two sample methods that can be used: Path Tracing and Branched Path Tracing.

Path Tracing

The Path Tracing integrator is a pure path tracer; at each hit it will bounce light in one direction and pick one light to receive lighting from. This makes each individual sample faster to compute, but will typically require more samples to clean up the noise.

Branched Path Tracing

The non-progressive Branched Path Tracing integrator offers finer control over sampling. It is similar to Path Tracing, but at the first hit it will split the path for different surface components and will take all lights into account for shading instead of just one.

This makes each sample slower, but will reduce noise, especially in scenes dominated by direct or one-bounce lighting. To get the same number of diffuse samples as in the path tracing integrator, note that e.g. 250 path tracing samples = 10 AA Samples x 25 diffuse samples. The Sampling panel shows this total number of samples.

Render

Number of paths to trace for each pixel in the final render. As more samples are taken, the solution becomes less noisy and more accurate.

When using Branched Path Tracing, this changes the AA Samples which are multiplied by the Sub Samples and improve anti-aliasing.

Viewport

Number of samples for viewport rendering.

Viewport Denoising

Removes noise while previewing scenes in Rendered mode in the 3D Viewport. Denoising can also be enabled for the final render in the View Layer Properties. The sample value which denoising can be applied on to can be configured in the Viewport Performance properties.

None

Do not denoise the 3D Viewport.

OptiX AI-Accelerated

Uses an artificial intelligence algorithm to remove noise from renders. It is based on the Optix acceleration engine and therefore has the same GPU requirements as rendering with Optix.

Sub Samples

The panel is visible only when using Branched Path Tracing.

Diffuse

Number of diffuse bounce samples to take for each AA sample.

Glossy

Number of glossy bounce samples to take for each AA sample.

Transmission

Number of transmission bounce samples to take for each AA sample.

AO

Number of ambient occlusion samples to take for each AA sample.

Mesh Light

Number of mesh light samples to take for each AA sample.

Subsurface

Number of subsurface scattering samples to take for each AA sample.

Volume

Number of volume scattering samples to take for each AA sample.

Adaptive Sampling

Adaptive Sampling is a technique to speed up rendering by terminating sampling for a particular pixel early. This works by computing how much a pixel changes (the variance) while samples are computed, if the pixel does not change more than a certain amount, Cycles will stop computing samples for that pixel. Adaptive Sampling can be enabled/disabled with the checkbox in the panel header.

Min Samples

The minimum AA samples that must be computed before checking for variance. Zero is an automatic setting based on the total number of AA samples.

Noise Threshold

The amount of variation between samples before terminating sampling. Smaller values will give more accurate results, using more samples, but increase rendering times. Zero is an automatic setting based on the total number of AA samples.

Advanced

Seed

Seed value for integrator to get different noise patterns.

Animate Seed (clock icon)

This button, which can be found on the right side of the Seed value, can be used to give different seed values. It is a good idea to enable this when making animation because in the real world each frame has a different noise pattern.

Pattern

Random sampling pattern used by the integrator.

Sobol

Uses a Sobol pattern to decide the random sampling pattern used by the integrator. See Sobol sequence on Wikipedia for more information.

Correlated Multi-Jitter

Uses a correlated multi-jitter pattern to decide the random sampling pattern used by the integrator. See this Pixar paper for more information.

Progressive Multi-Jitter

Uses a progressive multi-jitter pattern to decide the random sampling pattern used by the integrator. Its advantage is to provide a well distribution of samples over iterating sample counts. Because of its good distribution over a range of different sample counts, this sample pattern is used for Adaptive Sampling. See this Pixar paper for more information.

Square Samples

Square the amount of samples.

Min Light Bounces

Minimum number of light bounces for each path, after which the integrator uses Russian Roulette to terminate paths that contribute less to the image. Setting this higher gives less noise, but may also increase render time considerably. For a low number of bounces, it is strongly recommended to set this equal to the maximum number of bounces.

Min Transparent Bounces

Minimum number of transparent bounces. Setting this higher reduces noise in the first bounces, but can also be less efficient for more complex geometry like hair and volumes.

Light Threshold

Probabilistically terminates light samples when the light contribution is below this threshold (more noise but faster rendering). Zero disables the test and never ignores lights. This is useful because in large scenes with many light sources, some might only contribute a small amount to the final image, and increase render times. Using this setting can decrease the render times needed to calculate the rays which in the end have very little affect on the image.

Sample All Direct Lights

When enabled, Cycles will sample all lights in the scene for direct bounces, instead of randomly picking one. Disabling this can improve the performance, but will need a lot of Samples, to clear up the render.

Visible only when using Branched Path Tracing.

Sample All Indirect Lights

Similar to direct light, but for indirect lights. This can reduce noise in scenes with many lights.

Visible only when using Branched Path Tracing.

Layer Samples

When render layers have per layer number of samples set, this option specifies how to use them.

Use

The render layer samples will override the set scene samples.

Bounded

Bound render layer samples by scene samples.

Ignore

Ignore render layer sample settings.