文档介绍:摘 要
在计算机虚拟仿真领域,应用粒子系统模拟不规则模糊物体的方法已经得到
了广泛应用。随着游戏玩家对场景环境要求的日益提高,粒子系统已经成为计算
机游戏领域不可或缺的关键技术。然而,传统的粒子系统在整个场景使用单一的
运动方程来控制粒子运动,对于和视点距离不同的粒子而言,增加了很多不必要
的计算量,影响了绘制速度。因此,研究出一种对粒子运动比较灵活的控制方法,
对于提高绘制速度和模拟真实度方面具有积极的意义。
本文通过对粒子系统的研究,把基于空间感知的 AM 模型应用于粒子系统
中,用来解决整个场景中粒子运动方程单一而带来的运算量大和模拟效果不好等
问题。本文主要完成了以下几个方面的工作:
AM 模型引入粒子系统绘制中,对全部粒子进行层次划
分,克服了传统粒子系统对粒子运动的控制所采用单一运动方程,带来了很多不
必要的计算量等问题。本文按照感知强度的强弱将全部粒子进行层次划分,针对
不同的层次来采用不同的运动方程控制粒子的运动。
,本文依据 GPU 特点设计了
二级缓冲,解决由于粒子数目巨大而给 CPU 带了的负担,同时,将对粒子属性
和运动方程的计算于 GPU 内完成,这样做可以更高效地对系统资源进行利用。
同时还采用公告板技术(BillBoarding)对粒子系统的绘制效率进行优化。
在 Windows XP 操作系统中,使用 Visual C++、OpenGL 和 Direct3D 编程对
本文方法进行实验,分别针对大规模场景中的雨和雪两种不同模型进行模拟。实
验证明,本方法对粒子进行合理的层次划分,根据被模拟现象的不同设计出适合
各个层次粒子的运动方程,并在 GPU 上采用二级缓冲技术并行计算,提高了系
统的拟真度,减少了 CPU 的运算负担,最终克服了传统粒子系统粒子数目过少
不能适应大场景下的应用以及传统粒子系统绘制效率低等问题。
关键词:粒子系统;AM 模型;GPU;纹理映射;二级缓冲
Abstract
The application of Particle System Simulation irregular fuzzy objects has been
widely applied in the field of computer Virtual Simulation. While the increasing
requirements of the game, Particle System has become the key technology. But for the
particle which has different distance from viewpoint, traditional Particle System in the
entire scene using a single particle equation of motion to control particles` movement,
which increases the calculation and impact the rendering speed. So the development
of a more flexible controlling the movement of the particle method, is for improving
the rendering speed and virtual reality in terms of positive significance.
Through the research of Particle System, the AM model, which is applied to
Particle System, used to solve the problem of redundant computation which is
produced by single equation of motion in the whole scene. It also can bring a great
simulation