Virtual Reality

, Volume 16, Issue 4, pp 289–299 | Cite as

Camera space shadow maps for large virtual environments

Original Article

Abstract

This paper presents a new single-pass shadow mapping technique that achieves better quality than the approaches based on perspective warping, such as perspective, light-space, and trapezoidal shadow maps. The proposed technique is appropriate for real-time rendering of large virtual environments that include dynamic objects. By performing operations in camera space, this solution successfully handles the general and the dueling frustum cases and produces high-quality shadows even for extremely large scenes. This paper also presents a fast nonlinear projection technique for shadow map stretching that enables complete utilization of the shadow map by eliminating wastage. The application of stretching results in a significant reduction in unwanted perspective aliasing, commonly found in all shadow mapping techniques. Technique is compared with other shadow mapping techniques, and the benefits of the proposed method are presented. The proposed shadow mapping technique is simple and flexible enough to handle most of the special scenarios. An API for a generic shadow mapping solution is presented. This API simplifies the generation of fast and high-quality shadows.

Keywords

Shadow maps Real-time shadows Dynamic shadows Virtual environments 

Notes

Acknowledgments

The used test scenes are a ‘Pavilion Garden’ model from Google 3D warehouse, credit goes to Tan Tunny. Citadel and palm tree models are from Google 3D warehouse as well.

References

  1. Chong H, Gortler S (2004) A lixel for every pixel. In: Proceedings fifteenth Eurographic workshop on renderingGoogle Scholar
  2. Crow FC (1977) Shadow algorithms for computer graphics. In: George J (ed) Proceedings of SIGGRAPH’ 77, vol 11. pp 242–248Google Scholar
  3. Dimitrov R (2007) Cascaded shadow maps, NVIDIA Corporation’07, Available at http://developer.nvidia.com
  4. King G (2004) Shadow mapping algorithms, Technical report, NVIDIA corporation. Available at http://download.nvidia.com
  5. Kolic I (2010) Camera space shadow maps (CSSM), Available at http://free-zg.t-com.hr/cssm/
  6. Kozlov S (2004) Perspective shadow maps: care and feeding. In GPU Gems: programming techniques, tips and tricks for real-time graphics, pp 217–244Google Scholar
  7. Lauritzen A, Salvi M, Lefohn A (2011) Sample distribution shadow maps. In: Symposium on Interactive 3D graphics and games (I3D’ 11), pp 97–102Google Scholar
  8. Lefohn AE, Sengupta S, Owens JD (2007) Resolution-matched shadow maps, ACM trans. graph. 26, 4, Article 20, October 2007Google Scholar
  9. Martin T (2008) Trapezoidal shadow maps (TSM)—Recipe http://www.comp.nus.edu.sg/~tants/tsm/TSM_recipe.html
  10. Martin T, Tan TS (2004) Anti-aliasing and continuity with trapezoidal shadow maps. In: Proceedings of the Eurographics symposium on renderingGoogle Scholar
  11. Mo Q, Popescu V, Wyman C (2007) The soft shadow occlusion camera. In: Proceedings of the 15th pacific conference on computer graphics and applications (PG’ 07), IEEE computer society, pp 189–198Google Scholar
  12. Nealen AV (2002) Shadow mapping and shadow volumes: recent developments in real-time shadow rendering, project report for advanced computer graphics: image based rendering (CS514), University of British ColumbiaGoogle Scholar
  13. Stamminger M, Drettakis G (2002) Perspective shadow maps. In: Proceedings of SIGGRAPH, pp 557–562Google Scholar
  14. Williams L (1978) Casting curved shadows on curved surfaces. In: Proceedings of SIGGRAPH’ 78, vol 12, pp 270–274Google Scholar
  15. Wimmer M, Scherzer D, Purgathofer W (2004) Light space perspective shadow maps. In: Proceedings of Eurographics symposium on renderingGoogle Scholar
  16. Zhang F, Sun H, Xu L, Lun K (2006) Parallel-split shadow maps for large-scale virtual environments. In: Proceedings of the 2006 ACM international conference on virtual reality continuum and its applications, ACM Press, pp 311–318Google Scholar

Copyright information

© Springer-Verlag London Limited 2012

Authors and Affiliations

  1. 1.Systemcom d.o.o.ZagrebCroatia
  2. 2.Faculty of Electrical Engineering and ComputingUniversity of ZagrebZagrebCroatia

Personalised recommendations