J4 ›› 2011, Vol. 49 ›› Issue (04): 713-716.

• 计算机科学 • 上一篇    下一篇

GPU上具有复杂光照烟雾动画的绘制

李伟伟1,2, 郭晓新1, 陈轶1   

  1. 1. 吉林大学 计算机科学与技术学院, 长春 130012; 2. 山东青年政治学院 信息工程系, 济南 250014
  • 收稿日期:2010-08-19 出版日期:2011-07-26 发布日期:2011-08-16
  • 通讯作者: 郭晓新 E-mail:guoxx@jlu.edu.cn

Simulation of Smoke Animation with Complex Light on GPU

LI Weiwei1,2, GUO Xiao xin1, CHEN Yi1   

  1. 1. College of Computer Science and Technology, Jilin University, Changchun 130012, China;2. Department of Information Engineering, Shandong Youth University of Political Science, Jinan 250014, China
  • Received:2010-08-19 Online:2011-07-26 Published:2011-08-16
  • Contact: GUO Xiao xin E-mail:guoxx@jlu.edu.cn

摘要:

采用NavierStokes方程作为烟雾的物理模型方程, 基于图形处理器(GPU)实现了具有复杂光照效果和简单光照效果的烟雾动画实时绘制. 通过体素遍历整数算法加速烟雾的渲染并实现了烟雾的复杂光照. 实验结果对比表明, 复杂光照比简单光照模拟出的烟雾真实感更强. GPU远高于CPU对物理方程的求解速度, 使烟雾模拟实时性更强.

关键词: 图形处理器(GPU), NavierStokes方程, 体素遍历, 光照, 渲染

Abstract:

The simulation of smoke animation with simple light and complex light was realized on the basis of GPU. The motion of the smoke was controlled by NavierStokes Equations. An integer algorithm for traversing voxels was used to accelerate the speed of the simulation, and using this algorithm we r
ealized the complex light. The render effects of the two light algorithms are in stark contrast. Furthermore, when the velocity of GPU is contrasted with the CPU, the difference is very apparent. These experiments obviously demonstrate the  advantage of GPU.

Key words: graphic processing unit (GPU), NavierStokes equations, voxel traversal, light, render

中图分类号: 

  • TP391