Differentiable Monte Carlo ray tracing through edge sampling

By Tzu-Mao Li, Miika Aittala, Frédo Durand, Jaakko Lehtinen. ACM Transactions on Graphics, 2018

586 citations recorded by the source corpus.

Gradient-based methods are becoming increasingly important for computer graphics, machine learning, and computer vision. The ability to compute gradients is crucial to optimization, inverse problems, and deep learning. In rendering, the gradient is required with respect to variables such as camera parameters, light sources, scene geometry, or material appearance. However, computing the gradient of rendering is challenging because the rendering integral includes visibility terms that are not differentiable. Previous work on differentiable rendering has focused on approximate solutions. They often do not handle secondary effects such as shadows or global illumination, or they do not provide the gradient with respect to variables other than pixel coordinates. We introduce a general-purpose differentiable ray tracer, which, to our knowledge, is the first comprehensive solution that is able to compute derivatives of scalar functions over a rendered image with respect to arbitrary scene parameters such as camera pose, scene geometry, materials, and lighting parameters. The key to our method is a novel edge sampling algorithm that directly samples the Dirac delta functions introduced by the derivatives of the discontinuous integrand. We also develop efficient importance sampling methods based on spatial hierarchies. Our method can generate gradients in times running from seconds to minutes depending on scene complexity and desired precision. We interface our differentiable ray tracer with the deep learning library PyTorch and show prototype applications in inverse rendering and the generation of adversarial examples for neural networks.

Subfields: Computational Mechanics, Computer Graphics and Computer-Aided Design, Computer Vision and Pattern Recognition

View Paper: https://www.semanticscholar.org/paper/0a3f6b49e632917fbea0c63860c14d24143641eb

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computational Mechanics

  1. Andreas Geiger
  2. Christian Theobalt
  3. Jonathan T. Barron
  4. Pratul P. Srinivasan
  5. Ben Mildenhall
  6. Matthias Nießner
  7. Songyou Peng
  8. Michael J. Black

In Computer Graphics and Computer-Aided Design

  1. Andreas Geiger
  2. Jonathan T. Barron
  3. Ben Mildenhall
  4. Matthias Nießner
  5. Pratul P. Srinivasan
  6. Christian Theobalt
  7. Gordon Wetzstein
  8. Ricardo Martin-Brualla

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Jitendra Malik
  3. Andreas Geiger
  4. Andrea Vedaldi
  5. Ming-Hsuan Yang
  6. Dacheng Tao
  7. Trevor Darrell
  8. Xiaogang Wang

Citations in the corpus