Dynamic simulation of the flags in marine simulator based on physical methods

In order to improve the authenticity of the flag simulation in visual system of marine simulator,this paper compiles a C++ program to realize the dynamic simulation of the flag based on physical methods,under the conditions including the factors such as the wind direction,vessel speed and heading's influence on the flags.According to the simplified mass-spring model,each particle's total force is analyzed in real-time,and Explicit Euler method is used to calculate the position of each particle in the three-dimensional space.At last the OpenGL texture mapping technique is used to achieve the flag simulation in different wind scale.