欢迎访问《图学学报》 分享到:

图学学报

• 计算机图形学与应用 • 上一篇    下一篇

软阴影算法及实现

  

  • 出版日期:2010-08-31 发布日期:2015-08-11

Algorithm and Implementation of Soft Shadow

  • Online:2010-08-31 Published:2015-08-11

摘要: 提出了一个实时软阴影算法。首先以光源为视点生成包含场景深度信息的“阴影映射图”,然后从观察者视点将场景渲染到一个屏幕纹理缓冲中,进而对此纹理采用percentage closer filtering (PCF)策略进行反走样,最后采用高斯滤波对阴影进行模糊处理。该算法不仅得到了较好的软阴影效果,并且也有较好的实时性,可适应实时动态变化场景的需求。

关键词: :计算机应用, 阴影映射, 阴影映射图, 软阴影, 反走样

Abstract: An effective real-time soft shadow algorithm is presented. First, the shadow map from the light view is generated. Then the scene is rendered into a screen buffer texture rather than the real screen. Next, the percentage closer filtering (PCF) is used to remove the aliasing on the edge of shadow. Finally, the Gaussian filter is used to blur the screen. The results indicate that the algorithm not only produces a good soft shadow, but also has real-time effect for dynamic scenes.

Key words: computer application, shadow mapping, shadow map, soft shadow, antialiasing