摘要
设计了一个通用的粒子系统,基于面向对象的思想描述了一套粒子系统应用程序接口(API)的设计。该粒子系统API采用合理的数据结构,设计了一套高效的粒子生成、管理方法,并采用高速OpenGL渲染引擎,使之能够满足在普通PC机上模拟不规则的自然景物的需求。同时,它还具有相当的灵活性和可扩展性。该粒子系统被用于火焰的模拟中,仿真实验表明模拟出的火焰具有较强的真实感。
A universal particle system is designed. Based on the idea of object-based programming, an application program interface is described for particle system. It adopts a reasonable data structure. A set of efficient production and management methods for particles is designed, and fast OpenGL rendering engine is utilized, which meets the requirements for fuzzy objects simulation on ordinary PC. Moreover,the API has high flexibihty and scal- ability. The particle system is used in fire simulation, and the simulation results demonstrate that the simulated flame is true.
出处
《科学技术与工程》
2008年第15期4174-4178,共5页
Science Technology and Engineering
关键词
粒子系统
通用
面向对象
火焰模拟
particle system universal object-based fire simulation