Modulated light

These applications reconstruct the scene from modulated-light measurements rendered with CWToFPathTracerInline and StructuredLightPathTracerInline (see Modulated light). They render the full measurement, direct and indirect light, as a real sensor sees it, and compare naive and antithetic sampling of the indirect light.

They use two Cornell-box scenes with objects from the Stanford 3D Scanning Repository. Download and unzip them next to the scripts:

Depth without multipath builds its own scene. The light sources are lights of the render passes, so the scenes have none. The scripts need matplotlib. The numbers were measured on an NVIDIA GeForce RTX 3090 with Vulkan.

Depth of the bunny scene reconstructed from CW-ToF
Depth from CW-ToF

Four phase-shifted measurements, phase to depth, and np.unwrap.

Depth from CW-ToF
The bunny scene reconstructed from structured light
3D reconstruction from structured light

XOR codes along both projector axes, decoded and triangulated.

3D reconstruction from structured light
Global light of the separation scene
Direct and global separation

Separate the direct and the global light with shifted fine checkerboards (Nayar et al. 2006).

Direct and global separation
Depth error of the conventional and the probed CW-ToF measurements of a white corner
Depth without multipath

A projector at the camera and transport probing keep only the direct light (O’Toole et al. 2014).

Depth without multipath: transport probing