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¶
Render a narrow gate with TimeGatedReSTIRInline, which reuses paths across pixels, and compare
it with the path tracer at equal rendering time.
Sweep the gate over 100 frames with temporal reuse, and compare TGPT and TG ReSTIR at equal frame time in two videos.
Transient rendering¶
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.
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.