基于粒子系统的0-9数字形状烟花模拟
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
对自然景物和模糊物体的模拟一直以来都是计算机图形学领域中一项具有挑战性的研究课题,包括对烟花、雨、雪、火、烟、雾、沙、尘等自然景物动态的模拟实现与绘制。在天气预报、宇宙航空、制作数字高清字幕、广告装潢、3D游戏等领域也有着广泛的应用。由于自然景物运动过程的随机性、表面纹理的丰富性以及表面外形的各种不规则性,使得模拟方法十分地复杂。在模拟自然景物和不规则物体的方法中粒子系统是一个很典型的方法,它能够充分的展现出自然景物的动态性质和随机性质,它的优点是对于那些传统计算机图形学都难以构造的复杂物体,可以利用比较简单的粒子元素实现它们的构造,这种方法在实时性和真实感方面都达到较高程度。
     粒子系统的基本原理是采用大量的微小粒子定义所要描述的对象,并在第一帧就为这些微小粒子赋予一定属性,比如位置、速度、加速度、生命周期、颜色等等;然后,随着时间的推移,粒子经历生成、活动和死亡的历程,生存期间粒子按照一定方式运动着,粒子的属性不断更新,最终形成一幅运动的图像。本论文首先描述了粒子系统的基本原理,对现有的烟花粒子系统模型进行了分析,简单阐述了现有粒子系统的优缺点;其次通过进一步研究分析烟花粒子系统的理论模型和燃放烟花的运动过程,改进了传统烟花模型的模拟,采用基于粒子系统的模拟方法,与VC++和OpenGL开发平台相结合,通过对烟花形状建模的拆分与拼接实现了0-9数字形状动态、奥运五环形状、菊花形状等形状的烟花模拟;形状烟花动态模拟的核心技术是依据高等数学理论中各种曲线方程对每个形状的每个部分进行建模,拼接每个部分的轨迹方程形成想要的烟花形状图案。随着不断更新时间和烟花粒子的运动,爆炸后生成的烟花小粒子也不断地更新着速度、颜色、大小、空间位置等属性,当烟花小粒子的生命值衰减到0或粒子运动的空间位置超出了预先设定的位置时,烟花粒子消亡,也意味着动态烟花消失;与OpenGL中的色彩混合技术、显示列表技术、纹理映射技术相结合共同处理背景,形状烟花动态模拟在真实感方面得到了提高;最后对实验结果进行分析,在夜色背景下产生的0-9数字形状烟花、奥运五环形状烟花等形态逼真,实时性能好,同时确保了安全生产、成本降低、实用性强,在烟花应用领域有着重大的意义。
Simulation of fuzzy objects and nature scenery has always been a challenging research topic in the field of computer graphics, including simulation and rendering of fireworks, rain, snow, fire, smoke, fog, sand, dust and other dynamic natural scenery. In weather forecasting, aerospace, making digital high-definition title, advertisement decoration,3D games and other fields also have a wide range of applications. Due to the properties of the natural scenery, such as the randomness of the movement process, the richness of the surface texture, various irregularity of surface appearance, the simulation method is very complicated. Particle system is a typical method to simulate the irregular objects and nature scenery, it can fully show the dynamic and randomness of nature scenery. Particle system has the advantages of using a simpler particle element to construct complex objects that traditional computer graphics is difficult to construct. This method has reached a higher degree in reality and real-time.
     The basic principle of particle system is using many tiny particles defines the object that need to be simulated. These tiny particles are endowed with corresponding attributes at the initial moment, such as position, velocity, acceleration, life, color and so on. Then, with the passage of time, these particles experiences generation, activities and death progress, during the period of survival these particles moves in a certain way, their properties constantly update, so as to form a dynamic picture. Firstly this paper introduces the basic principle of particle system, analyses the existing firework model that based on the particle system, briefly explains the advantages and disadvantages of the existing particle system. Secondly, through further research and analysis about the theory model of particle system and the motion process of fireworks, the traditional simulation model for the fireworks has been improved. In doing so, according to the simulation method based on the particle system combined with VC++and OpenGL development platform, this paper come true the dynamic fireworks simulation of0-9digital shape, Olympic rings shape, chrysanthemum shape and so on by spliting and splicing of fireworks shape model. The key technology of shaping fireworks dynamic simulation is modeling each part of each digital parameters shape based on various curve equation in higher mathematics theory, joining together the trajectory equation of each part to form the shape pattern that we want. Along with the continuous renewal of time and fireworks particles in constant motion, it products much little firework particles with the type, color, position, shape has been changing. When firework particles' life value decay to0or the spatial location of particle movement exceed the pre-set position, the firework particles dead, it also means that the shaping dynamic fireworks disappeared. The simulation of fireworks has improved in reality through the combination of color blending technology, display list technology, texture mapping etc in OpenGL. In the end, we analyze the experimental results:simulation of0-9digital shaping, Olympic rings shaping dynamic fireworks in the night background can create vivid images and come up to the real-time requirements. At the same time, improved the safety of production, reduced the cost of economy. It reflects the significant meaning in the fireworks technology application.
引文
[1]李哲,苏莹,宁云隆等.基于粒子系统的虚拟烟花的建模与绘制[J].长春工业大学学报(自然科学版),2010,31(04):459-462.
    [2]Fedkiw R, Stam J, Jensen HW. Visual simulation of smoke[C].//Proceedings of The 28th Annual Conference on Computer Graphics and Interactive Techniques. New York:ACM Press,2001:15-22.
    [3]罗军.基于流的粒子系统的设计与实现[D].四川:四川师范大学计算机软件与理论系,2007.
    [4]唐好选,李娜.基于粒子系统的瀑布模拟[J].计算机应用研究,2008,25(7):
    2194-2196.
    [5]吴国宝,汪继文.基于粒子系统的心形烟花模拟[J].计算机技术与发展,2012,22(11):89-92.
    [6]吴龙周,蔡晋生.三维实时真实感动画技术在飞行器视景仿真中的应用[J].导弹与航天运载技术,1998(3):47-52.
    [7]Beaudoin P.Paquet S,Poulin P. Realistic and controllable fire simulation[C].// Proceedings of Graphics Interface. Ontario:Canadian Information Processing Society,2001:159-166.
    [8]Csuri C,Hackathorn R,Parent R,et al.Towards an interactive high visual complexity animation system [C].//ACM SIGGRAPH Computer Graphics. New York:ACM,1979,13(2):289-299.
    [9]Smith A R, Blinn J F. Blue screen matting[C].//Proceedings of The 23rd Annual Conference on Computer Graphics and Interactive Techniques. New York:ACM. 1996:259-268.
    [10]Loke TS, Tan D, Seah HS, et al. Rendering fireworks displays[J].IEEE Computer Graphics and Applications,1992,12(3):33-43.
    [11]Badler NI, O'Rourke J, Toltzis H. A spherical representation of a human body for visualizing movement[J]. Proceedings of The IEEE,1979,67(10):1397-1403.
    [12]Reeves W T. Particle systems--a technique for modeling a class of fuzzy objects[C].//Proceedings of SIGGRAPH. New York:ACM Press,1983:359-376.
    [13]石贱弟,姜昱明.基于分形几何的动态云模拟[J].计算机仿真,2006,23(4):197-200.
    [14]Muzy A, Innocenty E, Santucci JF, etc. Optimization of cell spaces simulation for the modeling of fire spreading[C].//IEEE Simulation Symposium.2003:289-296.
    [15]Stam J, Fiume E. Depicting fire and other gaseous phenomena using diffusion processes[C].//Proceedings of ACM SIGGRPAH,1995:129~136.
    [16]Dobashi Y,Kaneda K.Yamashita H,etc.A simple,efficient method for realistic animation of clouds[C].//Proceedings of SIGGRPAH.New Orleans:Louisiana, 2000:19-28.
    [17]周永霞.基于物理的烟雾动画研究[D].浙江:浙江大学计算机科学与技术学院.2006.
    [18]万华根,金小刚,彭群生.基于物理模型的实时喷泉水流运动模拟[J].计算机学报,1998,21(9):774-779.
    [19]柳有权.基于物理的计算机动画及其加速技术的研究[D].北京:中国科学院软件研究所,2005.
    [20]柳有权,刘学慧等.基于物理的流体模拟动画综述[J].计算机辅助设计与图形学学报.2005,17(12):2581-2589.
    [21]Inakage M. A simple model of flames[C],//Proceedings Computer Graphics International.1989:71-81.
    [22]Wei X, Li W, Mueller K, et al. Simulating fire with texture splats[C]// Proceedings of IEEE Visualization 2002 Conference.IEEE,2002:227-234.
    [23]王继州,顾耀林.火焰的快速模拟[J].计算机辅助设计与图形学学报.2007,1(19):102-106.
    [24]张芹,吴慧中等.火焰、烟、云等不规则物体的建模方法研究综述[J].中国图像图形学报,2000,5(3):186-190.
    [25]朱长征,谌海新.云建模方法现状、发展趋势及在军事领域的应用[J].计算机应用,2003,9(23):22-24.
    [26]徐利明,姜星明,基于粒子系统与OpenGL的实时雨雪模拟[J].计算机仿 真,2005,7(22):242-245.
    [27]尹星云,胡长俊.基于OpenGL的烟花粒子系统设计[J].电脑开发与应用.2006,19(7):28-30.
    [28]高玉建,李帅,郝爱民.一种真实感焰火实时模拟方法及其GPU实现[J].系统仿真学报,2008,20(24):6725-6729.
    [29]李清畅,杨高波,王小静.基于粒子系统的焰火建模及其算法仿真[J].系统仿真学报,2009,21(8):2179-2184.
    [30]Chiba N. Two dimensional visual simulations of flames, smoke and the spread of fire[J]. The Journal of Visualization and Computer Animation,1994,5(1):37-53.
    [31]张芹,吴慧中等.基于分形特征爆炸烟雾的等墒运动模型[J].计算机辅助设计与图形学学报,2001,13(10):873-875.
    [32]Johanson C. Real-time water rendering-introducing the projected grid concept[D].Switzer-land:Lund University Master Degree Paper,2004.
    [33]Craig W.R,Flocks,etc. A distributed behavioral model[J].Computer Graphics, 1987,21(4):25-34.
    [34]甘露,王文永,孙博.基于粒子系统的烟花建模方法研究[J].长春师范学院学报(自然科学版),2008,27(1):63-66.
    [35]胡文平,汪继文.基于粒子系统的三叶玫瑰动态烟花模拟[J].计算机工程,2010,36(22):286-288.
    [36]姚莉,肖健,刘平.基于粒子系统的礼花模拟方法[J].东南大学学报(自然科学版),2010,40(6):1185-1189.
    [37]徐孝凯.C++基础教程[M].北京:清华大学出版社,2004.
    [38]Stevens A, Walnum C,林丽闽等.标准C++宝典[M].北京:电子工业出版社,2001.
    [39]朱洪波Visual C++6.0完全自学宝典[M].北京:清华大学出版社,2008.
    [40]向世明OpenGL编程与实例[M].北京:电子工业出版社,1999.
    [41]和平鸽工作室OpenGL高级编程与可视化系统开发(系统开发篇)[M].北京:中国水利水电出版社,2003.
    [42]张芹,张健,阂建平.提高粒子系统实时性的方法研究[J].计算机工程,2003,29(18):46-48.
    [43]Wright RS, Lipchak B, Haemel N, et al. OpenGL超级宝典[M].北京:人民邮电出版社,2010.
    [44]Dave Shreiner,Mason Woo,Jackie Neider,et al. OpenGL编程指南[M].徐波等译.北京:机械工业出版社,2008:63-84.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700