自然景观的模拟一直是计算机图形学的热点问题,特别是以波浪为代表的流体视觉仿真。以实际项目为研究背景,将Johanson提出的投影网格法用于湖面建模,以改进了的Perlin噪声作为高度场的激励源,采用基于费涅尔系数的水面光照渲染,比较真实地模拟了太湖湖面的波浪场景。同时利用顶点着色器和像素着色器(基于GPU的编程)强大的图形处理功能,极大地提高了太湖湖面波浪的生成速度,在网格为256*256,图像大小为1024*768的情况下,刷新频率达到了80帧以上,满足了实时性的要求。
Natural scene simulation is always a hot issue in Computer Graphic,especially for the fluid vision simulation which is represented by wave.The subject is under the background of an actual project.Projected grid algorithm introduced by Johanson was chosen to model the lake wave;improved Perlin Noise is used as the height field of the lake wave;Fresnel Term is used to adjust the illumination of the lake surface.The wave scene simulation of Taihu Lake is relatively true.Further,the speed of lake wave simulation is improved by the vertex shader and pixel shader(GPU-based programming).As the number of grid is 256*256 and the rending window size is 1024*768,the FPS(Frequency Per Second) is more than 80 frames which achieves real-time requirement.