[Paper Review] RTSDF: Generating Signed Distance Fields in Real Time for Soft Shadow Rendering
This paper proposes RTSDF, a real-time method for generating signed distance fields (SDFs) by combining jump flooding for coarse SDF approximation with targeted ray tracing and temporal accumulation to produce high-quality soft shadows. The technique achieves interactive frame rates with prominent penumbras and reduced blockiness, outperforming traditional CSM with EVSM in shadow quality while maintaining performance.
Signed Distance Fields (SDFs) for surface representation are commonly generated offline and subsequently loaded into interactive applications like games. Since they are not updated every frame, they only provide a rigid surface representation. While there are methods to generate them quickly on GPU, the efficiency of these approaches is limited at high resolutions. This paper showcases a novel technique that combines jump flooding and ray tracing to generate approximate SDFs in real-time for soft shadow approximation, achieving prominent shadow penumbras while maintaining interactive frame rates.
Motivation & Objective
- To address the limitation of offline SDF generation in interactive applications by enabling real-time SDF computation.
- To overcome the blocky surface artifacts of standard jump flooding in SDFs through selective high-resolution ray tracing.
- To achieve high-quality soft shadows with prominent penumbras while maintaining interactive performance.
- To reduce artifacts such as ghosting and banding in SDF-based soft shadow rendering through temporal accumulation and raymarching optimization.
Proposed method
- A coarse SDF is generated via 3D jump flooding using voxelized scene data from orthographic projections along x, y, and z axes.
- Voxels are updated using the rasterization pipeline with depth testing disabled to ensure all primitives contribute to the SDF.
- A fine SDF is initialized at higher resolution, and only texels within distance d of the coarse SDF surface are ray-traced for accuracy.
- Ray tracing uses random directions from each texel’s world position, with the minimum distance across rays accumulated over time.
- Temporal accumulation is applied using a decay factor α to reduce ghosting on moving objects, combining previous frame data with current ray traces.
- The final SDF is signed based on face hit ratios (front vs. back), and soft shadows are rendered via raymarching with jittered origins and step size limits to reduce banding.
Experimental results
Research questions
- RQ1Can a hybrid approach combining jump flooding and ray tracing generate SDFs with sufficient accuracy for soft shadow rendering in real time?
- RQ2How can temporal accumulation and selective ray tracing reduce artifacts like ghosting and banding in dynamic scenes?
- RQ3What trade-off exists between performance and SDF accuracy when tuning the distance threshold d for ray tracing?
- RQ4To what extent does the method improve penumbra quality compared to CSM with EVSM filtering?
- RQ5How do low-resolution voxels and minimum raymarch step size affect thin surface rendering and shadow umbras?
Key findings
- The method achieves 97 fps on a GeForce RTX 2080 Ti for soft shadow rendering with prominent penumbras, outperforming CSM with EVSM (113 fps) in visual quality.
- Temporal accumulation with decay factor α effectively reduces ghosting artifacts on moving objects by blending previous and current frame data.
- Selective ray tracing based on coarse SDF proximity enables high accuracy only where needed, maintaining real-time performance.
- Banding artifacts in shadow penumbras are mitigated through triangulation between current and previous raymarch sample points and maximum step size limiting.
- Thin surfaces still exhibit holes in shadow umbras due to minimum raymarch step size and voxelization gaps, indicating a need for hybrid shadow mapping in such regions.
- The method produces smoother, less blocky surfaces than pure jump flooding by combining low-cost coarse SDFs with targeted high-precision ray tracing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.