Abstract:
According to the principle of particle system, this paper uses texture mapping, color blending and display list technology to control motion curve of fireworks particle. Refered to three-leaf parametric equation, it makes fireworks particle appear three-leaf form. The size, color and location of three-leaf rose dynamic fireworks renews with time. The particles die, and three-leaf rose dynamic fireworks disappear until the color of fireworks particle is the same as night background. Simulation result shows that three-leaf rose dynamic fireworks can create vivid images and comes up to the real-time requirements.
Key words:
particle system,
color blending,
texture mapping,
display list
摘要: 根据粒子系统原理,采用纹理映射、色彩混合、显示列表技术控制烟花粒子的运动轨迹。参照三叶玫瑰参数方程,使爆炸后的烟花粒子在空中呈现三叶玫瑰状,产生的三叶玫瑰动态烟花的大小、颜色、位置随着时间推移不断更新,直至烟花粒子与夜色背景颜色一致时,粒子死亡,三叶玫瑰烟花消失。实验结果表明,三叶玫瑰动态烟花形态逼真,实时性好。
关键词:
粒子系统,
色彩混合,
纹理映射,
显示列表
CLC Number:
HU Wen-Beng, HONG Ji-Wen. Three-leaf Rose Dynamic Fireworks Simulation Based on Particle System[J]. Computer Engineering, 2010, 36(22): 286-288.
胡文平, 汪继文. 基于粒子系统的三叶玫瑰动态烟花模拟[J]. 计算机工程, 2010, 36(22): 286-288.