对于海浪特效的模拟能有效增强海洋场景仿真的真实感,模拟的实时性也是海洋场景仿真系统的重要需求之一。为了实现基于GPU的海浪特效实时渲染,以PM海浪谱为基础进行了研究,从而生成海浪高度场,并结合视相关反投影方法生成海浪网格,采用硬件着色器进行基于物理光照模型的实时光照处理,生成了具有较强真实感的海面效果,较好地满足了对渲染场景实时性和真实感的要求,达到了实时视景仿真系统中对海洋模块的实时仿真要求。
Ocean scene effect realized by means of ocean special effects simulation can be greatly enhanced,is also one of the most important needs that the real-time scene simulation.For carrying out real-time ocean scene render based on GPU simulation system,this article combines the PM spectrum theory with view concerned projection grid to get real time virtual ocean wave and adapt the hardware based shader techniques to achieve real ocean wave effects.