Steerable Importance Sampling

We present an algorithm for efficient stratified importance sampling of environment maps that generates samples in the positive hemisphere defined by local orientation of arbitrary surfaces while accounting for cosine weighting. The importance function is dynamically adjusted according to the surface normal using steerable basis functions. The algorithm is easy to implement and requires no user-defined parameters. As a preprocessing step, we approximate the incident illumination from an environment map as a continuous piecewise linear function on P2 and represent this as a triangulated height field. The product of this approximation and a dynamically orientable steering function, viz. the cosine lobe, serves as an importance sampling function. Our method allows the importance function to be sampled with an asymptotic cost of O(logn) per sample where n is the number of triangles. The most novel aspect of the algorithm is its ability to dynamically compute normalization factors which are integrals of the illumination over the positive hemispheres defined by the local surface normals during shading. The key to this feature is that the weight variation of each triangle due to the clamped cosine steering function can be well approximated by a small number of spherical harmonic coefficients which can be accumulated over any collection of triangles, in any orientation, without introducing higher-order terms. Consequently, the weighted integral of the entire steerable piecewise-linear approximation is no more costly to compute than that of a single triangle, which makes re-weighting and re-normalizing with respect to any surface orientation a trivial constant-time operation. The choice of spherical harmonics as the set of basis functions for our steerable importance function allows for easy rotation between coordinate systems. Another novel element of our algorithm is an analytic parametrization for generating stratified samples with linearly-varying density over a triangular support.

[1]  D. Heeger,et al.  Theory and applications of steerable functions , 1998 .

[2]  J. Hammersley SIMULATION AND THE MONTE CARLO METHOD , 1982 .

[3]  Robert L. Cook,et al.  Stochastic sampling in computer graphics , 1988, TOGS.

[4]  Peter Shirley,et al.  Steerable illumination textures , 2002, TOGS.

[5]  Parris K. Egbert,et al.  Two Stage Importance Sampling for Direct Lighting , 2006, Rendering Techniques.

[6]  H. Jensen,et al.  Wavelet importance sampling: efficiently evaluating products of complex functions , 2005, SIGGRAPH 2005.

[7]  Jitendra Malik,et al.  Recovering high dynamic range radiance maps from photographs , 1997, SIGGRAPH.

[8]  Serge J. Belongie,et al.  Structured importance sampling of environment maps , 2003, ACM Trans. Graph..

[9]  David Eppstein,et al.  Single-strip triangulation of manifolds with arbitrary topology , 2004, SCG '04.

[10]  J. Arvo Stratified Sampling of 2-Manifolds , 2001 .

[11]  Henrik Wann Jensen,et al.  State of the Art in Monte Carlo Ray Tracing for Realistic Image Synthesis , 2001 .

[12]  W. Freeman Steerable filters and local analysis of image structure , 1992 .

[13]  Peter Shirley,et al.  Monte Carlo techniques for direct lighting calculations , 1996, TOGS.

[14]  Peter Shirley,et al.  An Anisotropic Phong BRDF Model , 2000, J. Graphics, GPU, & Game Tools.

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

[16]  Szymon Rusinkiewicz,et al.  Adaptive numerical cumulative distribution functions for efficient importance sampling , 2005, EGSR '05.

[17]  J. Arvo,et al.  Unbiased Variance Reduction for Global Illumination , 1994 .

[18]  Pat Hanrahan,et al.  All-frequency shadows using non-linear wavelet lighting approximation , 2003, ACM Trans. Graph..

[19]  James Arvo,et al.  Unbiased sampling techniques for image synthesis , 1991, SIGGRAPH.

[20]  Leonidas J. Guibas,et al.  Optimally combining sampling techniques for Monte Carlo rendering , 1995, SIGGRAPH.

[21]  Pat Hanrahan,et al.  An efficient representation for irradiance environment maps , 2001, SIGGRAPH.

[22]  Wolfgang Heidrich,et al.  Bidirectional importance sampling for illumination from environment maps , 2004, SIGGRAPH '04.

[23]  Victor Ostromoukhov,et al.  Fast hierarchical importance sampling with blue noise properties , 2004, ACM Trans. Graph..

[24]  Wolfgang Heidrich,et al.  Sequential Sampling for Dynamic Environment Map Illumination , 2022 .

[25]  Greg Turk,et al.  Generating random points in triangles , 1990 .

[26]  James T. Kajiya,et al.  The rendering equation , 1998 .