• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2008, Vol. 30 ›› Issue (10): 100-102.

• 论文 • 上一篇    下一篇

基于粒子系统的可调参数的瀑布模拟

聂俊岚 陈莉   

  • 出版日期:2008-10-01 发布日期:2010-05-19

  • Online:2008-10-01 Published:2010-05-19

摘要:

本文根据粒子系统的基本框架实现了多种效果的瀑布模拟。模型利用粒子系统API提供的函数,使用点、线元、多边形等方式渲染粒子,通过调节参数即可模拟多种瀑布效果,并结合动力学原理,使瀑布流动效果更加真实。实验证明,该方法模拟瀑布速度快,使用少量代码就能在普通PC机上获得令人满意的效果。该瀑布模型灵活性强,易于移植和扩展。

关键词: 粒子系统 粒子系统API 瀑布模拟

Abstract:

This paper presents a simulation method of waterfall based on the particle system of adjustable parameters. The model makes use of the functions provi ded by Particle System API and simulates multiple kinds of waterfalls which ren- ders with point, line or polygon by changing the parameters. In order t o improve the effect of the simulation, the model combines with the principle of kinematics. The experimental results prove this simulation method is ef  ficient by only using a small quantity of codes in a common PC. And the model is flexible, easy-to -port and expandable.

Key words: particle system, particle system API ;waterfall simulation