图形硬件加速的实时阴影生成方法
Hardware-Accelerated Method for Real-Time Shadow Generation
-
摘要: 针对虚拟环境中阴影计算时间耗费较大的问题,提出了利用图形硬件特性加速阴影绘制的方法.算法基于图像空间,采用三遍绘制方法.第3遍绘制用于计算物体的真实感光照,并对阴影边界的走样现象进行了处理.利用硬件的图形处理单元GPU的处理能力和OpenGL特性扩展,在GPU编程和通用OpenGL实现两个层次上进行了实验,实验结果表明,三遍绘制方法产生的光照和阴影效果更真实,得到的阴影边界更平滑.Abstract: A shadow generation method using graphics hardware features is presented. It accelerates the shadow computation process and can render it in real-time. The method is image-based, and adopts triple pass rendering. In the third pass, lighting effect of geometric scene is computed,and anti-aliasing techniques used to generate smooth shadow boundaries. The method is implemented in general OpenGL programming and high level GPU programming, with powerful GPU programmable capacity and some useful OpenGL extensions on modern graphics hardware. Experimental results indicate that the 3-pass method can generate shadows with smooth boundaries, while lighting computation makes shadow effects more realistic.
下载: