Volumetric path tracing explained

Volumetric path tracing is a method for rendering images in computer graphics which was first introduced by Lafortune and Willems.[1] This method enhances the rendering of the lighting in a scene by extending the path tracing method with the effect of light scattering. It is used for photorealistic effects of participating media like fire, explosions, smoke, clouds, fog or soft shadows.

Like in the path tracing method, a ray is followed backwards, beginning from the eye, until reaching the light source. In volumetric path tracing, scattering events can occur along with ray tracing. When a light ray hits a surface, a certain amount gets scattered into the media.[2]

Description

The algorithm is based on the volumetric rendering equation,[3] which extends the rendering equation with a scattering term.It is composed of an absorption, out-scattering, emission and an in-scattering part. The absorption and out-scattering together form the extinction term. The in-scattering is the most expensive part to calculate because it needs an integration over all paths in the scene that consist of radiance. Therefore, thousands of paths need to be traced to achieve a result with good quality and without much noise. For a better handling, the in-scattering term can be split into two components, the single scattering and the multiple scattering.[4]

Algorithm

In volumetric path tracing, a distance between the ray and the surface gets sampled and compared with the distance of the nearest intersection of the ray with the surface. If the sampled distance is smaller, a scatter event occurs. In that case the path is evaluated and traced from the scatter point in the media, not from the surface point on which it falls. The rest of the procedure continues in the same manner, until reaching the light source.[2] [5]

Sampling

A possible way of sampling distances is the ray marching method, which works similarly to ray tracing but operates on a distance field of the scene and acts in discrete steps. The scattering inside the media can be determined by a phase function using importance sampling. Therefore, the Henyey–Greenstein phase function[6] — a non-isotropic phase function for simulating the scattering of materials like oceans, clouds or skin — can be applied.

Further reading

Notes and References

  1. Book: Lafortune. Eric P. Willems. Yves. Rendering Participating Media with Bidirectional Path Tracing . Rendering Techniques '96. Eurographics. June 1996. 91–100. 10.1007/978-3-7091-7484-5_10. 978-3-211-82883-0. http://luthuli.cs.uiuc.edu/~daf/courses/Rendering/Papers/lafortune96rendering.pdf.
  2. Skånberg. Robin. Evaluation of Visual Parameters in Volumetric Path Tracing. January 2015. 20–22. Department of Science and Technology, Linköping University.
  3. Chandrasekhar. Subrahmanyan. Radiative transfer. Quarterly Journal of the Royal Meteorological Society. 1950. 76. 330. 498. 10.1002/qj.49707633016. John Wiley & Sons, Ltd. 1477-870X.
  4. Book: Jarosz. Wojciech. Efficient Monte Carlo Methods for Light Transport in Scattering Media. 2008. http://www.cs.dartmouth.edu/~wjarosz/publications/dissertation/. 4-5. 55–100. University of California.
  5. Kulla. Christopher. Fajardo. Marcos. Importance Sampling Techniques for Path Tracing in Participating Media. Computer Graphics Forum. June 2012. 31. 4. 1519–1528. 10.1111/j.1467-8659.2012.03148.x. John Wiley \& Sons, Inc.. 2534374 . 0167-7055.
  6. Web site: The Henyey–Greenstein phase function.