Implementing null-scattering path integral formulation in Mitsuba 2

Rendering of a spectrally and spatially varying plume of smoke.

Click on the image to view the original.

This project was done at EPFL at the Realistic Graphics Lab under the supervision of Wenzel Jakob and Tizian Zeltner. Project report with more detailed explanations can be found here.

Motivation

A paper by Miller et al. (2019) presents a novel way of formulating the path-space version of the volume rendering equation. Their new formulation provides pdfs of full paths in both homogeneous and heterogeneous media for the first time. It also treats both homogeneous and heterogeneous media by the same formula.

As a result, new ways of combining path sampling strategies in heterogeneous media via multiple importance sampling (MIS) are possible. This can potentially lead to better rendering performance. Another advantage is that rendering software can be simplified because integrators which solve the new formulation are more robust.

The goal of this project is to implement the new formulation in Mitsuba 2, an upcoming version of a widely used research-oriented renderer. Then, it is important to evaluate the benefits and drawbacks of the implementation which will ultimately help to decide whether it should be used in Mitsuba 2 by default.

Results

We have reproduced results and figures from the original paper to verify that our implementation works. All images on this page are rendered in Mitsuba 2.

First, here are two scenes of a bunny-shaped cloud. The upper one is back-lit by a large area light source. This makes it easy to render using brute-force path tracing (Spectral MIS in the figure), but difficult using next-event estimation (NEE in the figure). The lower scene is side-lit by a much smaller light source. Such a scene is difficult for brute-force path tracing, but easy for next-event estimation. Because the new path integral formulation gives us full path pdfs for both methods, we can combine them using MIS in an integrator which is more robust and renderes both scenes well (Uni+NEE MIS in the figure).

Bunny cloud comparison scenes.

Click on the image to view the original.

Next, we have a scene containing a spectrally-varying heterogeneous plume of smoke. There are various methods for unbiased rendering of colorful media, one of them being independent tracking. This method, however, suffers from excessive color noise. Hero wavelength sampling (Spectral MIS in the figure) reduces color noise, but it employs various path sampling techniques which need to be combined via MIS. This has been made possible by the new formulation.

Smoke plume comparison scenes.

Click on the image to view the original.

Lastly, we have indentified two main drawbacks of the practical implementation of the new formulation:

Technical Details

More details can be found in the project report.