摘要
本文根据粒子系统的基本框架实现了多种效果的瀑布模拟。模型利用粒子系统API提供的函数,使用点、线元、多边形等方式渲染粒子,通过调节参数即可模拟多种瀑布效果,并结合动力学原理,使瀑布流动效果更加真实。实验证明,该方法模拟瀑布速度快,使用少量代码就能在普通PC机上获得令人满意的效果。该瀑布模型灵活性强,易于移植和扩展。
This paper presents a simulation method of waterfall based on the particle system of adjustable parameters. The model makes use of the functions provided by Particle System API and simulates multiple kinds of waterfalls which ren- ders with point, line or polygon by changing the parameters. In order to improve the effect of the simulation, the model combines with the principle of kinematics. The experimental results prove this simulation method is efficient by only using a small quantity of codes in a common PC. And the model is flexible, easy-to -port and expandable.
出处
《计算机工程与科学》
CSCD
2008年第10期100-102,138,共4页
Computer Engineering & Science
基金
国家863计划资助项目(2007AA701505)
关键词
粒子系统
粒子系统API
瀑布模拟
particle system
particle system API
waterfall simulation