依据空气散射的物理原理,提出一种高效的能够实时模拟动态自然光束的真实感绘制方法.首先推导出散射计算的解析表达式以取代传统的数值积分方法;然后基于GPU特点设计了一种有效的光束体表示,作为光束体和阴影体统一形式共同参与GPU着色器的运算,从而生成具有阴影效果的光束.该方法不仅可以模拟单个光源形成的光束,还可以实时模拟动态太阳光源产生的多个自然光束.由于采用了GPU加速计算,可以满足实时应用需求.
This paper presents an efficient method of simulating natural light shafts with atmospheric scattering based on physical models. An analytic formula of light shaft is derived and a uniform representation of shaft volume accounting for both light shafts and shadow shafts is proposed which can take advantage of the current graphic hardware to accelerate the scattering computation. Our approach is capable of simulating the lighting shaft effect of multiple parallel light sources and producing realistic lighting effect with high frame rate for real time applications.