摘要
提出一种有效的自适应阴影算法。该算法首先用多个有不同深度的阴影图来替换传统的一个阴影图,然后在绘制场景到屏幕之前,将场景绘制到一个屏幕缓冲纹理中,对其进行PCF和模糊处理,最后生成阴影。实验表明,该算法简单实用,不仅能够在保证大规模场景绘制速率的同时,生成令人满意的逼真实时阴影,还能达到在大规模场景中实时绘制阴影的效果。
Put forward an effective self-adaptive shadow algorithm. The algorithm first replaces the traditional shadowgraph with a shadowgraph with different depths, then draws the scene in a screen buffer texture and disposes it using PCF and fuzzy processing before drawing the scene in a screen and finally generates the shadow. Experiments clearly shows that the algorithm is simple and practical, it can not only guarantee the speed of large-scale scene drawing while generate satisfying verisimilitude real-time shadow, but also achieve the effectiveness of real-time drawing shadow in a large-scale scene drawing.
出处
《贵州师范大学学报(自然科学版)》
CAS
2012年第6期100-104,112,共6页
Journal of Guizhou Normal University:Natural Sciences
基金
supported in part by Development and Reform Commission of Guizhou Province,China under Grant 20102400
Economy and Informatization Commission of Guizhou Provice,China under Grant 20101013
关键词
阴影映射
阴影图
PCF
实时阴影
shadow mapping
shadowgraph
PCF
real-time shadow drawing