基于物理模型的流体模拟能精确描述流体的运动,但计算量大、实时性较差.根据流体的物理模型,提出了一种基于光滑粒子动力学(SPH)的非均匀粒子模拟流体的方法.提出了一种多因素决定粒子精细度的方法,显著减少了实际模拟需要的流体粒子数目,提高了模拟的速度而又不降低模拟真实感.流体的表面重构采用了一种新的基于屏幕空间的高真实感、高速的重构算法.实验结果表明,与传统的SPH方法相比,该方法在模拟同样场景情况下能大幅降低需要的粒子数目,提升了算法的效率.%Simulating large-scale fluid based on physical model in real-time is a big challenge. To solve this problem, a integrated algorithm based on SPH for fluid simulation is presented. In order to both reduce the number of particles in need of simulation and enhance simulation speed, the function of fineness is used to make decision in non-uniform particle sampling process. Also a fast and realistic algorithm is adopted, which construct surface in screen space. The experimental results prove that the method can both reduce the number of particles in the same scene and enhance the simulation speed.
展开▼