《计算机应用》唯一官方网站 ›› 2022, Vol. 42 ›› Issue (12): 3876-3883.DOI: 10.11772/j.issn.1001-9081.2021091700

• 多媒体计算与计算机仿真 • 上一篇    

基于波环粒子的实时水波仿真方法

顾浩杰1, 张军1,2()   

  1. 1.江南大学 人工智能与计算机学院,江苏 无锡 214122
    2.江苏省媒体设计与软件技术重点实验室,江苏 无锡 214122
  • 收稿日期:2021-09-29 修回日期:2022-01-31 接受日期:2022-03-30 发布日期:2022-12-21 出版日期:2022-12-10
  • 通讯作者: 张军
  • 作者简介:顾浩杰(1997—),男,江苏南通人,硕士研究生,主要研究方向:计算机仿真、计算机图形学
  • 基金资助:
    国家自然科学基金资助项目(61772013)

Real-time water wave simulation method based on wave annulus particles

Haojie GU1, Jun ZHANG1,2()   

  1. 1.College of Artificial Intelligence and Computer Science,Jiangnan University,Wuxi Jiangsu 214122,China
    2.Jiangsu Key Laboratory of Media Design & Software Technology,Wuxi Jiangsu 214122,China
  • Received:2021-09-29 Revised:2022-01-31 Accepted:2022-03-30 Online:2022-12-21 Published:2022-12-10
  • Contact: Jun ZHANG
  • About author:GU Haojie, born in 1997, M. S. candidate. His research interests include computer simulation, computer graphics.
  • Supported by:
    National Natural Science Foundation of China(61772013)

摘要:

为了降低水波模拟过程中的计算成本并提高其扩散现象的逼真度,提出一种基于波环粒子包的实时二维平面水波仿真方法。该方法采用波环粒子为基本计算单元,粒子内部继承“波包”的概念,使用多个频段水波叠加的方式再现水波视觉效果。在计算水波反射过程时,通过添加镜像波源的形式减少碰撞计算,避免复杂几何判定。为适应不同硬件的计算性能差异,该方法提供额外的计算精度参数,可针对不同硬件计算能力调节水波反射计算复杂度。实验结果表明,该方法可使用较少的粒子模拟出较为真实的水波运动,且避免了碰撞反射后水波断裂的问题。在相同硬件平台上的性能测试显示,所提波环仿真方法的渲染帧率比传统波包算法高出至少60%,在一些水波状态特别复杂的情况下可达到400%以上的加速效果。

关键词: 水波仿真, 波环粒子, 波包, 粒子系统, 渲染帧率

Abstract:

A real-time two-dimensional water wave simulation method based on wave annulus particle packet was proposed to reduce computational cost in the water wave simulation process and improve its diffusion phenomenon's fidelity. In this method, wave annulus particle was used as primary calculation unit, the concept of “wave packet” was inherited inside particles, and visual effect of water waves was reproduced by using superposition of water waves in multiple frequency bands. Collision calculation was reduced by adding a mirror wave source to avoid complex geometric judgment when calculating the water wave reflection process. Additional calculation accuracy parameters were provided so that the algorithm could adjust calculation complexity of water wave reflection according to different hardware calculation capabilities. Experimental results show that the proposed method can use fewer particles to simulate natural water wave motion and avoid problem of water wave fracture after collision reflection. The performance test on the same hardware platform shows that rendering frame rate of the proposed wave annulus simulation algorithm is at least 60% higher than that of traditional wave packet algorithm and even achieves an acceleration effect of more than 400% in some cases with particularly complex water wave states.

Key words: water wave simulation, wave annulus particle, wave packet, particle system, rendering frame rate

中图分类号: