| Seabed,as a kind of underwater scene, can create a unique and fantastic user experience of transparency and fluxion feeling, and has always been the hot spot with difficulty of the virtual reality simulation and implementation. This topic is derived from the united project of UESTC and NOKIA, which plans to complete a small undersea scene’s graphics implementation on both PC and Nokia N900 mobile phone platform.The current literatures are mostly limited to the individual research of a certain part. Three typical factors –the seaweed, undersea ground and rising bubbles are chosen to be modeled and realized program in this paper. Along with the progress of the graphics rendering technology, the scene simulation is in the pursuit of physical reality. Therefore, the rising bubbles are selected to done graphics simulation based on physical emulation in this paper. The main contents are as follows:1. The main vein of seaweed was conducted mathematical modeling based on the principle of B-spline, and then two outer contour lines were attached to it and took a certain degree of rotation to form a spatial triangular grid, finally a good effect was achieved after the texture mapping.2. Digital elevation model was chosen to model undersea ground, after the comparison of program effects realized by grid constructing methods of GRID and TIN, it was concluded that the precision of ground grid mainly depended on initial discrete points and the interpolation method. The TIN grid implied GL_NEAREST texture filtering could well represent for undersea ground.3. Gambit and Fluent, Tecplot, Matlab, OpenGL, these software were successively used to realize the graphics implementation of rising bubbles’ outline based on physical model. According to obtained physical simulation data, a function model of horseshoe-shaped contour during bubbles’ movement was established, which also had a good fitting precision.4. The transparent processing of bubbles, illumination model and the fog effects were studied and carried out, which eventually made the realistic effect of whole undersea scene promote a better level.5. The undersea scene algorithm realized on PC was simplified to realize on Nokia N900 mobile phone with the function library of OpenGL-ES, and finally a fluent program was achieved.There are several innovation points. Put the common gas-liquid two phase flow analysis of engineering practice field into the graphics implementation of undersea rising bubbles, and a function model which was beneficial to iterative program was proposed. The combination of a variety of undersea elements with the OpenGL’s special effects was shown on both PC and embedded mobile platforms, the expected effect was obtained. |