针对经典粒子系统火焰模拟的真实性和实时性的关键问题,给出了一种新的基于粒子系统的火焰绘制算法,粒子属性的初始化由发射器确定,并对粒子的颜色、位置、生存期等属性的更新进行了优化,粒子的运动变化由低压点控制,粒子由四角面片表示,结合纹理映射技术进行三维火焰渲染,纹理采用分时间段映射来模拟火焰的燃烧过程,实验证明该算法模拟火焰的运动和外观效果真实,在普通的PC平台上利用标准图形系统即可获得实时的绘制速度.
To solve the key problem of real time and reality in fire simulation based on particle system, a new fire model based on particle system was proposed in this paper. In this model, the attributes of particles are initialized by the emitter. In addition, the change of the attributes such as colour, position, lifetime were optimized, and the move of particles was controlled by low pressure points. The type of particles was squares. We used the texture mapping technology to improve the effect and efficiency of rendering, and the textures were changed according to the time interval to simulate the the actual combustion process. Experimental results show that our algorithm achieves real - time simulation to both the animation and appearance of fire in consumer PC platform.