首页 | 本学科首页   官方微博 | 高级检索  
     

基于GPU的动态天空场景仿真
引用本文:彭伟,李攀,蒲亮.基于GPU的动态天空场景仿真[J].计算机工程与设计,2012,33(5):1938-1942.
作者姓名:彭伟  李攀  蒲亮
作者单位:四川大学计算机学院,四川成都610064;四川大学视觉合成图形图像技术国防重点学科实验室,四川成都610064
基金项目:国家自然科学基金项目(60903118、60832011)
摘    要:针对三维天空场景仿真中出现的场景实时性和真实性不能满足用户的需求等问题,提出了基于GPU (graphic processing unit)的动态天空场景仿真方法.在开源场景图形系统(OpenSceneGraph)开发平台上,使用基于物理的方法计算出一天中不同时刻天空的背景色;采用shader技术,用OpenGL着色语言(GLSL)在GPU上对云、太阳进行模拟;针对太阳的位置,绘制出具有真实感效果的光晕.实验结果表明,该仿真方法可以绘制出具有动态效果的、天空颜色能平滑过渡的天空场景,并且真实感强.

关 键 词:天空场景仿真  图形处理器  开源场景图形系统  着色语言  真实感

Dynamic simulation of sky scenes based on GPU
PENG Wei , LI Pan , PU Liang.Dynamic simulation of sky scenes based on GPU[J].Computer Engineering and Design,2012,33(5):1938-1942.
Authors:PENG Wei  LI Pan  PU Liang
Affiliation:1,2(1.School of Computer Science,Sichuan University,Chengdu 610064,China; 2.State Key Laboratory of Fundamental Science on Synthetic Vision,Sichuan University,Chengdu 610064,China)
Abstract:To solve the problems that the effects of real-time and realistic can’t be accepted by users when rendering three-dimensional sky scenes,a method based on GPU that can simulate the dynamic sky scenes is proposed.Firstly,all the time,the sky background color is calculated with physical methods using the OpenSceneGraph development kit.Then,the scenes’ clouds and sun are simulated by the OpenGL Shading Language.Finally,the lens flare is rendered according to the position of the sun.Experimental results show that this method can simulate dynamic and real sky scenes,and the sky color is changed smoothly.
Keywords:sky scenes simulation  GPU  OSG  graphics system  realistic
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号