Abstract
This paper presents an efficient method to trace secondary rays in depth-of-field (DOF) rendering, which significantly enhances realism. Till now, the effects by secondary rays have been little addressed in real-time/interactive DOF rendering, because secondary rays have less coherence than primary rays, making them very difficult to handle. We propose novel measures to cluster secondary rays, and take a virtual viewpoint to construct a layered image-based representation for the objects that would be intersected by a cluster of secondary rays respectively. Therefore, we can exploit coherence of secondary rays in the clusters to speed up tracing secondary rays in DOF rendering. Results show that we can interactively achieve DOF rendering effects with reflections or refractions on a commodity graphics card.
Similar content being viewed by others
References
Rokita P (1996) Generating depth-of-field effects in virtual reality applications. IEEE Computer Graphics and its Applications 16(2):18–21
Scheuermann T. Advanced depth of field. http://developer.amd.com/wordpress/media/2012/10/Scheuermann_DepthOfField.pdf, July 2012.
Hammon J E. Practical post-process depth of field. In GPU Gems 3, Nyuyen H (ed.), Addison-Wesley Professional, 2007: 583-606. http://http.developer.nvidia.com/GPUGems3/gpugems3_ch28.html, July 2012.
Zhou T, Chen J, Pullen M (2007) Accurate depth of field simulation in real time. Computer Graphics Forum 26(1):15–23
Lee S, Kim GJ, Choi S (2009) Real-time depth-offield rendering using anisotropically filtered mipmap interpolation. IEEE Trans Visualization and Comput Graphics 15(3):453–464
Cook RL, Porter T, Carpenter L (1984) Distributed ray tracing. ACM SIGGRAPH Computer Graphics 18(3):137–145
Haeberli P, Akeley K (1990) The accumulation buffer: Hardware support for high-quality rendering. ACM SIGGRAPH Computer Graphics 24(4):309–318
Lee S, Eisemann E, Seidel H P. Depth-of-field rendering with multiview synthesis. ACM Transactions on Graphics, 2009, 28(5): Article No.134.
Lee S, Eisemann E, Seidel H P. Real-time lens blur effects and focus control. ACM Trans. Graphics, 2010, 29(4): Article No.65.
Hou Q, Qin H, Li W, Guo B, Zhou K. Micropolygon ray tracing with defocus and motion blur. ACM Transactions on Graphics, 2010, 29(4): Article No.64.
Hou QM, Sun X, Zhou K et al (2011) Memory-scalable GPU spatial hierarchy construction. IEEE Trans Visualization and Computer Graphics 17(4):466–474
Potmesil M, Chakravarty I (1981) A lens and aperture camera model for synthetic image generation. ACM SIGGRAPH Computer Graphics 15(3):297–305
Fatahalian K, Luong E, Boulos S et al. Data-parallel rasterization of micropolygons with defocus and motion blur. In Proc. HPG, Aug. 2009, pp.59–68.
Yu X, Wang R, Yu J (2010) Real-time depth of field rendering via dynamic light field generation and filtering. Computer Graphics Forum 29(7):2099–2107
Barsky B, Bargteil A, Garcia D, Klein S. Introducing vision-realistic rendering. In Proc. the 13th EGWR, Jun. 2002.
Kraus M, Strengert M (2007) Depth-of-field rendering by pyramidal image processing. Computer Graphics Forum 26(3):645–654
Kass M, Lefohn A, Owens J. Interactive depth of field using simulated diffusion on a GPU. Technical Report, Pixar Animation Studios, 2006.
Kosloff T, Barsky B. An algorithm for rendering generalized depth of field effects based on simulated heat diffusion. In Proc. the 2007 ICCSA, Aug. 2007, pp.1124–1140.
Lee S, Kim GJ, Choi S (2008) Real-time depth-of-field rendering using splatting on per-pixel layers. Computer Graphics Forum 27(7):1955–1962
Kosloff T J, TaoMW, Barsky B A. Depth of field postprocessing for layered scenes using constant-time rectangle spreading. In Proc. Graphics Interface, May 2009, pp.39–46.
Barsky B, Tobias M, Chu D et al (2005) Elimination of artifacts due to occlusion and discretization problems in image space blurring techniques. Graphical Models 67(6):584–599
Chen J, Wang B, Wang Y et al (2011) Efficient depth-of-field rendering with adaptive sampling and multiscale reconstruction. Computer Graphics Forum 30(6):1667–1680
Lehtinen J, Aila T, Chen J, Laine S, Durand F. Temporal light field reconstruction for rendering distribution effects. ACM Transactions on Graphics, 2011, 30(4): Article No.55.
Laine S, Aila T, Karras T, Lehtinen J. Clipless dual-space bounds for faster stochastic rasterization. ACM Transactions on Graphics, 2011, 30(4): Article No.106.
Ragan-Kelley J, Lehtinen J, Chen J, Doggett M, Durand F. Decoupled sampling for graphics pipelines. ACM Transactions on Graphics, 2011, 30(3): Article No.17.
Roger D, Assarsson U, Holzschuch N. Whitted ray-tracing for dynamic scenes using a ray-space hierarchy on the GPU. In Proc. the 18th EGSR, Jun. 2007, pp.99–110.
Rosen P, Popescu V, Hayward K, Wyman C (2011) Non-pinhole approximations for interactive rendering. IEEE Computer Graphics and Its Applications 31(6):68–83
Popescu V, Sacks E, Mei C (2006) Sample-based cameras for feed forward reflection rendering. IEEE Transactions on Visualization and Computer Graphics 12(6):1590–1600
Décoret X (2005) N-buffers for efficient depth map query. Computer Graphics Forum 24(3):393–400
Liu F, Huang M, Liu X et al. Efficient depth peeling via bucket sort. In Proc. HPG, Aug. 2009, pp.51–57.
Author information
Authors and Affiliations
Corresponding author
Additional information
This work was partly supported by the National Natural Science Foundation of China under Grant Nos. 60773026 and 60833007, and the Knowledge Innovation Program of the Chinese Academy of Sciences.
Electronic Supplementary Material
Below is the link to the electronic supplementary material.
Rights and permissions
About this article
Cite this article
Xie, GF., Sun, X. & Wang, WC. Interactive Depth-of-Field Rendering with Secondary Rays. J. Comput. Sci. Technol. 28, 490–498 (2013). https://doi.org/10.1007/s11390-013-1350-4
Received:
Revised:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11390-013-1350-4