针对传统的环境光遮挡算法中不能自适应的问题,提出了基于GPU自适应的环境遮挡算法。该算法充分利用了GPU并行计算技术和离屏渲染技术,快速计算出适合所载入场景的自适应步长;并将传统环境遮挡采样方法和抖动采样的思想相结合,对采样方法进行了改进;同时也简化了传统环境光遮挡算法中最终遮挡值的计算。实验结果表明,该方法不局限于特定场景,不需要对场景进行预处理,可以准确高效的计算环境光的遮挡情况,并且实现实时绘制。
To overcome adaptive problem of traditional ambient occlusion,adaptive ambient occlusion algorithm is proposed.The algorithm is implemented in parallel with utilizing the SIMD characteristic of the GPU and off-screen technique,and fast determines the suitable sampling step.Furthermore,combining traditional with jitter sampling method,an adaptive sampling is implemented and the final ambient occlusion computing is simplified.The experimental results show that the algorithm doesn't rely on special situation or any pre-processing,and it can be used to rending very efficiently and accurately.