Efficient Depth of Field Rasterization Using a Tile Test Based on Half‐Space Culling

For depth of field (DOF) rasterization, it is often desired to have an efficient tile versus triangle test, which can conservatively compute which samples on the lens that need to execute the sample‐in‐triangle test. We present a novel test for this, which is optimal in the sense that the region on the lens cannot be further reduced. Our test is based on removing half‐space regions of the (u, v) ‐space on the lens, from where the triangle definitely cannot be seen through a tile of pixels. We find the intersection of all such regions exactly, and the resulting region can be used to reduce the number of sample‐in‐triangle tests that need to be performed. Our main contribution is that the theory we develop provides a limit for how efficient a practical tile versus defocused triangle test ever can become. To verify our work, we also develop a conceptual implementation for DOF rasterization based on our new theory. We show that the number of arithmetic operations involved in the rasterization process can be reduced. More importantly, with a tile test, multi‐sampling anti‐aliasing can be used which may reduce shader executions and the related memory bandwidth usage substantially. In general, this can be translated to a performance increase and/or power savings.

[1]  Anoop Gupta,et al.  The Design and Analysis of a Cache Architecture for Texture Mapping , 1997, ISCA.

[2]  Eric Enderton,et al.  Real-time stochastic rasterization on conventional GPU architectures , 2010, HPG '10.

[3]  Tomas Akenine-Möller,et al.  Stochastic rasterization using time-continuous triangles , 2007, GH '07.

[4]  F. Durand,et al.  Temporal light field reconstruction for rendering distribution effects , 2011, ACM Trans. Graph..

[5]  Jaakko Lehtinen,et al.  Hemispherical Rasterization for Self-Shadowing of Dynamic Objects , 2004, Rendering Techniques.

[6]  Meng Yu,et al.  Camera Models and Optical Systems Used in Computer Graphics: Part II, Image-Based Techniques , 2003, ICCSA.

[7]  Jaakko Lehtinen,et al.  Decoupled sampling for graphics pipelines , 2011, TOGS.

[8]  Jaakko Lehtinen,et al.  Clipless dual-space bounds for faster stochastic rasterization , 2011, ACM Trans. Graph..

[9]  Pat Hanrahan,et al.  Data-parallel rasterization of micropolygons with defocus and motion blur , 2009, High Performance Graphics.

[10]  Hans-Peter Seidel,et al.  Directed Edges - A Scalable Representation for Triangle Meshes , 1998, J. Graphics, GPU, & Game Tools.

[11]  Tomas Akenine-Möller,et al.  Backface Culling for Motion Blur and Depth of Field , 2010, J. Graphics, GPU, & Game Tools.

[12]  Timo Aila,et al.  A local image reconstruction algorithm for stochastic rendering , 2011, SI3D.

[13]  H. Seidel,et al.  Real-time lens blur effects and focus control , 2010, ACM Trans. Graph..

[14]  William R. Mark,et al.  A lazy object-space shading architecture with decoupled sampling , 2010, HPG '10.

[15]  Robert L. Cook,et al.  The Reyes image rendering architecture , 1987, SIGGRAPH.

[16]  Juan Pineda,et al.  A parallel algorithm for polygon rasterization , 1988, SIGGRAPH.

[17]  Timo Aila,et al.  Conservative and Tiled Rasterization Using a Modified Triangle Set-Up , 2005, J. Graph. Tools.

[18]  GuptaAnoop,et al.  The design and analysis of a cache architecture for texture mapping , 1997 .

[19]  Samuli Laine,et al.  Two Methods for Fast Ray‐Cast Ambient Occlusion , 2010, Comput. Graph. Forum.

[20]  Bob McNamara,et al.  Tiled polygon traversal using half-plane edge functions , 2000, Workshop on Graphics Hardware.

[21]  Z.S. Hakura,et al.  The Design And Analysis Of A Cache Architecture For Texture Mapping , 1997, Conference Proceedings. The 24th Annual International Symposium on Computer Architecture.

[22]  Meng Yu,et al.  Camera Models and Optical Systems Used in Computer Graphics: Part I, Object-Based Techniques , 2003, ICCSA.

[23]  Robert L. Cook,et al.  Distributed ray tracing , 1984, SIGGRAPH.

[24]  Tomoyuki Nishita,et al.  Continuous tone representation of three-dimensional objects taking account of shadows and interreflection , 1985, SIGGRAPH '85.

[25]  Seth J. Teller,et al.  Real-time occlusion culling for models with large occluders , 1997, SI3D.

[26]  Tomas Akenine-Möller,et al.  Hierarchical stochastic motion blur rasterization , 2011, HPG '11.

[27]  Wolfgang Heidrich,et al.  Interleaved Sampling , 2001, Rendering Techniques.