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

10 shadow volumes
SMART_READER_LITE
LIVE PREVIEW

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 ,


slide-1
SLIDE 1

10 Shadow Volumes

Steve Marschner CS5625 Spring 2015

slide-2
SLIDE 2

References

F . Crow, “Shadow Algorithms for Computer Graphics.” SIGGRAPH 1977.

  • http://dx.doi.org/10.1145/965141.563901
  • M. McGuire, “Efficient Shadow Volume Rendering.” GPU Gems, 2004.
  • http://http.developer.nvidia.com/GPUGems/gpugems_ch09.html
  • M. Stich et al., “Efficient 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
slide-3
SLIDE 3

Problem cases for shadow maps

Morgan McGuire, GPU Gems

slide-4
SLIDE 4

Problem cases for shadow maps

Mark Kilgard, NVIDIA Inc.

slide-5
SLIDE 5

slide courtesy of Kavita Bala, Cornell University

Shadow Volumes

  • Crow 1977
  • Accurate shadows

Image courtesy of BioWare Neverwinter Nights

slide-6
SLIDE 6

slide courtesy of Kavita Bala, Cornell University

Shadow Volumes

  • Accurate shadows
  • Clever counting method using stencil buffer
  • Can cast shadows onto curved surfaces

Mark Kilgard, NVIDIA Inc.

slide-7
SLIDE 7

slide courtesy of Kavita Bala, Cornell University

Primitive Volume

slide-8
SLIDE 8

Geometry shader input

Stich et al. GPU Gems 3

Primitive type: 
 GL_TRIANGLES_ADJACENCY


  • r GL_TRIANGLE_STRIP_ADJACENCY
slide-9
SLIDE 9

slide courtesy of Kavita Bala, Cornell University

Creating Volumes

  • Geometry shader can generate volumes on fly
  • Send edges as degenerate triangle
  • Check if silhouette wrt light
slide-10
SLIDE 10

slide courtesy of Kavita Bala, Cornell University

Clip plane issues

slide-11
SLIDE 11

slide courtesy of Kavita Bala, Cornell University

Near Plane Clip Issues

  • Near plane clip discards part of shadow volume, messes up

count

slide-12
SLIDE 12

slide courtesy of Kavita Bala, Cornell University