[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/2024156.2024187acmconferencesArticle/Chapter ViewAbstractPublication Pagessiggraph-asiaConference Proceedingsconference-collections
research-article

An efficient alias-free shadow algorithm for opaque and transparent objects using per-triangle shadow volumes

Published: 12 December 2011 Publication History

Abstract

This paper presents a novel method for generating pixel-accurate shadows from point light-sources in real-time. The new method is able to quickly cull pixels that are not in shadow and to trivially accept large chunks of pixels thanks mainly to using the whole triangle shadow volume as a primitive, instead of rendering the shadow quads independently as in the classic Shadow-Volume algorithm. Our CUDA implementation outperforms z-fail consistently and surpasses z-pass at high resolutions, although these latter two are hardware accelerated, while inheriting none of the robustness issues associated with these methods. Another, perhaps even more important property of our algorithm, is that it requires no pre-processing or identification of silhouette edges and so robustly and efficiently handles arbitrary triangle soups. In terms of view sample test and set operations performed, we show that our algorithm can be an order of magnitude more efficient than z-pass when rendering a game-scene at multi-sampled HD resolutions. We go on to show that the algorithm can be trivially modified to support textured, semitransparent and colored semi-transparent shadow-casters and that it can be combined with either depth-peeling or stochastic transparency to also support transparent shadow receivers. Compared to recent alias-free shadow-map algorithms, our method has a very small memory footprint, does not suffer from load-balancing issues, and handles omni-directional lights without modification. It is easily incorporated into any deferred rendering pipeline and combines many of the strengths of shadow maps and shadow volumes.

Supplementary Material

MOV File (a153-sintorn.mov)

References

[1]
Abrash, M. 2009. Rasterization on larrabee. Dr. Dobbs Journal.
[2]
Aila, T., and Akenine-Möller, T. 2004. A hierarchical shadow volume algorithm. In Proc. of the ACM SIGGRAPH/EUROGRAPHICS conf. on Graphics hardware, HWWS '04, 15--23.
[3]
Aila, T., and Laine, S. 2004. Alias-free shadow maps. In Proc. of EGSR 2004, 161--166.
[4]
Aldridge, G., and Woods, E. 2004. Robust, geometry-independent shadow volumes. In Proc. of 2nd international conf. on Computer graphics and interactive techniques in Australasia and South East Asia, GRAPHITE '04, 250--253.
[5]
Annen, T., Mertens, T., Seidel, H.-P., Flerackers, E., and Kautz, J. 2008. Exponential shadow maps. In Proc. of graphics interface 2008, GI '08, 155--161.
[6]
Arvo, J. 2004. Tiled shadow maps. In Proc. of Computer Graphics International 2004, 240--246.
[7]
Bilodeau, W., and Songy, M., 1999. Real time shadows. Creativity 1999, Creative Labs Inc. Sponsored game developer conferences, Los Angeles, California, and Surrey, England.
[8]
Carmack, J., 2000. Z-fail shadow volumes. Internet Forum.
[9]
Carpenter, L. 1984. The a -buffer, an antialiased hidden surface method. SIGGRAPH Comput. Graph. 18 (January), 103--108.
[10]
Chan, E., and Durand, F. 2004. An efficient hybrid shadow rendering algorithm. In Proc. of the EGSR, 185--195.
[11]
Crow, F. C. 1977. Shadow algorithms for computer graphics. SIGGRAPH Comput. Graph. 11 (July), 242--248.
[12]
Donnelly, W., and Lauritzen, A. 2006. Variance shadow maps. In Proc. of i3D 2006, I3D '06, 161--165.
[13]
Eisemann, E., Assarsson, U., Schwarz, M., and Wimmer, M. 2009. Casting shadows in real time. In ACM SIGGRAPH Asia 2009 Courses, SIGGRAPH Asia 2009.
[14]
Enderton, E., Sintorn, E., Shirley, P., and Luebke, D. 2010. Stochastic transparency. IEEE TVCG 99.
[15]
Epic Games, 2011. Unreal development kit: Epic citadel. http://www.udk.com/showcase-epic-citadel.
[16]
Everitt, C., and Kilgard, M. J., 2002. Practical and robust stenciled shadow volumes for hardware-accelerated rendering. Published online at http://developer.nvidia.com.
[17]
Everitt, C., 2001. Interactive order-independent transparency. Published online at http://www.nvidia.com/object/Interactive_Order_Transparency.html.
[18]
Fernando, R. 2005. Percentage-closer soft shadows. In ACM SIGGRAPH 2005 Sketches, SIGGRAPH 2005.
[19]
Forest, V., Barthe, L., Guennebaud, G., and Paulin, M. 2009. Soft textured shadow volume. Computer Graphics Forum, EGSR 2009 28, 4, 1111--1121.
[20]
Fuchs, H., Goldfeather, J., Hultquist, J. P., Spach, S., Austin, J. D., Brooks, Jr., F. P., Eyles, J. G., and Poulton, J. 1985. Fast spheres, shadows, textures, transparencies, and image enhancements in pixel-planes. SIGGRAPH Comput. Graph. 19 (July), 111--120.
[21]
Hasselgren, J., and Akenine-Moller, T. 2007. Textured shadow volumes. Journal of Graphics Tools, 59--72.
[22]
Heidmann, T. 1991. Real shadows, real time. Iris Universe 18, 28--31. Silicon Graphics, Inc.
[23]
Hornus, S., Hoberock, J., Lefebvre, S., and Hart, J. C. 2005. ZP+: correct Z-pass stencil shadows. In ACM symp. on Inter. 3D Graphics and Games, I3D, April, 2005, 195--202.
[24]
Johnson, G. S., Lee, J., Burns, C. A., and Mark, W. R. 2005. The irregular z-buffer: Hardware acceleration for irregular data structures. ACM Trans. on Graphics 24, 4, 1462--1482.
[25]
Kim, T.-Y., and Neumann, U. 2001. Opacity shadow maps. In Proc. EG Workshop on Rendering Techniques, 177--182.
[26]
Kim, B., Kim, K., and Turk, G. 2008. A shadow-volume algorithm for opaque and transparent nonmanifold casters. journal of graphics, gpu, and game tools 13, 3, 1--14.
[27]
Laine, S. 2005. Split-plane shadow volumes. In Proc. of Graphics Hardware 2005, 23--32.
[28]
Lauritzen, A., Salvi, M., and Lefohn, A. 2011. Sample distribution shadow maps. In Proc., I3D '11, 97--102.
[29]
Lefohn, A. E., Sengupta, S., and Owens, J. D. 2007. Resolution matched shadow maps. ACM TOG 26, 4, 20:1--20:17.
[30]
Lloyd, B., Wend, J., Govindaraju, N. K., and Manocha, D. 2004. Cc shadow volumes. In EGSR/Eurographics Workshop on Rendering Techniques, 197--206.
[31]
Lloyd, D. B., Govindaraju, N. K., Quammen, C., Molnar, S. E., and Manocha, D. 2008. Logarithmic perspective shadow maps. ACM TOG 27 (November), 106:1--106:32.
[32]
Lokovic, T., and Veach, E. 2000. Deep shadow maps. In Proc. SIGGRAPH 2000 (Aug.), SIGGRAPH 2000, 385--392.
[33]
McCormack, J., and McNamara, R. 2000. Tiled polygon traversal using half-plane edge functions. In Proc. of ACM workshop on Graphics hardware, HWWS '00, 15--21.
[34]
McGuire, M., and Enderton, E. 2011. Colored stochastic shadow maps. In Proc. of i3D'11 (Februari.).
[35]
Olano, M., and Greer, T. 1997. Triangle scan conversion using 2d homogeneous coordinates. In Proc. of ACM workshop on Graphics hardware, 89--95.
[36]
Olsson, O., and Assarsson, U. 2011. Improved ray hierarchy alias free shadows. Technical Report 2011:09, Chalmers University of Technology, may.
[37]
Reeves, W. T., Salesin, D. H., and Cook, R. L. 1987. Rendering antialiased shadows with depth maps. In Proc., SIGGRAPH 87, 283--291.
[38]
Sintorn, E., and Assarsson, U. 2009. Hair self shadowing and transparency depth ordering using occupancy maps. In Proc., i3D '09, 67--74.
[39]
Sintorn, E., Eisemann, E., and Assarsson, U. 2008. Sample-based visibility for soft shadows using alias-free shadow maps. CG Forum (EGSR 2008) 27, 4 (June), 1285--1292.
[40]
Stamminger, M., and Drettakis, G. 2002. Perspective shadow maps. In Proc., SIGGRAPH 2002, 557--562.
[41]
Williams, L. 1978. Casting curved shadows on curved surfaces. SIGGRAPH Comput. Graph. 12 (August), 270--274.
[42]
Wimmer, M., Scherzer, D., and Purgathofer, W. 2004. Light space perspective shadow maps. In Rendering Techniques 2004 (Proc. EGSR), 143--151.
[43]
Yuksel, C., and Keyser, J. 2008. Deep opacity maps. Computer Graphics Forum (Proc. of EUROGRAPHICS 2008) 27, 2.
[44]
Zhang, F., Sun, H., Xu, L., and Lun, L. K. 2006. Parallel-split shadow maps for large-scale virtual environments. In Proc. of the 2006 ACM international conf. on Virtual reality continuum and its applications, VRCIA '06, 311--318.
[45]
Zioma, R. 2003. Reverse extruded shadow volumes. In ShaderX 2 : Shader Programming Tips & Tricks with DirectX 9, W. Engel, Ed. Wordware Publishing, 587--593.

Cited By

View all
  • (2022)Real-time Modeling of Dynamic Terrain Shadows based on Multilevel Ray CastingProgramming and Computing Software10.1134/S036176882203010048:3(190-198)Online publication date: 1-Jun-2022
  • (2021)Comparison of Modern Omnidirectional Precise Shadowing Techniques Versus Ray TracingComputer Graphics Forum10.1111/cgf.1442541:1(106-121)Online publication date: 3-Dec-2021
  • (2018)Scalable real-time shadows using clustering and metric treesProceedings of the Eurographics Symposium on Rendering: Experimental Ideas & Implementations10.2312/sre.20181175(83-93)Online publication date: 1-Jul-2018
  • Show More Cited By

Index Terms

  1. An efficient alias-free shadow algorithm for opaque and transparent objects using per-triangle shadow volumes

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    SA '11: Proceedings of the 2011 SIGGRAPH Asia Conference
    December 2011
    730 pages
    ISBN:9781450308076
    DOI:10.1145/2024156
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    In-Cooperation

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 12 December 2011

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. alias-free
    2. real time
    3. shadows
    4. transparency

    Qualifiers

    • Research-article

    Conference

    SA '11
    Sponsor:
    SA '11: SIGGRAPH Asia 2011
    December 12 - 15, 2011
    Hong Kong, China

    Acceptance Rates

    Overall Acceptance Rate 178 of 869 submissions, 20%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)12
    • Downloads (Last 6 weeks)1
    Reflects downloads up to 03 Mar 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2022)Real-time Modeling of Dynamic Terrain Shadows based on Multilevel Ray CastingProgramming and Computing Software10.1134/S036176882203010048:3(190-198)Online publication date: 1-Jun-2022
    • (2021)Comparison of Modern Omnidirectional Precise Shadowing Techniques Versus Ray TracingComputer Graphics Forum10.1111/cgf.1442541:1(106-121)Online publication date: 3-Dec-2021
    • (2018)Scalable real-time shadows using clustering and metric treesProceedings of the Eurographics Symposium on Rendering: Experimental Ideas & Implementations10.2312/sre.20181175(83-93)Online publication date: 1-Jul-2018
    • (2016)Deep partitioned shadow volumes using stackless and hybrid traversalsProceedings of the Eurographics Symposium on Rendering: Experimental Ideas & Implementations10.5555/3056507.3056522(73-83)Online publication date: 22-Jun-2016
    • (2015)Partitioned Shadow VolumesComputer Graphics Forum10.1111/cgf.1258334:2(549-559)Online publication date: 1-May-2015
    • (2014)Sub-pixel shadow mappingProceedings of the 18th meeting of the ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games10.1145/2556700.2556709(103-110)Online publication date: 14-Mar-2014
    • (2014)Exact reachability analysis for planning skew-line needle arrangements for automated brachytherapy2014 IEEE International Conference on Automation Science and Engineering (CASE)10.1109/CoASE.2014.6899376(524-531)Online publication date: Aug-2014
    • (2012)BibliographyShadow Algorithms Data Miner10.1201/b11901-9(197-238)Online publication date: 23-Aug-2012

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media