2011届本科
毕业论文
基于粒子
系统三维喷泉实现
系 院:
计算机科学系
学生:徐 伟
学 号:0934150111
专 业:
软件工程
年 级:2009级
完成日期:2011年5月
指导教师:王春华
摘 要
虚拟场景中,自然景物的模拟一直是计算机图形学领域中研究的内容。喷泉、瀑布、火焰、水流、雨、雪等具有不规则性、动态性和随机性,这些自然景物的模拟十分复杂困难,具有一定的挑战性。同时也是对计算机图形学有更进一步的认识和了解。
模拟自然景物的方法一般有两种:一种是基于物理建模技术的方法;另一种是采用粒子系统建模的方法。本论文采用后一种方法对喷泉的三维效果进行研究。在三维空间中对物体运动变换--喷泉模拟,在Visual Studio2005的环境下,通过使用C++语言和MFC编程框架来模拟喷泉的情况,实现三维空间中物体运动变换模拟分析。该系统能够在三维效果的基础上进行自由视角转换,任意距离的拉近拉远,展示了三维模拟的真实性。该喷泉系统的实现一方面是基于粒子系统的介绍过程,通过不同角度来观察喷泉,展现出不同的景观。另一方面是对现实的三维真实模拟具有一定的指导意义和使用意义。
喷泉效果可以大大增强虚拟现实系统的沉浸感,粒子系统是实现喷泉效果的有效方法。本文以OpenGL 三维图形函数库为绘图工具,详细讨论了模型中粒子的属性及其变化,实现了具有较强真实感的动态变化和抛物变化等喷泉特征,采用了纹理映射和视线跟踪技术进行三维喷泉渲染;同时,采用Line方式取代传统的Point方式渲染粒子实现喷泉模拟。该方式模拟喷泉比较真实,速度快,在普通的微机上可以得到令人满意的效果。
关键词:虚拟场景;OpenGL;粒子系统;喷泉
Abstract
Virtual scene, the natural scenery simulation has been in the field of computer graphics research content. Fountain, waterfalls, fire, water, rain, snow has more irregular, dynamic and random city, these natural scenery simulation is very difficult, have certain challenging. In the meanwhile, it is also have further to know and understand the computer graphics.
Simulation the natural scenery method has two kinds: one kind is based on physical modeling methods; another kind is to use particle system modeling method. Using a method to fountain after the 3D effect for research in this paper. In three-dimensional space of object motion transform - fountains in Visual Studio2005 environment, through the use of C++ language and MFC programming framework to simulate fountain, objects in 3D space simulation analysis and kinematics transformation. This system can be in a 3D effect is conducted on the basis of freedom of the change of perspective, any distance, showing the play far closer 3D simulation of authenticity. This fountain system realization, one is introduced based on particle system through different angles during observation fountain, exhibit different landscape. On the other hand is 3D real simulation of reality has certain directive significance and use significance.
Fountain effect can greatly enhance the virtual reality system immersed sense, particle system