基于图形处理器的雾化渲染方法
Rendering realistic fog using GPU
作者:陆薇(四川大学计算机学院);杨红雨(四川大学计算机学院);万宇(川大智胜股份有限公司飞行模拟部)
Author:LU Wei(College of Computer, Sichuan University);YANG Hong-Yu(College of Computer, Sichuan University);WAN Yu(Department of Flight Simulation, Wise Soft Corporation)
收稿日期:2014-02-22 年卷(期)页码:2015,52(1):63-68
期刊名称:四川大学学报: 自然科学版
Journal Name:Journal of Sichuan University (Natural Science Edition)
关键字:计算机仿真; 雾化渲染; 预计算; 动态雾效
Key words:Computer simulation; Fog rendering; Pre compute; Dynamic fog
基金项目:国家863高技术研究发展计划(2012AA011804)
中文摘要
提出了一种高效且逼真的雾效渲染方法. 首先提出一个新的球形雾化渲染模型, 采用基于密度积分的光线跟踪算法进行实时渲染, 其次, 运用柏林噪声实现雾的动态效果, 根据基于物理的天空模型影响雾的颜色. 最后使用高动态范围算法优化生成的图像. 该计算使用图形处理器编程实现, 运用渲染到纹理技术进行大气数据的预计算, 减少程序运行时的运算量, 满足实时系统对渲染帧率的要求. 该方法适用于飞行模拟器等仿真漫游系统场景的渲染, 并已成功运用到某飞行模拟器中.
英文摘要
An effective way to render realistic fog in real time. Firstly, a new sphericalmodel of fog was proposed. The model used a ray tracing algorithm based on the integration of fog density to calculate the final fragment color. Secondly, Perlin Noise was used to achieving the dynamic fog. A physical model based sky model was used to influence the fog color. Thirdly, the program was optimized by using the Render to Texture technical and the High Dynamic Range algorithm. The fog rendered by this method has a good display effect and with a high frame rate.
【关闭】