Sampling Projected Spherical Caps in Real Time

Stochastic shading with area lights requires methods to sample the light sources. For diffuse materials, the best strategy is to sample proportionally to projected solid angle. Recent work in offline rendering has addressed this problem for spherical light sources, but the solution is unsuitable for a GPU implementation. We present a far more efficient solution. It offers results without noteworthy noise for diffuse surfaces lit by an unoccluded spherical light source while being only two to three times more costly than simple sampling of the solid angle. The core insight of the technique is that a projected spherical cap can be decomposed into, or at least approximated by, cut disks. We present an efficient method to sample cut disks and show how to use it to sample projected spherical caps. In some cases, our method does not sample exactly proportionally to projected solid angle but the deviation is provably bounded.

[1]  Carlos Ureña,et al.  An Area‐Preserving Parametrization for Spherical Rectangles , 2013, Comput. Graph. Forum.

[2]  Carlos Ureña,et al.  Area‐Preserving Parameterizations for Spherical Ellipses , 2017, Comput. Graph. Forum.

[3]  E. Heitz Analytical calculation of the solid angle subtended by an arbitrarily positioned ellipsoid to a point source , 2016 .

[4]  John Snyder Area Light Sources for Real-Time Graphics , 1996 .

[5]  Manuel N. Gamito Solid Angle Sampling of Disk and Cylinder Lights , 2016, Comput. Graph. Forum.

[6]  森重伸也 “Real‐Time Polygonal‐Light Shading with Linearly Transformed Cosines”の実装報告 , 2016 .

[7]  Mathieu Desbrun,et al.  Blue noise through optimal transport , 2012, ACM Trans. Graph..

[8]  James Arvo,et al.  Stratified sampling of spherical triangles , 1995, SIGGRAPH.

[9]  Laurent Belcour,et al.  A spherical cap preserving parameterization for spherical distributions , 2017, ACM Trans. Graph..

[10]  David B. Kirk,et al.  Graphics Gems III , 1992 .

[11]  Brent Burley Physically-Based Shading at Disney , 2012 .

[12]  Anjul Patney,et al.  Spatiotemporal variance-guided filtering: real-time reconstruction for path-traced global illumination , 2017, High Performance Graphics.

[13]  Andrew Kensler,et al.  Progressive Multi‐Jittered Sample Sequences , 2018, Comput. Graph. Forum.

[14]  Morgan McGuire,et al.  Combining analytic direct illumination and stochastic shadows , 2018, I3D.

[15]  Robert Ulichney,et al.  Void-and-cluster method for dither array generation , 1993, Electronic Imaging.

[16]  Carlos Ureña,et al.  Stratified Sampling of Projected Spherical Caps , 2018, Comput. Graph. Forum.