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

  • Authors:
  • Tomas Akenine-Möller;Robert Toth;Jacob Munkberg;Jon Hasselgren

  • Affiliations:
  • Intel Corporation and Lund University, Department of Computer Science, Lund, Sweden {tomas.akenine-moller@intel.com, robert.m.toth@intel.com, jacob.munkberg@intel.com, jon.n.hasselgren@intel.com};Intel Corporation;Intel Corporation;Intel Corporation

  • Venue:
  • Computer Graphics Forum
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

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. © 2012 Wiley Periodicals, Inc.