ToF rendering with ReSTIR

These tutorials render the same ToF measurements as ToF rendering, with the ReSTIR render passes instead of the path tracers. ReSTIR samples paths the same way, then lets every pixel reuse the paths found by its neighbors, shifted with a path-length-aware shift mapping that keeps their length. This pays off when few sampled paths fit the measurement, for example with a narrow time gate, and in online rendering, where every frame is shown on its own.

They build on the ToF rendering tutorials, and use the same scene and render graph. Most of their scripts save their images with Pillow 10.1 or newer (pip install pillow).

Time-gated rendering

Time-gated Cornell box rendered with TG ReSTIR
Time-gated ReSTIR (offline)

Render a narrow gate with TimeGatedReSTIRInline, which reuses paths across pixels, and compare it with the path tracer at equal rendering time.

Time-gated ReSTIR (offline)
The moving-gate sequence rendered with TG ReSTIR
Time-gated ReSTIR (online)

Sweep the gate over 100 frames with temporal reuse, and compare TGPT and TG ReSTIR at equal frame time in two videos.

Time-gated ReSTIR (online)

Transient rendering

Bins of the Cornell box's transient histogram rendered with TH ReSTIR
Transient ReSTIR (offline)

Render a 64-bin transient histogram with TransientHistogramReSTIRInline, which reuses paths across pixels in every bin, and compare it with the path tracer at equal rendering time.

Transient ReSTIR (offline)
Transient histogram bins rendered with TH ReSTIR while the camera moves
Transient ReSTIR (online)

Move the camera over 100 frames with temporal reuse, and compare THPT and TH ReSTIR at equal frame time in the Cornell box and in Veach, Ajar.

Transient ReSTIR (online)