计算机工程 ›› 2010, Vol. 36 ›› Issue (22): 286-288.doi: 10.3969/j.issn.1000-3428.2010.22.102

• 开发研究与设计技术 • 上一篇    下一篇

基于粒子系统的三叶玫瑰动态烟花模拟

胡文平a,汪继文b   

  1. (安徽大学 a. 计算智能与信号处理教育部重点实验室;b. 计算机科学与技术学院,合肥 230039)
  • 出版日期:2010-11-20 发布日期:2010-11-18
  • 作者简介:胡文平(1982-),男,硕士研究生,主研方向:动画模拟,数值分析,流体力学;汪继文,教授、博士、博士生导师
  • 基金项目:
    安徽省自然科学基金资助项目(090412045)

Three-leaf Rose Dynamic Fireworks Simulation Based on Particle System

HU Wen-pinga, WANG Ji-wenb   

  1. (a. Ministry of Education Key Laboratory of Intelligent Computing & Signal Processing;b. College of Computer Science & Technology, Anhui University, Hefei 230039, China)
  • Online:2010-11-20 Published:2010-11-18

摘要: 根据粒子系统原理,采用纹理映射、色彩混合、显示列表技术控制烟花粒子的运动轨迹。参照三叶玫瑰参数方程,使爆炸后的烟花粒子在空中呈现三叶玫瑰状,产生的三叶玫瑰动态烟花的大小、颜色、位置随着时间推移不断更新,直至烟花粒子与夜色背景颜色一致时,粒子死亡,三叶玫瑰烟花消失。实验结果表明,三叶玫瑰动态烟花形态逼真,实时性好。

关键词: 粒子系统, 色彩混合, 纹理映射, 显示列表

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

中图分类号: