| In recent years,the simulation of the natural scenery has been one of the most challenges in computer graphics.As for the simulations of landscape and other natural sceneries have a wide range of uses in various fields,such as in computer games,television and advertising. The simulation of water flow and water wave,which is an important aspect of the simulation of the natural scenery,is increasingly concerned.But compared with other simulation of scenery,the simulation of water flow is more complicated,because water has different forms under different circumstances,and its display has special requirements.The movement of water has the features of unsmoothness,uncertainty,irregularity and variability,which is very complex and disordered and can be influenced by the surrounding environment.In order to simulate its movement accurately,the key is to establish an appropriate flow model,and to adopt appropriate methods.On the basis of in-depth understanding of fluid dynamics equations and simulation work in a variety of simplified form,this thesis analyzes and summarized the application scope of various models and finally in accordance with the actual use in this thesis chooses the simplified second Navier-Stokes equations as the wave model.This thesis summarized the process of two-dimensional N-S equations using the finite difference method and finite volume method and the advantages and disadvantages in the application of fluid mechanics. According to the needs,the thesis finally adopted the finite volume method makes numerical calculation of the equation,which makes the equation stable and efficient.It selects the combination of unstructured grid and finite volume method to make the wave model.In the process of establishing illumination model,according to the physical properties of water waves,the thesis focuses on reflection and refraction of light.In order to accelerate the computing speed,the thesis introduces the GPU and texture processing techniques of light and shade effects to enhance the reality of the system effect.This thesis provides more actual model design for computer games,film and advertising and other fields. |