摘要
针对基于CPU并利用粒子系统实现火焰模拟中出现粒子计算时间长、渲染效果不真实等现象,提出一种基于图形处理器(GPU)加速的油田井口事故火焰模拟方案。将火焰粒子的属性存储到纹理中,在GPU中对火焰的粒子属性进行初始化,并更新粒子的属性。分析火焰的模型,并对火焰的内焰和外焰分别进行贴图。最后使用渲染到顶点缓冲区的方法实现粒子的绘制。仿真试验结果表明,利用该方案能大幅增加场景绘制的粒子数,使火焰模拟的实时性和逼真度得到增强。
Flame simulation based-particle system is an important part of simulation,currently,CPU-based flame simulation program is proposed by using the particle system,there exist inadequate situations that particle computing time is long,rendering effect is untrue.In the program GPU is used to accelerate the simulation of oil wellhead fire accident.The properties of the particles are stored in the texture.The particle properties of the flame is initialized in the GPU to update the properties of particles.Model of flame is analyzed to map inner flame and outside flame.Vertex buffer method is used to draw the particles.The CPU is released from the complexity of geometric operations,thus it greatly increases the number of drawn particles,real-time simulation of the flame and it implement are enhanced.
出处
《长江大学学报(自然科学版)》
CAS
2011年第2期73-75,281,共3页
Journal of Yangtze University(Natural Science Edition)
关键词
图形处理器
粒子系统
火焰模拟
虚拟现实
graphic processing unit
particle system
flame simulation
virtual reality