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.
Similar content being viewed by others
References
Chong H, Gortler S (2004) A lixel for every pixel. In: Proceedings fifteenth Eurographic workshop on rendering
Crow FC (1977) Shadow algorithms for computer graphics. In: George J (ed) Proceedings of SIGGRAPH’ 77, vol 11. pp 242–248
Dimitrov R (2007) Cascaded shadow maps, NVIDIA Corporation’07, Available at http://developer.nvidia.com
King G (2004) Shadow mapping algorithms, Technical report, NVIDIA corporation. Available at http://download.nvidia.com
Kolic I (2010) Camera space shadow maps (CSSM), Available at http://free-zg.t-com.hr/cssm/
Kozlov S (2004) Perspective shadow maps: care and feeding. In GPU Gems: programming techniques, tips and tricks for real-time graphics, pp 217–244
Lauritzen A, Salvi M, Lefohn A (2011) Sample distribution shadow maps. In: Symposium on Interactive 3D graphics and games (I3D’ 11), pp 97–102
Lefohn AE, Sengupta S, Owens JD (2007) Resolution-matched shadow maps, ACM trans. graph. 26, 4, Article 20, October 2007
Martin T (2008) Trapezoidal shadow maps (TSM)—Recipe http://www.comp.nus.edu.sg/~tants/tsm/TSM_recipe.html
Martin T, Tan TS (2004) Anti-aliasing and continuity with trapezoidal shadow maps. In: Proceedings of the Eurographics symposium on rendering
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–198
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 Columbia
Stamminger M, Drettakis G (2002) Perspective shadow maps. In: Proceedings of SIGGRAPH, pp 557–562
Williams L (1978) Casting curved shadows on curved surfaces. In: Proceedings of SIGGRAPH’ 78, vol 12, pp 270–274
Wimmer M, Scherzer D, Purgathofer W (2004) Light space perspective shadow maps. In: Proceedings of Eurographics symposium on rendering
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–318
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.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Kolic, I., Mihajlovic, Z. Camera space shadow maps for large virtual environments. Virtual Reality 16, 289–299 (2012). https://doi.org/10.1007/s10055-012-0207-4
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10055-012-0207-4