| Water wave simulation is a commonly used technology in virtual reality,computer animation,special effects,and other application fields.Water wave is an indispensable virtual object when constructing water-related natural scenery.Due to the complex physical characteristics and propagation law of real water wave,such as reflection,diffraction,interference and dispersion,the existing water wave simulation technology needs to balance water wave phenomenon’s fidelity with simulation’s real-time performance.It is a research hotspot in computer graphics and computer simulation technology.In order to reduce the computational cost and improve the fidelity of water wave simulation,this paper proposes a real-time two-dimensional water wave simulation method based on wave annulus particle package.The method uses wave annulus particles as basic calculation unit.Each basic particle inherits "wave packets" of the small amplitude wave equation,and uses the multiband water wave stacking method to reproduce the visual effect of real water wave movement,especially dispersion phenomenon of water waves.Aiming at the reflection phenomenon between water wave and containers’ walls,the algorithm reduces collision calculation by adding mirror wave sources,and avoids the influence of complex geometric judgment on the real-time performance of the algorithm.In order to adapt to the different performance of different hardware,the algorithm provides additional adjustable parameters and can dynamically adjust the computational complexity of water wave reflection.Experimental results show that the algorithm can simulate wave propagation with fewer particles,avoids the cracking problem of wave reflection,and significantly improves the efficiency of water wave simulation.In order to avoid water wave penetrating through obstacles when simulating the collision between water waves and obstacles inside simulation area,this paper further proposes area mask method to correct and screen the wave annulus that has visual errors.The mask is determined by geometric relationship between wave source and obstacle,using the tangent point of wave source and obstacle to calculate area where incident wave is blocked by obstacle.Reflection area of water wave and obstacle is determined by geometric position of mirrored wave source,and reflection area of water wave is determined using endpoints of the collision edge to filter out the excess of virtual reflection wave annulus particles.To compensate for visual abruptness formed by the height drop of the water surface at the filtered boundary,this paper increases diffraction angle and diffusion angle to smooth the height drop of the transition reflected wave boundary region.Experimental results demonstrate that the area mask method significantly improves the visual effect of wave annulus particles colliding with obstacles with a small additional computational effort for geometric analysis.Finally,this paper constructs a complex lake virtual scene containing several islands,and verifies the practicality of wave annulus particle algorithm and area mask method in a close to real application environment,and achieves good visual effect and artistic expression. |