🎯 DARTS: Diffusion Approximated Residual Time Sampling for Time-of-flight Rendering in Homogeneous Scattering Media
The code is composed of two renderers:
- A modified version of pbrt-v3
- A modified version of Tungsten (actually, transient-Tungsten)
A kind reminder: don't get misled. Diffusion here does not mean DDPM related generative AI. It is an optics concept which describes the "diffusion" of photons within the participating medium. The only part Pytorch gets used in this work, is the precomputation of the EDA direction sampling table, which takes merely 5 seconds to complete with torch.compile
and no back-prop is used. Yeah, I know, this is old-fashioned, sorry about that if you accidentally click this repo and try to see how diffusion models are employed.
Compilation and using this code base can refer to the README in each folder. The main modification:
- Support ToF rendering (transient / time-gated) for both renderers.
- Added
GuidedHomogeneousMedium
class,IsotropicDAPhase
class and etc. which support our sampling methods. - Modified some of the BSDF implementation, so that Tungsten can have the same outputs as PBRT-v3 (Tungsten can have matched output as PBRT-v4 but not v3).
You can refer to Enigmatisms/AnalyticalGuiding repo to test the 2D and 1D numerical tests and interactive visualization (in DearPyGui and Taichi).
Apart from other authors, here I'd like to extend my personal gratitude to Yang Liu, who is the first author of paper "Temporally sliced photon primitives for time-of-flight rendering". The implementation (photon point methods) of our method is based on the code base of his (listed above) and some of the discussions with him really pushed forward the modification of the Tungsten renderer part. His work for camera-unwarped transient rendering is very solid and inspiring, which definitely deserves more attention.
Other ToF rendering related paper:
- Jarabo A, Marco J, Munoz A, et al. A framework for transient rendering[J]. ACM Transactions on Graphics (ToG), 2014, 33(6): 1-10.
- Marco J, Guillén I, Jarosz W, et al. Progressive transient photon beams[C]//Computer graphics forum. 2019, 38(6): 19-30.
- Kim J, Jarosz W, Gkioulekas I, et al. Doppler Time-of-Flight Rendering[J]. ACM Transactions on Graphics (TOG), 2023, 42(6): 1-18.
- Yi S, Kim D, Choi K, et al. Differentiable transient rendering[J]. ACM Transactions on Graphics (TOG), 2021, 40(6): 1-11.
For the paper:
@article{he2024darts,
title={DARTS: Diffusion Approximated Residual Time Sampling for Time-of-flight Rendering in Homogeneous Scattering Media},
author={He, Qianyue and Du, Dongyu and Jiang, Haitian and Jin, Xin},
journal={ACM Transactions on Graphics (TOG)},
volume={43},
number={6},
pages={1--14},
year={2024},
publisher={ACM New York, NY, USA}
}
For the code base, it is recommended that PBRT-v3 and Tungsten are cited altogether:
@misc{He:2024:DARTS,
title = {DARTS-ToF-Renderer},
author = {He, Qianyue},
year = {2024},
url = {https://github.com/Enigmatisms/DARTS/}
}