首页 | 本学科首页   官方微博 | 高级检索  
     

基于Irrlicht引擎的实时浅水效果模拟
引用本文:李一兵,张力学,孟霆.基于Irrlicht引擎的实时浅水效果模拟[J].计算机工程与科学,2011,33(8).
作者姓名:李一兵  张力学  孟霆
作者单位:哈尔滨工程大学信息与通信工程学院,黑龙江哈尔滨,150001
基金项目:船舶工业国防科技预研项目,哈尔滨市科技创新人才研究专项基金
摘    要:本文在Irrlicht引擎的基础上结合GLSL语言,对浅水的水面波动、反射与折射特性及菲涅尔现象进行了实时模拟。将基于Gestner波的水面波动与基于纹理波的动态法线贴图相结合,真实地模拟了水面的波动与波纹效果。同时,采用渲染到纹理技术实时生成反射贴图,准确地模拟了水面的反射效果,解决了采用环境贴图渲染时的反射失真问题。在不考虑水深的情况下,本文将菲涅尔权值与材质的alpha通道相结合,去掉了实时渲染中折射贴图的生成,在满足实时浅水效果渲染的视觉需求条件下,减小了CPU与GPU的计算量。

关 键 词:浅水模拟  法线贴图  菲涅尔现象

Realtime Shallow Water Rendering Based on the Irrlicht Engine
LI Yi-bing,ZHANG Li-xue,MENG Ting.Realtime Shallow Water Rendering Based on the Irrlicht Engine[J].Computer Engineering & Science,2011,33(8).
Authors:LI Yi-bing  ZHANG Li-xue  MENG Ting
Abstract:This paper presents new algorithms on shallow water rendering based on the Irrlicht engine and the GLSL language.Combining the Gestner waves with the dynamic normal mapping based on texture waves,we get realistic water rendering including geometric undulation and ripples of the surface.At the same time,accurate reflection mapping can be obtained by rendering mirror reflection to texture on a per frame basis,compared with environment mapping the distortion resulted by view points is eliminated.Finally,by assigning the Fresnel weights to the material's alpha channel,we can reduce the CPU and GPU computation load with the use of the refraction texture,and still it produces convincing effects.
Keywords:shallow water rendering  normal mapping  Fresnel effect
本文献已被 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号