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:
cornell-box-bunny-diffuse.zip: a diffuse bunny, for depth.cornell-box-separation.zip(3.6 MB): a glass dragon, a white armadillo and a rough gold bunny, for the separation.
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.
Four phase-shifted measurements, phase to depth, and np.unwrap.
XOR codes along both projector axes, decoded and triangulated.
Separate the direct and the global light with shifted fine checkerboards (Nayar et al. 2006).
A projector at the camera and transport probing keep only the direct light (O’Toole et al. 2014).