“Integrating Clipped Spherical Harmonics Expansions” by Belcour, Xie, Hery, Meyer, Jarosz, et al. …
Conference:
Type(s):
Title:
- Integrating Clipped Spherical Harmonics Expansions
Session/Category Title: Smart Integration for Real-Time Rendering
Presenter(s)/Author(s):
Moderator(s):
Abstract:
Many applications in rendering rely on integrating functions over spherical polygons. We present a new numerical solution for computing the integral of spherical harmonics (SH) expansions clipped to polygonal domains. Our solution, based on zonal decompositions of spherical integrands and discrete contour integration, introduces an important numerical operating for SH expansions in rendering applications. Our method is simple, efficient, and scales linearly in the bandlimited integrand’s harmonic expansion. We apply our technique to problems in rendering, including surface and volume shading, hierarchical product importance sampling, and fast basis projection for interactive rendering. Moreover, we show how to handle general, nonpolynomial integrands in a Monte Carlo setting using control variates. Our technique computes the integral of bandlimited spherical functions with performance competitive to (or faster than) more general numerical integration methods for a broad class of problems, both in offline and interactive rendering contexts. Our implementation is simple, relying only on self-contained SH evaluation and discrete contour integration routines, and we release a full source CPU-only and shader-based implementations (<750 lines of commented code).
References:
- Thomas Annen, Jan Kautz, Frédo Durand, and Hans-Peter Seidel. 2004. Spherical harmonic gradients for mid-range illumination. In Proceedings of the 15th Eurographics Conference on Rendering Techniques (EGSR’04). 331–336.
- James R. Arvo. 1995. Applications of irradiance tensors to the simulation of non-Lambertian phenomena. In Proceedings of the 1995 SIGGRAPH Annual Conference.
- J. Beckmann, H. N. Mhaskar, and J. Prestin. 2012. Quadrature formulas for integration of multivariate trigonometric polynomials on spherical triangles. International Journal on Geomathematics 3, 1, 119–138.
- J. Beckmann, H. N. Mhaskar, and J. Prestin. 2014. Local numerical integration on the sphere. International Journal on Geomathematics 5, 2, 143–162.
- Benedikt Bitterli, Jan Novák, and Wojciech Jarosz. 2015. Portal-masked environment map sampling. In Proceedings of the 26th Eurographics Symposium on Rendering (EGSR’15). 13–19.
- Min Chen and James Arvo. 2001. Simulating non-Lambertian phenomena involving linearly-varying luminaires. In Proceedings of the 12th Eurographics Conference on Rendering. 25–38.
- Min Chen and James R. Arvo. 2000. A closed-form solution for the irradiance due to linearly-varying luminaires. In Rendering Techniques 2000. Eurographics. Springer, 137–148.
- Petrik Clarberg and Tomas Akenine-Möller. 2008a. Exploiting visibility correlation in direct illumination. In Proceedings of the 19th Eurographics Conference on Rendering (EGSR’08). 1125–1136.
- Petrik Clarberg and Tomas Akenine-Möller. 2008b. Practical product importance sampling for direct illumination. Computer Graphics Forum 27, 2, 681–690.
- Petrik Clarberg, Wojciech Jarosz, Tomas Akenine-Möller, and Henrik Wann Jensen. 2005. Wavelet importance sampling: Efficiently evaluating products of complex functions. ACM Transactions on Graphics 24, 3, 1166–1175.
- Ronald Cools and Philip Rabinowitz. 1993. Monomial cubature rules since “Stroud”: A compilation. Journal of Computational and Applied Mathematics 48, 3, 309–326.
- Shaohua Fan, Stephen Chenney, Bo Hu, Kam-Wah Tsui, and Yu-Chi Lai. 2006. Optimizing control variate estimators for rendering. Computer Graphics Forum 25, 3, 351–358.
- Q. T. Le Gia and H. N. Mhaskar. 2009. Localized linear polynomial operators and quadrature formulas on the sphere. SIAM Journal on Numerical Analysis 47, 1, 440–466.
- Paul Green, Jan Kautz, Wojciech Matusik, and Frédo Durand. 2006. View-dependent precomputed light transport using nonlinear Gaussian function approximations. In Proceedings of the Symposium on Interactive 3D Graphics and Games. ACM, New York, NY.
- Charles Han, Bo Sun, Ravi Ramamoorthi, and Eitan Grinspun. 2007. Frequency domain normal map filtering. ACM Transactions on Graphics 26, 3, Article No. 28.
- Eric Heitz, Jonathan Dupuy, Stephen Hill, and David Neubelt. 2016. Real-time polygonal-light shading with linearly transformed cosines. ACM Transactions on Graphics 35, 4, Article No. 41.
- Kerstin Hesse, Ian H. Sloan, and Robert S. Womersley. 2010. Numerical integration on the sphere. In Handbook of Geomathematics. Springer, 1–35.
- R. W. James. 1969. Transformation of spherical harmonics under change of reference frame. Geophysical Journal of the Royal Astronomical Society 17, 3, 305–316.
- Wojciech Jarosz, Nathan A. Carr, and Henrik Wann Jensen. 2009. Importance sampling spherical harmonics. Computer Graphics Forum 28, 2, 577–586.
- Boz Kempski. 1995. Extension of the Whittaker-Shannon Sampling Series Aided by Symbolic Computation. Ph.D. Dissertation. Anglia Polytechnic.
- Anders Wang Kristensen, Tomas Akenine-Möller, and Henrik Wann Jensen. 2005. Precomputed local radiance transfer for real-time lighting design. ACM Transactions on Graphics 24, 3, 1208–1215..
- Eric P. Lafortune and Yves D. Willems. 1994. The ambient term as a variance reducing technique for Monte Carlo ray tracing. In Photorealistic Rendering Techniques. Focus on Computer Graphics. Springer, 168–176.
- Pascal Lecocq, Arthur Dufay, Gaël Sourimant, and Jean-Eudes Marvie. 2016. Accurate analytic approximations for real-time specular area lighting. In Proceedings of the Symposium on Interactive 3D Graphics and Games.
- Christian Lessig, Tyler de Witt, and Eugene Fiume. 2012. Efficient and accurate rotation of finite spherical harmonics expansions. Journal of Computational Physics 231, 2, 243–250.
- Wojciech Matusik, Hanspeter Pfister, Matt Brand, and Leonard McMillan. 2003. A data-driven reflectance model. ACM Transactions on Graphics 22, 759–769.
- Soham Mehta, Ravi Ramamoorthi, Mark Meyer, and Christophe Hery. 2012. Analytic tangent irradiance environment maps for anisotropic surfaces. Computer Graphics Forum 31, 4, 1501–1508.
- Ren Ng, Ravi Ramamoorthi, and Pat Hanrahan. 2003. All-frequency shadows using non-linear wavelet lighting approximation. ACM Transactions on Graphics 22, 3, 376–381.
- Ren Ng, Ravi Ramamoorthi, and Pat Hanrahan. 2004. Triple product wavelet integrals for all-frequency relighting. ACM Transactions on Graphics 23, 3, 477–487.
- Jan Novák, Andrew Selle, and Wojciech Jarosz. 2014. Residual ratio tracking for estimating attenuation in participating media. ACM Transactions on Graphics 33, 6, Article No. 179.
- Derek Nowrouzezahrai, Patricio Simari, and Eugene Fiume. 2012. Sparse zonal harmonic factorization for efficient SH rotation and shading. ACM Transactions on Graphics 31, 3, Article No. 23.
- Vincent Pegoraro and Steven G. Parker. 2009. An analytical solution to single scattering in homogeneous participating media. Computer Graphics Forum 28, 2, 329–335.
- Vincent Pegoraro, Mathias Schott, and Steven G. Parker. 2009. An analytical approach to single scattering for anisotropic media and light distributions. In Proceedings of the Graphics Interface Conference.
- Matt Pharr, Wenzel Jakob, and Greg Humphreys. 2016. Physically Based Rendering: From Theory to Implementation (3rd ed.). Morgan Kaufmann, San Francisco, CA.
- Ravi Ramamoorthi and Pat Hanrahan. 2001. An efficient representation for irradiance environment maps. In Proceedings of the SIGGRAPH Annual Conference. ACM, New York, NY, 497–500.
- Ravi Ramamoorthi and Pat Hanrahan. 2002. Frequency space environment map rendering. ACM Transactions on Graphics 21, 3, 517–526.
- Peter-Pike Sloan. 2008. Stupid spherical harmonics (SH) tricks. In Proceedings of the Game Developers Conference.
- Peter-Pike Sloan, Jan Kautz, and John Snyder. 2002. Precomputed radiance transfer for real-time rendering in dynamic, low-frequency lighting environments. ACM Transactions on Graphics 21, 3, 527–536.
- Peter-Pike Sloan, Ben Luna, and John Snyder. 2005. Local, deformable precomputed radiance transfer. ACM Transactions on Graphics 24, 3, 1216–1224.
- Cyril Soler, Mahdi M. Bagher, and Derek Nowrouzezahrai. 2015. Efficient and accurate spherical kernel integrals using isotropic decomposition. ACM Transactions on Graphics 34, 6, Article No. 161.
- Bo Sun, Ravi Ramamoorthi, Srinivasa G. Narasimhan, and Shree K. Nayar. 2005. A practical analytic single scattering model for real time rendering. ACM Transactions on Graphics 24, 3, 1040–1049.
- Weifeng Sun and Amar Mukherjee. 2006. Generalized wavelet product integral for rendering dynamic glossy objects. ACM Transactions on Graphics 25, 3, 955–966.
- Yu-Ting Tsai and Zen-Chung Shih. 2006. All-frequency precomputed radiance transfer using spherical radial basis functions and clustered tensor approximation. ACM Transactions on Graphics 25, 3, 967–976.
- Jiaping Wang, Peiran Ren, Minmin Gong, John Snyder, and Baining Guo. 2009. All-frequency rendering of dynamic, spatially-varying reflectance. ACM Transactions on Graphics 28, 5, Article No. 133.