计算机应用 ›› 2010, Vol. 30 ›› Issue (05): 1398-1401.

• 典型应用 • 上一篇    下一篇

基于GPU粒子系统的大规模场景高效雨雪实时模拟

文治中1,刘直芳2,李纲3,粱威4   

  1. 1. 四川大学望江校区计算机学院
    2. 四川大学计算机学院图形图像研究所
    3. 四川大学 计算机学院;视觉合成图形图像技术国防重点学科实验室
    4.
  • 收稿日期:2009-10-15 修回日期:2009-12-16 发布日期:2010-05-04 出版日期:2010-05-01
  • 通讯作者: 文治中
  • 基金资助:
    国家863计划项目;国家863计划项目;国家自然科学基金资助项目

Realtime simulation of rain and snow in large-scale scene based on GPU particle system

  • Received:2009-10-15 Revised:2009-12-16 Online:2010-05-04 Published:2010-05-01
  • Contact: WEN Zhi-Zhong

摘要: 粒子系统实现的雨雪效果能有效增强三维场景的真实感,传统基于中央处理器(CPU)运算模拟的粒子系统占用了大量CPU运算时间,难以达到实时模拟的要求。为此提出了一种基于图形处理器的(GPU)运算的粒子系统来模拟的雨雪场景。该方法通过在GPU中重复使用消亡粒子在视点坐标系内生成新粒子,并在几何着色器中将粒子的点坐标转换为矩形坐标,将CPU从复杂庞大的几何运算中解放出来,从而大幅增加了场景绘制的微粒数,使雨雪场景模拟的实时性和逼真度得到增强。

关键词: 图形处理器, 粒子系统, 视点坐标系, 几何着色器, 雨雪场景

Abstract: Three-dimensional effect of rain and snow scenery realized by means of particle system can be greatly enhanced. Traditionally, the particle system based on CPU will occupy a considerable amount of CPU operation time so that it is hard to satisfy the need of realtime simulation. To resolve this problem, a particle system based on GPU was put forward to simulate rain and snow scenery. In this system, dead time particles were reused to form new particles in the eye coordinates. In the meantime, point position of particles was transformed to rectangle position in the Geometry Shader, so as to relieve CPU from the complex voluminous geometry operation. The number of particles in the scenery was largely increased, and thus enhancing the realtime effect and fidelity of the simulation.

Key words: Graphic Processing Unit (GPU), particle system, view coordinate, geometry shader, rain and snow scene