Automatic Band‐Limited Approximation of Shaders Using Mean‐Variance Statistics in Clamped Domain

In this paper, we present a new shader smoothing method to improve the quality and generality of band‐limiting shader programs. Previous work [YB18] treats intermediate values in the program as random variables, and utilizes mean and variance statistics to smooth shader programs. In this work, we extend such a band‐limiting framework by exploring the observation that one intermediate value in the program is usually computed by a complex composition of functions, where the domain and range of composited functions heavily impact the statistics of smoothed programs. Accordingly, we propose three new shader smoothing rules for specific composition of functions by considering the domain and range, enabling better mean and variance statistics of approximations. Aside from continuous functions, the texture, such as color texture or normal map, is treated as a discrete function with limited domain and range, thereby can be processed similarly in the newly proposed framework. Experiments show that compared with previous work, our method is capable of generating better smoothness of shader programs as well as handling a broader set of shader programs.

[1]  Young J. Kim,et al.  Interactive generalized penetration depth computation for rigid and articulated models using object norm , 2014, ACM Trans. Graph..

[2]  Anjul Patney,et al.  Filtering distributions of normals for shading antialiasing , 2016, High Performance Graphics.

[3]  R. Ramamoorthi,et al.  Frequency domain normal map filtering , 2007, SIGGRAPH 2007.

[4]  Hujun Bao,et al.  Real‐Time Linear BRDF MIP‐Mapping , 2017, Comput. Graph. Forum.

[5]  Shuang Zhao,et al.  Accurate appearance preserving prefiltering for rendering displacement-mapped surfaces , 2019, ACM Trans. Graph..

[6]  C CrowFranklin Summed-area tables for texture mapping , 1984 .

[7]  Stephen Lin,et al.  Filtering and Rendering of Resolution-Dependent Reflectance Models , 2008, IEEE Transactions on Visualization and Computer Graphics.

[8]  Pierre Poulin,et al.  Filtering color mapped textures and surfaces , 2013, I3D '13.

[9]  T KajiyaJames The rendering equation , 1986 .

[10]  Frédo Durand,et al.  5D Covariance tracing for efficient defocus and motion blur , 2013, TOGS.

[11]  Robert L. Cook,et al.  A Reflectance Model for Computer Graphics , 1987, TOGS.

[12]  Steve Marschner,et al.  Rendering glints on high-resolution normal-mapped specular surfaces , 2014, ACM Trans. Graph..

[13]  Brian A. Barsky,et al.  Advanced Renderman: Creating CGI for Motion Pictures , 1999 .

[14]  Steve Marschner,et al.  Microfacet Models for Refraction through Rough Surfaces , 2007, Rendering Techniques.

[15]  Greg Humphreys,et al.  Physically Based Rendering, Second Edition: From Theory To Implementation , 2010 .

[16]  Steve Marschner,et al.  Discrete stochastic microfacet models , 2014, ACM Trans. Graph..

[17]  David Neubelt,et al.  Crafting a Next-Gen Material Pipeline for The Order : 1886 by David Neubelt and Matt Pettineo , Ready at Dawn Studios , 2013 .

[18]  Jason Lawrence,et al.  Towards Automatic Band‐Limited Procedural Shaders , 2015, Comput. Graph. Forum.

[19]  Shuang Zhao,et al.  Automatic bounding of programmable shaders for efficient global illumination , 2009, ACM Trans. Graph..

[20]  Steve Marschner,et al.  Position-normal distributions for efficient rendering of specular microstructure , 2016, ACM Trans. Graph..

[21]  Yuting Yang,et al.  Approximate Program Smoothing Using Mean‐Variance Statistics, with Application to Procedural Shader Bandlimiting , 2017, Comput. Graph. Forum.

[22]  Marc Olano,et al.  LEAN mapping , 2010, I3D '10.

[23]  Eero P. Simoncelli,et al.  Image quality assessment: from error visibility to structural similarity , 2004, IEEE Transactions on Image Processing.

[24]  Franklin C. Crow,et al.  Summed-area tables for texture mapping , 1984, SIGGRAPH.

[25]  Lance Williams,et al.  Pyramidal parametrics , 1983, SIGGRAPH.

[26]  Hujun Bao,et al.  Automatic shader simplification using surface signal approximation , 2014, ACM Trans. Graph..

[27]  Franklin C. Crow,et al.  The aliasing problem in computer-generated shaded images , 1977, Commun. ACM.

[28]  Michael Toksvig Mipmapping Normal Maps , 2005, J. Graph. Tools.

[29]  Jason Lawrence,et al.  Genetic programming for shader simplification , 2011, ACM Trans. Graph..

[30]  Pierre Poulin,et al.  Linear efficient antialiased displacement and reflectance mapping , 2013, ACM Trans. Graph..

[31]  James T. Kajiya,et al.  The rendering equation , 1986, SIGGRAPH.