摘要
粒子系统是用来模拟不规则运动物体的一种比较有效的方法。首先阐述了粒子系统的基本原理,对烟花粒子系统的基本模型和燃放原理进行了分析。然后利用粒子系统的基本原理,结合烟花燃放的具体特点,建立了基于粒子系统与纹理映射的烟花动态模型。模拟了烟花从上升到爆炸,再到消失的过程。在已建好的模型中结合VisualC++6.0提供的鼠标消息函数,通过鼠标来控制烟花燃放的位置。实验结果表明,该方法满足实时性和逼真性的要求,使得烟花模型可控性、灵活性加强。
Particle system is an effective method in simulating irregular moving object.First,the principle of particle system is introduced and made of a further study on the basic model of firework particle system and the principle of letting off fireworks.Then a model is set up based on the particle system and texture mapping,used of the basic idea of particle systems,combined with the specifci characteristics of fireworks,simulating the fireworks from up to an explosion,then the process of disappearing.The model using the mouse message function provide by Visual C++6.0,through the mouse to control the location of the fireworks.Experiments show that this method can meet the requirements of real time and reality,making the model of fireworks controlled and flexible.
出处
《科学技术与工程》
2010年第13期3121-3124,3129,共5页
Science Technology and Engineering
基金
安徽省自然科学基金(090412045)资助
关键词
粒子系统
烟花模拟
纹理映射
可控位置
particle system fireworks simulating feature of texture location controlled