计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (11): 167-170.

• 图形、图像、模式识别 • 上一篇    下一篇

一种云场景的实时渲染方法

葛 亮,姜晓峰,倪小军   

  1. 苏州大学 计算机科学与技术学院,江苏 苏州 215000
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-04-11 发布日期:2011-04-11

Method of real-time clouds rendering

GE Liang,JIANG Xiaofeng,NI Xiaojun   

  1. School of Computer Science & Technology,Soochow University,Suzhou,Jiangsu 215000,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-04-11 Published:2011-04-11

摘要: 探讨了真实感云场景的模拟技术,设计了一种云场景的实时渲染方法。基于Perlin噪声建模生成云浓度图,并采用考虑浓度的Phong光照模型与单向散射光照模型,分别计算反射光和透射光,改善了传统方法无法真实反映不同角度太阳光照的问题,实现了不同时段动态云场景的绘制。通过引入基于GPU的Bumping纹理算法与Render-to-Texture技术,极大提高了云场景的渲染速度。实验结果进一步表明该方法能够同时满足真实感与实时性两个方面的要求。

关键词: 云场景, Perlin噪声, 三线性插值, 图形处理器(GPU), Bumping纹理, 单向散射

Abstract: The simulation of realistic cloud scene is discussed,a method of real-time cloud rendering is designed.Cloud concentration diagram is generated based on Perlin noise.Using Phong illumination model and single-scattering model,the reflected light and transmitted light are respectively calculated to improve the traditional methods that cannot truely reflect the sun light from different directions,and the dynamic cloud scene rendering is realized at different times.By the using of GPU-based Bumping Texture algorithm and Render-to-Texture technology,the rendering efficiency of the cloud scene is greatly improved.Experimental results further show that the method both satisfy the realistic and real-time needs.

Key words: cloud sence, perlin noise, Tri-linear interpolation, Graphic Processing Unit(GPU), Bumping texture, single scattering