为了模拟出具有实时性和真实感的大范围海水场景,提出了一种绘制的方法,该方法使用了存在于投影空间的海面网格模型。同时,为了使海浪模拟的真实感更强,也未采用以往基于Perlin噪音的产生海浪高度图的方法,而是采用了更复杂的基于统计模型与快速傅立叶变换(FFr)的波浪生成方法。其次通过立方体纹理实现了海水对天空盒的反射效果,并运用Phone光照模型实现了海浪的反射。此外充分地利用了GPU硬件的特性和ping pong绘制技巧。实验证明该方法能快速模拟出实时、逼真的海水的场景。
In order to simulate large scale ocean scenes with real-time and realistic sense, a rendering technique is proposed. Firstly, use the concept of projected grid. And the intent of the projected grid is to create a grid mesh whose vertices are projective-spaced, not in world-space. At the same time, to make the ocean wave more realistic, do not select the simple method based on the Perlin noise but using the sophisticated algorithms which is based on statistical model and using fast Fourier transformation (FFT) to produce tillable height map. Secondly ,the sun and sky reflections are achieved via cube mapping texture. Pbong light and Fresnel reflection are discussed and applied. What 's more,the scenes are rendered in an efficient manner raking full advantage of the modem graphic hardware and using the ping pong technique. Experiments show that the method is efficient for realistic wave modeling and has better rendering speed.