Light transport simulation in the gradient domain is an efficient family of Monte Carlo rendering techniques that can converge a few times faster than standard Monte Carlo rendering. The basic idea of gradient-domain rendering is to first efficiently sample the horizontal and vertical gradient images in addition to the standard Monte Carlo rendering. The final image can be reconstructed from the gradients by solving an image-space Poisson problem. The final image can be seen as a denoised result of standard Monte Carlo rendering.
This repository contains several gradient-domain light transport simulation algorithms. It derives Mitsuba 0.5.0 and includes the gradient domain implementation of path tracing, bidirectional path tracing, photon mapping, vertex connection and merging. It also supports rendering participating media with volumetric photon mapping, beam radiance estimates, photon beams, and planes. The repository is made to support the course Light Transport Simulation in the Gradient Domain in SIGGRAPH Asia 2018 and the state-of-the-art report A Survey on Gradient-Domain Rendering in Eurographics 2019.
In case of problems/questions/comments don't hesitate to contact us directly: [email protected] or [email protected].
This code includes several integrators originally implemented by many other researchers:
- Gradient-domain path tracing (SIGGRAPH 2015)
- Gradient-domain bidirectional path tracing (EGSR 2015)
- Gradient-domain photon density estimation (Eurographics 2017)
- Gradient-domain vertex connection and merging (EGSR 2017)
- Gradient-domain volume photon density estimation (SIGGRAPH 2018)
The code is located in the src/integrator/gradient
folder.
For image reconstruction, it includes:
- L1 and L2 reconstruction
- Uniform and weighted reconstruction based on control variates (SIGGRAPH Asia 2016)
Currently, weighted reconstruction only supports gradient-domain path tracing. This reconstruction requires an estimate of the variance of the pixel value and its gradients. The support for other algorithms requires some extensions of this variance estimates which we temporarily leave as future work.
To support the comparison of gradient-domain image reconstruction with Monte Carlo denoising techniques, the code also includes two popular denoising techniques:
- Nonlinearly Weighted First-order Regression for Denoising Monte Carlo Renderings (NFOR) (EGSR 2016)
- Bayesian Collaborative Denoising for Monte Carlo Rendering (BCD) (EGSR 2017)
Currently, this two denoisers are only compatible with path tracing. They require the auxilary buffer (NFOR) or samples histograms (BCD).
- Make sure that the config.py files use DOUBLE_PRECISON flag instead of SINGLE_PRECISION since the current implementation of gradient-domain rendering is quite sensitive to floating point precision. This will hopefully be fixed at a later time.
2023/04/24: Update links 2018/11/29: Initial code release
This code is released under the GNU General Public License (version 3).
This source code includes the following open source implementations:
- Screened Poisson reconstruction code from NVIDIA, released under the new BSD license.
- Mitsuba 0.5.0 by Wenzel Jakob, released under the GNU General Public License (version 3).
- A small part of Tungsten by Benedikt Bitterli.