Skip to main content
Anti-Aliasing (Lumen)

Temporal and Spatial Samples

How many temporal and spatial samples to use in a Lumen 360 or 180 render, and when and how to add more for motion blur and clean edges.

Last updated About 4 hours ago

This article covers temporal and spatial samples in Lumen 360 and 180 renders: what each kind does, how many to start with, and when and how to add more. You set them in the Anti-aliasing setting of your Movie Render Queue job, or in the Sampling section of the OWL 180 / 360 Renderer node in Movie Render Graph. To choose an anti-aliasing method first, see Anti-Aliasing Methods. In a path-traced render, samples work differently: see Render Settings.

How Many Samples to Use

There are two types of samples used to control anti-aliasing:

  • Temporal Samples: each frame is rendered several times at points across the camera's shutter, and the renders are averaged. This gives smooth motion blur and cleans up moving edges.

  • Spatial Samples: each frame is rendered several times with the camera shifted by a fraction of a pixel, and the renders are averaged. This smooths jagged edges and shimmer.

With anti-aliasing set to None:

  • Still shots: use 2 spatial samples with a Face Size of 1.5x the automatic face. For the highest quality, use 4 spatial samples.

  • Moving shots: use temporal samples instead of spatial samples. Each temporal sample is also shifted slightly, so it smooths edges as well as motion. Start with 3, and use 7 for fast movement or the highest quality. Use odd numbers, so that one sample falls exactly on the frame.

  • If edges in a moving shot still look jagged at 9 or more temporal samples (often very thin, bright geometry), add 2 spatial samples rather than going above 12 temporal samples.

  • Each sample is a full render, so your render takes longer with every sample you add. Before you add samples, try the settings in Noise, Shadows and Pop-In.

Temporal Samples

When to Increase Temporal Samples

  • If you see bad quality in your motion blur, you should increase temporal samples.

  • For fast-moving scenes you will need a larger amount of temporal samples but increasing them above 8 will have a big effect on your render time.

  • ODS projections: temporal samples work the same as on other projections. Raise Temporal Sample Count for fast movement or the highest quality.

How to Increase Temporal Samples

  1. Use None as your anti-aliasing method when you increase temporal samples (see Choosing an Anti-Aliasing Method).

  2. Increase temporal samples rather than spatial samples. Add spatial samples only for edges that still look jagged at 9 or more temporal samples (see Spatial Samples).

    1. Increase temporal samples if you don't see smooth motion blur: "Faster moving shots will need more Temporal Samples than slow ones."

    2. Use odd numbers (3, 5, 7, 9, 11) for your temporal sample count: "it's best to keep your sampling to odd numbers so that you get a sample on the keyframe for any animated impact or change or direction".

    3. Don’t increase temporal samples above 12: "anything past 12ish is not really visibly seen... you get diminishing returns". If edges are still jagged at that point, add 2 spatial samples instead.

Motion Blur

Temporal samples decide how smooth your motion blur looks. How to set up motion blur itself is in Motion Blur in Post Process.

  • With Seamless 360 Post Process (the default), motion blur is seamless across the whole 360 image.

  • More temporal samples give a smoother streak. With few, fast motion shows separate copies.

  • With Unreal Post Process (Per View), Unreal's motion blur runs in each view, so moving shots show a step where views meet, camera turns most of all. Temporal samples make the step weaker but don't remove it.

  • Keep the camera's shutter open (Shutter Angle above 0) and use temporal samples. Use more for fast motion, and for fast movement near the camera. Temporal samples work the same on ODS as on other projections.

Spatial Samples

When to Increase Spatial Samples

Start with the samples in How Many Samples to Use. Add more spatial samples only when:

  1. A still shot still shows jagged edges or shimmer at 2 spatial samples. Go to 4, with a Face Size of 1.5x.

  2. A moving shot still shows jagged edges at 9 or more temporal samples. Add 2 spatial samples rather than going above 12 temporal samples.

  3. You have already tried the settings for Shadows, Reflections and Global Illumination in Noise, Shadows and Pop-In.

Epic describes the kind of shot that needs this:

  • "If you had a really hot, thin piece of geometry and it's really hard to get the outline clean.

  • Or a bunch of thin lines stacking up on one another going back in Z-axis from the camera.

  • These are hard problems to handle and you might have to count on spatial/temporal samples to clean up the line."

How to Increase Spatial Samples

  1. Tick Override Anti Aliasing and set AntiAliasing Method to None.

  2. Still shot: leave Temporal Sample Count at 1 and raise Spatial Sample Count.

  3. Moving shot: keep your temporal samples and add 2 spatial samples.

  4. Spatial and temporal samples multiply: every temporal sample renders your full spatial sample count. 9 temporal samples with 2 spatial samples is 18 renders for every frame, so render a few test frames before the full sequence.

  5. Match the samples to the problem: poor motion blur needs more temporal samples, and jagged edges on a still shot need more spatial samples.