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 smoothmotion blurand 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 sampleswith aFace Sizeof 1.5x the automatic face. For the highest quality, use4 spatial samples.Moving shots: use
temporal samplesinstead ofspatial samples. Each temporal sample is also shifted slightly, so it smooths edges as well as motion. Start with3, and use7for 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
9or moretemporal samples(often very thin, bright geometry), add2 spatial samplesrather than going above12temporal 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 increasetemporal samples.For fast-moving scenes you will need a larger amount of
temporal samplesbut increasing them above8will have a big effect on your render time.ODS projections: temporal samples work the same as on other projections. Raise
Temporal Sample Countfor fast movement or the highest quality.
How to Increase Temporal Samples
Use
Noneas youranti-aliasingmethod when you increasetemporal samples(see Choosing an Anti-Aliasing Method).Increase
temporal samplesrather thanspatial samples. Addspatial samplesonly for edges that still look jagged at9or moretemporal samples(see Spatial Samples).Increase
temporal samplesif you don't see smoothmotion blur: "Faster moving shots will need moreTemporal Samplesthan slow ones."Use odd numbers (
3, 5, 7, 9, 11) for yourtemporal samplecount: "it's best to keep your sampling to odd numbers so that you get asampleon thekeyframefor any animated impact or change or direction".Don’t increase
temporal samplesabove12: "anything past 12ish is not really visibly seen... you get diminishing returns". If edges are still jagged at that point, add2 spatial samplesinstead.
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 samplesgive 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 Angleabove0) and usetemporal 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:
A still shot still shows jagged edges or shimmer at
2spatial samples. Go to4, with aFace Sizeof1.5x.A moving shot still shows jagged edges at
9or more temporal samples. Add2spatial samples rather than going above12temporal samples.You have already tried the settings for
Shadows,ReflectionsandGlobal Illuminationin 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 samplesto clean up the line."
How to Increase Spatial Samples
Tick
Override Anti Aliasingand setAntiAliasing MethodtoNone.Still shot: leave
Temporal Sample Countat1and raiseSpatial Sample Count.Moving shot: keep your temporal samples and add
2spatial samples.Spatial and temporal samples multiply: every temporal sample renders your full spatial sample count.
9temporal samples with2spatial samples is18renders for every frame, so render a few test frames before the full sequence.Match the samples to the problem: poor motion blur needs more temporal samples, and jagged edges on a still shot need more spatial samples.