在基于实时绘制的各种应用中,百分比邻近滤波软影算法可以高效地绘制视觉真实的软影效果.针对该算法中存在的3个主要问题,提出一种具有高质量阴影滤波的高效百分比邻近滤波软影算法.首先通过多尺度阴影图数据结构精简搜索区域,提升了遮挡物深度估计的正确性;然后使用基于GPU的线性四叉树遍历算法快速计算遮挡物平均深度,节省了大量的纹理采样开销,大大提高算法效率;最后采用光滑阴影滤波算法,解决了百分比邻近滤波算法中的走样瑕疵.将文中算法集成入多阴影图算法框架可以取得接近物理真实的软影效果.实验结果表明,该算法在效率和阴影质量方面均取得了显著的进步.
Percentage closer soft shadow (PCSS) is a prevalent algorithm in real-time applications due to its simplicity and efficiency.But soft shadows generated via PCSS often suffer from artifacts due to incorrect occluder estimation,meanwhile its performance drops down dramatically when the size of light source becomes large.Furthermore,the shadows also suffer from severe aliasing artifacts.In this paper we propose an efficient percentage closer soft shadow algorithm with smooth filtering.Multi-scale shadow maps are adopted to estimate search area accurately and calculate average blocker depth efficiently using a linear GPU quad-tree traversal algorithm.Finally,smooth soft shadows are generated via a high quality filtering algorithm.By integrating the proposed algorithm into a multiview shadow mapping framework,high quality shadows can be generated which approaches to the ground truth.The experimental results show that the proposed algorithm can generate smoother soft shadows with higher frame rates compared to the previous techniques.