摘要
本文通过有效利用图形硬件图形处理单元(GPU)的运算能力和编程性,将大量计算从CPU中分离出来,实现了自然逼真而且高效的大规模波动草叶的实时渲染。利用GPU的顶点程序进行草叶的运动计算,利用GPU的片元程序进行静态阴影的计算。本文技术由OpenGL结合Cg编程实现,达到了自然逼真的渲染效果和较高的渲染效率。
This paper realized the natural and efficient rendering of massive waving grasses. With the effective using of computation capacity and programmable feature provided by graphics processing unit (GPU), most of the computation task from CPU is isolated. Vertex program is used for moving computation and fragment program is used for static shadow masking computation. These technologies have been realized by OpenGL and Cg programming and achieved vivid render effects and gain high render efficiency.
出处
《微计算机信息》
北大核心
2008年第15期293-295,共3页
Control & Automation
基金
2006年国家大学生创新训练计划