• •    

基于波环粒子的实时水波模拟方法

顾浩杰,张军   

  1. 江苏省无锡市江南大学人工智能与计算机学院
  • 收稿日期:2021-09-29 修回日期:2022-01-31 发布日期:2022-04-15
  • 通讯作者: 顾浩杰
  • 基金资助:
    国家自然科学基金资助项目

Real-Time Water Wave Simulation Method based on Wave Annulus Particles

  • Received:2021-09-29 Revised:2022-01-31 Online:2022-04-15

摘要: 针对水波模拟过程中存在高昂计算成本以及水波碰撞后扩散现象不真实等问题,提出一种基于波环粒子包的实时二维平面水波仿真方法。该方法显著减少传统基于粒子水波模拟过程中的粒子数量,从而大幅提高了仿真算法的渲染帧率。在具体模拟水波过程中,该方法采用波环粒子为基本计算单元,粒子内部继承“波包”的概念,使用多个频段水波叠加的方式再现水波视觉效果。在计算水波反射过程时,通过添加镜像波源的形式减少碰撞计算,避免复杂几何判定。新算法提供额外的计算精度参数,可针对不同硬件计算能力调节水波反射计算复杂度,具有更好的硬件自适应能力。实验结果表明,该方法可以通过较少的粒子模拟出较为真实的水波运动,且避免了碰撞反射后水波断裂的问题,同时显著提高水波模拟计算的效率。

关键词: 水波, 仿真, 波环, 波包, 粒子系统

Abstract: A real-time two-dimensional water wave simulation method based on wave annulus particle packet was proposed to solve the problems of high computational cost and unreality of diffusion after wave collision. This method significantly reduces the number of particles in the traditional particle-based water wave simulation and thus dramatically improves the rendering frame rate of the simulation algorithm. In simulating water waves, the method adopts wave annulus particles as the basic computing unit, inherits the concept of "wave packet" inside the particles, and reproduces the visual effect of water waves by superimposing multiple frequency bands. When calculating the reflection process of water waves, adding a mirror wave source can reduce the collision calculation and avoid complicated geometric decisions. The new algorithm provides additional computational precision parameters and can adjust the computational complexity of water wave reflection according to different hardware computing capabilities, with better hardware adaptive ability. Experimental results show that this method can simulate the actual water wave motion with fewer particles, avoid the problem of water wave fracture after collision and reflection, and improve the efficiency of water wave simulation.

Key words: water wave, simulation, wave annulus, wave packet, particle system

中图分类号: