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

基于可编程图形处理器的实时景深模拟
引用本文:周强,彭俊毅,戴树岭. 基于可编程图形处理器的实时景深模拟[J]. 系统仿真学报, 2006, 18(8): 2219-2221,2238
作者姓名:周强  彭俊毅  戴树岭
作者单位:北京航空航天大学先进仿真技术重点实验室,北京,100083
摘    要:一幅具有景深效果的图,其显著特征是图像部分清晰部分模糊。基于这一特点,在景深的计算机仿真中,首先由计算机对三维场景成像,并将该场景存储为纹理,此纹理为清晰的场景纹理。成像时通过顶点编程,于α通道中存储了物体距离聚焦面的深度信息。然后对场景纹理进行多次均值滤波生成模糊的场景纹理,最后以清晰场景纹理的α值为插值系数将两幅纹理进行融合而模拟出景深效果。算法充分利用了图形处理器(GPU)的多纹理技术和可编程性,将运算从CPU转移至GPU,很好地仿真了景深效果,且满足实时性要求,可应用于虚拟现实系统。

关 键 词:景深  实时性  可编程  虚拟现实
文章编号:1004-731X(2006)08-2219-03
收稿时间:2005-06-29
修稿时间:2005-06-292005-10-24

Programmable GPU Based Real-time Simulation of Depth of Field
ZHOU Qiang,PENG Jun-yi,DAI Shu-ling. Programmable GPU Based Real-time Simulation of Depth of Field[J]. Journal of System Simulation, 2006, 18(8): 2219-2221,2238
Authors:ZHOU Qiang  PENG Jun-yi  DAI Shu-ling
Affiliation:Advanced Simulation Technology Key Lab of Beijing University of Aeronautics and Astronautics, Beijing 100083, China
Abstract:The prominent characteristic of an image with depth of field(DOF) effect is that part of the image is clear but the other part is blurry.From this point,in the computer simulation of DOF,an image of the three-dimensional scene was produed and it was stored as a texture which was called as clear scene-texture.In the process of imaging,the information of the depth of objects was stored in the alpha channel by vertex program.Then the clear scene-texture was filtered averagely several times and another blurry scene-texture was got.At last,the alpha value stored in the clear scene-texture was taken as the coefficient,which used it to blend these two textures to achieve the DOF effect.The algorithm takes extensive use of the Graphics Processing Unit(GPU) for its multi-texture and programmable performance,and thus transfers the considerable calculation from the CPU to the GPU.The algorithm can well simulate the real-time DOF effect,and can be applied in VR system.
Keywords:depth of field   real-time   programmable   Virtual Reality
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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