Owing to its generality and efficiency, Cascaded Shadow Maps (CSMs) has an important role in real-time shadow rendering in large scale and complex virtual environments. However, CSMs suffers from redundant rendering...Owing to its generality and efficiency, Cascaded Shadow Maps (CSMs) has an important role in real-time shadow rendering in large scale and complex virtual environments. However, CSMs suffers from redundant rendering problem -- objects are rendered undesirably to different shadow map textures when view direction and light direction are not perpendicular. In this paper, we present a light space cascaded shadow maps algorithm. The algorithm splits a scene into non-intersecting layers in light space, and generates one shadow map for each layer through irregular frustum clipping and scene organization, ensuring that any shadow sample point never appears in multiple shadow maps. A succinct shadow determination method is given to choose the optimal shadow map when rendering scenes. We also combine the algorithm with stable cascaded shadow maps and soft shadow algorithm to avoid shadow flicking and produce soft shadows. The results show that the algorithm effectively improves the efficiency and shadow quality of CSMs by avoiding redundant rendering, and can produce high-quality shadow rendering in large scale dynamic environments with real-time performance.展开更多
Spatial analysis,including viewshed analysis,is an important aspect of the Digital Earth system.Viewshed analysis is usually performed on a large scale,so efficiency is important in any Digital Earth application makin...Spatial analysis,including viewshed analysis,is an important aspect of the Digital Earth system.Viewshed analysis is usually performed on a large scale,so efficiency is important in any Digital Earth application making these calculations.In this paper,a real-time algorithm for viewshed analysis in 3D scenes is presented by using the parallel computing capabilities of a graphics processing unit(GPU).In contrast to traditional algorithms based on line-of-sight,this algorithm runs completely within the programmable 3D visualization pipeline to render 3D terrains with viewshed analysis.The most important difference is its integration of the viewshed calculation with the rendering module.Invisible areas are rendered as shadows in the 3D scene.The algorithm process is paralleled by rasterizer units in the graphics card and by vertex and pixel shaders executed on the GPU.We have implemented this method in our 3D Digital Earth system with the DirectX 9.0c API and tested on some consumer-level PC platforms with interactive framerates and high image quality.Our algorithm has been widely used in related systems based on Digital Earth.展开更多
基金supported by the National Natural Science Foundation of China under Grant No.60873159Program for New Century Excellent Talents in University under Grant No.NCET-07-0039+1 种基金the National High-Tech Research & Development 863 Program of China under Grant No.2009AA012103the Beijing Municipal Natural Science Foundation under Grant No.4102030
文摘Owing to its generality and efficiency, Cascaded Shadow Maps (CSMs) has an important role in real-time shadow rendering in large scale and complex virtual environments. However, CSMs suffers from redundant rendering problem -- objects are rendered undesirably to different shadow map textures when view direction and light direction are not perpendicular. In this paper, we present a light space cascaded shadow maps algorithm. The algorithm splits a scene into non-intersecting layers in light space, and generates one shadow map for each layer through irregular frustum clipping and scene organization, ensuring that any shadow sample point never appears in multiple shadow maps. A succinct shadow determination method is given to choose the optimal shadow map when rendering scenes. We also combine the algorithm with stable cascaded shadow maps and soft shadow algorithm to avoid shadow flicking and produce soft shadows. The results show that the algorithm effectively improves the efficiency and shadow quality of CSMs by avoiding redundant rendering, and can produce high-quality shadow rendering in large scale dynamic environments with real-time performance.
基金This work is supported in part by 863 program grants 2009AA12Z227,2009AA12Z215also by the MOST Program(Grant No.2008BAH23B04).
文摘Spatial analysis,including viewshed analysis,is an important aspect of the Digital Earth system.Viewshed analysis is usually performed on a large scale,so efficiency is important in any Digital Earth application making these calculations.In this paper,a real-time algorithm for viewshed analysis in 3D scenes is presented by using the parallel computing capabilities of a graphics processing unit(GPU).In contrast to traditional algorithms based on line-of-sight,this algorithm runs completely within the programmable 3D visualization pipeline to render 3D terrains with viewshed analysis.The most important difference is its integration of the viewshed calculation with the rendering module.Invisible areas are rendered as shadows in the 3D scene.The algorithm process is paralleled by rasterizer units in the graphics card and by vertex and pixel shaders executed on the GPU.We have implemented this method in our 3D Digital Earth system with the DirectX 9.0c API and tested on some consumer-level PC platforms with interactive framerates and high image quality.Our algorithm has been widely used in related systems based on Digital Earth.