摘要
针对如何有效利用现代图形硬件渲染大规模真实感海浪场景的难题,构建了一种基于投影网格上的Phillips谱海浪模型,利用GPU得到的海面浪高渲染为实时高度浮点纹理图,对每个像素进行求梯度得到海水法向纹理图。提出了基于GLSL语言的海水光照算法,实现动态海面光照效果,通过对程序参数的调节,进行不同风向风速下海面浪高的控制以及能见度、太阳高度角等不同气象要素下的真实感海浪绘制。仿真结果表明,该模型及渲染方法能够获得逼真的场景特效。
The modern graphics hardware to effectively render large scale realistic ocean waves,it is a prob-lem to use. To aim this, an ocean wave model using Phillips spectrum based on projected grid was con-structed. A real-time height floating point texture was made from the height date of the waves by graphicprocessing unit(GPU), and the normal map was got by calculating the grads of each pixel in the heightmap. Finally, an OpenGL Shading Language(GLSL) light arithmetic was proposed, and the dynamic sur-face lighting effects were achieved. Meanwhile the rendering of the realistic sea under different meteoro-logical elements like different wind direction and wind speed, visibility, sun angle and so on was ap-proached through the program parameters adjusting.method can obtain access to a realistic scenes.Simulation result shows that the model and rendering
出处
《解放军理工大学学报(自然科学版)》
EI
北大核心
2014年第5期488-493,共6页
Journal of PLA University of Science and Technology(Natural Science Edition)