10 shadow volumes
play

10 Shadow Volumes Steve Marschner CS5625 Spring 2015 References F - PowerPoint PPT Presentation

10 Shadow Volumes Steve Marschner CS5625 Spring 2015 References F . Crow, Shadow Algorithms for Computer Graphics. SIGGRAPH 1977. http://dx.doi.org/10.1145/965141.563901 M. McGuire, E ffi cient Shadow Volume Rendering. GPU Gems ,


  1. 10 Shadow Volumes Steve Marschner CS5625 Spring 2015

  2. References F . Crow, “Shadow Algorithms for Computer Graphics.” SIGGRAPH 1977. • http://dx.doi.org/10.1145/965141.563901 M. McGuire, “E ffi cient Shadow Volume Rendering.” GPU Gems , 2004. • http://http.developer.nvidia.com/GPUGems/gpugems_ch09.html M. Stich et al., “E ffi cient and Robust Shadow Volumes Using Hierarchical Occlusion Culling and Geometry Shaders.” GPU Gems 3 , 2008. • http://http.developer.nvidia.com/GPUGems3/gpugems3_ch11.html E. Lengyel, “Projection Matrix Tricks.” Presentation at GDC 2007. • http://www.terathon.com/gdc07_lengyel.pdf

  3. Problem cases for shadow maps Morgan McGuire, GPU Gems

  4. Problem cases for shadow maps Mark Kilgard, NVIDIA Inc.

  5. Shadow Volumes • Crow 1977 • Accurate shadows Image courtesy of BioWare Neverwinter Nights slide courtesy of Kavita Bala, Cornell University

  6. Shadow Volumes • Accurate shadows • Clever counting method using stencil buffer • Can cast shadows onto curved surfaces Mark Kilgard, NVIDIA Inc. slide courtesy of Kavita Bala, Cornell University

  7. Primitive Volume slide courtesy of Kavita Bala, Cornell University

  8. Geometry shader input Primitive type: 
 GL_TRIANGLES_ADJACENCY 
 or GL_TRIANGLE_STRIP_ADJACENCY Stich et al. GPU Gems 3

  9. Creating Volumes • Geometry shader can generate volumes on fly • Send edges as degenerate triangle • Check if silhouette wrt light slide courtesy of Kavita Bala, Cornell University

  10. Clip plane issues slide courtesy of Kavita Bala, Cornell University

  11. Near Plane Clip Issues • Near plane clip discards part of shadow volume, messes up count slide courtesy of Kavita Bala, Cornell University

  12. slide courtesy of Kavita Bala, Cornell University

Recommend


More recommend