高级检索

高次幂函数逼近的阴影图反走样算法

Shadow Map Anti-aliasing Algorithm with High-order Power Function Approximation

  • 摘要: 针对传统阴影图算法由于阴影贴图分辨率的约束而在阴影的边缘会出现走样现象的问题, 提出一种基于高次幂函数逼近的预滤波阴影图反走样算法.该算法使用高次幂函数来逼近传统阴影图中的深度比较函数, 并对高次幂函数进行泰勒展开, 在展开的各项上分别进行预滤波;在绘制过程中, 利用泰勒展开式计算得到的数值代替传统阴影图中的深度比较函数得到的二值结果, 从而实现了对阴影边缘的反走样.实验结果表明, 该算法在现有图形硬件中能够达到很好的效果.

     

    Abstract: Conventional shadow mapping algorithm is restricted by the resolution of the shadow map, so aliasing will occur at the edge of the shadows when the resolution of the shadow map is not high enough.To address this problem, this paper presents a new pre-filtering anti-aliasing algorithm based on the high-order power function approximation of the conventional binary-value depth test function.The high-order power function is then approximated by the Taylor expansion which can be further pre-filtered for each of the items.The final shadow value is generated with the first several items of the Taylor expansion.Experimental results show that the algorithm can be used to achieve good results with the current graphics hardware.

     

/

返回文章
返回