Font Size: a A A

Ocean Wave Simulation Based On Unity3D And SPH Equations

Posted on:2017-06-08Degree:MasterType:Thesis
Country:ChinaCandidate:L ZhengFull Text:PDF
GTID:2348330485986082Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the development of computer software and hardware and the rise of GPU technology, computer graphics has been developed rapidly. With the wide application of 3D simulation, simulation of natural scenery has become one of the hotspots in the research area of computer graphics, and fluid such as smoke, river, cloud, etc. is a challenging research topic. As a branch of the water flow simulation, the ocean wave simulation has higher requirements for the real sense and real time. Ocean wave simulation technology is widely used and gets important applications in many fields, such as engineering science, military field, virtual reality, business and entertainment. It calculates precisely and greatly reduces development costs, ensuring engineering safety and reducing unnecessary losses. So it is very significant to establish the ocean wave model and realize the simulation of ocean wave.From the realistic point of view, the ocean wave modeling method is divided into four kinds: Modeling based on geometric model, modeling based on wave spectrum model, modeling based on fluid dynamics and modeling based on dynamic model. Smooth particle hydrodynamics is a particle system approach, and is more suitable for scene simulation such as spray and comber, due to too much particle number and too much calculation, the simulation of the large-scale ocean wave scene has poor real-time performance. This thesis is based on the study of smooth particle hydrodynamics, we analysis the characteristics and problems and finally select appropriate Navier Stokes equation. Then we simulate the ocean waves on the Unity3 D engine, and combine it with the illumination model to enhance the sense of reality and to meet the requirements of the sense of reality, real-time wave simulation. The main research contents are as follows:Firstly, the boundary of SPH method is improved which simplifies the calculation process, then we simulated the waves based on improved SPH method, the specific content includes particle initialization, searching near particle, computing, such as particle density, by force and position change. We simulate the particle motion, and finally realize the wave effect. Secondly, the illumination model is improved, the Half Lambert model and Blinn-Phong model are combined. Half Lambert model enhances brightness and Blinn-Phong model highlights the effect of specular highlights, thereby enhancing the sense of reality. The last thing is to program in the Unity3 D engine, the specific content includes the preparation of the corresponding script and shader, etc., and ultimately to achieve the logic control, rendering and interactive functions.According to the requirement analysis of the system, this thesis realizes the demonstration system on the Unity3 D engine. This system is divided into four parts which include scene management module, logic processing module, function rendering module and interface module. In this thesis, under the premise of taking into count both real-time and realistic, the specific implementation scheme of each module in the system is given.
Keywords/Search Tags:smoothed particle hydrodynamics, computer graphics, illumination model, Unity3D engine
PDF Full Text Request
Related items