计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (34): 222-227.

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

大尺度三维复杂场景中雪动态模拟的方法

韩秀珍1,张立强2   

  1. 1.中国气象局 国家卫星气象中心,北京 100081
    2.北京师范大学 遥感科学国家重点实验室,北京 100875
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-12-01 发布日期:2011-12-01

Real-time snow simulation in large-scale 3D complex scenes

HAN Xiuzhen1,ZHANG Liqiang2   

  1. 1.National Satellite Meteorological Center,China Meteorological Administration,Beijing 100081,China
    2.State Key Lab of Remote Sensing Science,Beijing Normal University,Beijing 100875,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-12-01 Published:2011-12-01

摘要: 在大尺度三维复杂场景中,提出了降雪和积雪快速模拟的方法,采用视景体相关和线性分组变换的方法更新雪粒子系统,改进了降雪绘制的视觉效果。针对场景尺度大、复杂度高的特点,创建视点相关遮挡图(Occlusion Map)来精细绘制近处实体的表面积雪细节,生成积雪灰度纹理图来近似模拟远处地物的整体积雪效果,实现了大场景多细节层次积雪的动态模拟。在积雪绘制过程中,近处积雪细节模拟所需的视景体参数和遮挡图通过CPU获取,将复杂的积雪位置的判定和积雪量的计算从CPU移到GPU中,利用自定义的GPU顶点和片段操作加快了积雪模拟的速度。实验结果表明,在大尺度三维复杂场景交互式操作下,提出的方法能较好地实现雪的绘制和模拟。

关键词: 大尺度场景, 雪模拟, 细节层次, 粒子系统

Abstract: In large-scale 3D complex scenes,a real-time simulation method is presented for multi-level snowfall and snow cover.Aiming at the continuity,consistency and multi-level characters of large-scale weather scene,the view-dependent linear packet transform method is used to update snow particle systems,and visual effects of snowfall are improved.For the characteristics of large-scale and complex spatial features in landscapes,a view-dependent occlusion map is created to render details of snow cover on near features in the view frustum,while the grayscale texture as a snow map is generated to approximate snow cover simulation of the distant features,to achieve real-time multi-level simulation of snow cover in a large-scale scene.During the snow rendering process,parameters of the view frustum and occlusion map for snow details are acquired on CPU.The complex location of snow cover and the calculation of the amount of snow cover are moved from CPU to GPU,using the customized GPU vertex and fragment operations to speed up the snow simulation.Experiments show that,the method proposed in this paper can achieve a good multi-level snow simulation in large-scale 3D complex landscapes.

Key words: large-scale scene, snow simulation, level of detail, particle systems