摘要
在复杂的三维仿真系统中模拟雾效对系统的实时性和真实性都提出了较高的要求。在分析传统雾效模拟方法的基础上,提出了一种基于GPU的实时雾效模拟方法。基本思想是建立一个表示雾随高度渐变的指数函数,然后根据提出的算法公式在GPU上实时计算出雾浓度,最后将所计算出的雾效因子与片元颜色进行混合计算。实验证明,该方法能够实时生成真实感较强的雾效。
Fog simulation is an important research topic in the field of three-dimensional simulation.It puts forward high requirements on real-time performance as well as realistic rendering results for complex three-dimensional simulation system.By analyzing the traditional simulation methods of fog,the authors proposed a Graphic Processing Unit(GPU)-based method to simulate the fog effect in real-time.The basic idea was to employ an exponential function to simulate the fade of fog with height.Then a GPU implementation of this formula was presented.And finally the fog color was blended with the fragment color according to the fog factor.The experimental results show that the proposed method can generate strongly realistic fog in real-time.
出处
《计算机应用》
CSCD
北大核心
2010年第3期585-588,共4页
journal of Computer Applications
基金
国家863计划项目(2009AA01Z332
2007AA01Z328)
国家自然科学基金资助项目(60832011)
关键词
平流雾
雾密度
雾效因子
GPU
实时性
advection fog
fog density
fog factor
Graphic Processing Unit(GPU)
real-time