APP下载

基于数学物理方法和纹理作用的火焰模拟*

2016-03-15王双双许化强白成杰

计算机与数字工程 2016年2期

王双双 许化强 白成杰

(山东师范大学物理与电子科学学院 济南 250014)



基于数学物理方法和纹理作用的火焰模拟*

王双双许化强白成杰

(山东师范大学物理与电子科学学院济南250014)

摘要通过分析比较火焰模拟的几种常用方法,提出一种基于数学物理方法与纹理绘制相结合的火焰模拟方法。首先,对N-S方程进行求解,并采用交错网格的方式进行离散化处理,计算出每个固定网格节点的状态量变化;然后,由温度场数据进行火焰颜色转换;最后,采用纹理绘制的方法对火焰进行渲染。实验表明,算法具有可行性和有效性。

关键词火焰模拟; 数学物理方法; 纹理绘制; 温度场

Flame Simulation Based on Method of Mathematical Physics and Texture Effect

WANG ShuangshuangXU HuaqiangBAI Chengjie

(School of Physics and Electronics, Shandong Normal University, Jinan250014)

AbstractThrough the analysis of the several commonly used methods of flame simulation, a method of flame simulation combined the method of mathematical physics simulation method and texture mapping is proposed. Firstly, the Navier-Stokes equation is solved, together with method of staggered grid to manipulate the discretization, the volume change of the state of each fixed grid nodes is changed; Then, the flame color is converted by the temperature field data; Finally, the method of texture mapping is used to render the flame. Experiments show that the algorithm is feasible and valid.

Key Wordsflame simulation, method of mathematical physics, texture rendering, temperature field

Class NumberTP391.9

1引言

火焰模拟就是通过设计算法在计算机中生成火焰效果,是计算机图形学的重要研究分支,目前已经广泛应用于很多领域,如影视、航空航天、游戏开发、计算机动画等。火焰具有非常不规则的外观形状[1],其运动规律比较复杂,在燃烧的过程中受到很多因素的影响,如何比较逼真地模拟出火焰的动态效果,在计算机图形学应用领域,具有非常重要的研究价值和意义。

本文采用基于数学物理方法和纹理技术相结合的方法,通过对N-S方程的求解和离散化,使用纹理绘制技术对火焰进行渲染以此来提高速度,使火焰的模拟效果更加符合视觉效果。

2相关工作

2007年,耿维忠等[2]在纹理技术的基础上提出基于视频的动态纹理合成方法,减少了计算量,增强了真实感,能够实时合成。……

登录APP查看全文