| Virtual battlefield is the military usage of the virtual reality technology, aiming at providing the basal facilities for modern military training and research. It has many advantages in the military maneuver, such as little restricted by environmental and political factors, saving funds, etc. So it has been seriously regarded by many countries'military. Any virtual battlefield exists in a virtual natural environment that can simulate the real world. As one important composing part, the research on ocean environment is of high academic and applied value.Since rendering of ocean scene needs massive polygons and complex environment effects, it is a great challenge to graphics hardware. With the GPU's rapid development, its programmable speeds up processing the graphic dates and improves the efficiency of rending complex effects. Aiming at real-time and realism, the research on simulation of ocean environment mainly involves two hands. One hand is the ocean scene modeling and rending. The other hand is the complex environment effects' development. The main research works of this paper are as follows.Study the physical model, wave spectrum model and geometric shape of wave modeling. Base on FFT algorithm and the Phillips spectrum function to generate the ocean surface's height field, it establishes ocean scene mesh. To improve the efficiency of ocean scene rending, this paper utilizes an algorithm of optimizing ocean scene mesh algorithm named Geometrical MipMapping.Study the GPU's programmable technology, draw the sky with a mist effect. Use different kinds of shards to realize the water surface reflection, refraction, Fresnel effects, etc. To improve the realistic scene of sea, it uses different kinds of shaders to rend complex environment effects.A system of ocean environment simulation is implemented using the above technology. The experimental results demonstrate the system can generate real-time ocean scene and various environmental effects with good interactivity and realism. |