基于GPU的近似软影实时绘制  被引量:12

Real-Time Approximate Soft Shadow Rendering on GPU

在线阅读下载全文

作  者:吕伟伟[1,2] 孟维亮[1,2] 薛盖超[1,2] 吴恩华[1,3] 

机构地区:[1]中国科学院软件研究所计算机科学国家重点实验室,北京100190 [2]中国科学院研究生院,北京100049 [3]澳门大学科学技术学院电脑与资讯科学系,中国澳门

出  处:《计算机辅助设计与图形学学报》2009年第3期275-281,288,共8页Journal of Computer-Aided Design & Computer Graphics

基  金:国家“九七三”重点基础研究发展计划项目(2002CB312102);国家自然科学基金(60223005,60473105);Research Grant of University of Macao

摘  要:通过对阴影图算法进行扩展,提出一种完全基于GPU的近似软影实时绘制算法,它是一种3遍算法:第一遍从光源中心计算场景的深度图;第二遍采用几何着色器提取物体的轮廓边,同时在轮廓边上生成新的几何图元,利用硬件自动插值功能向外绘制线性近似半影图,并根据第一遍得到的深度图在像素着色器中对背面轮廓形成的半影区进行剔除;对于重叠的半影区设定片元的伪深度值,利用硬件进行自动融合.第三遍分别查询深度图和半影图,确定场景的本影区以及半影区中像素的亮度,从而得到面光源照射下场景的近似软影效果.This paper presents a real-time approximate soft shadow rendering algorithm which runs entirely on GPU by extending the shadow mapping algorithm. This is an algorithm with three passes. In the first pass the depth map is generated from the light view point. It is then followed with the second pass to extract the silhouette edge using geometry shader and to generate penumbra map by extending the silhouette vertex along the normal. The new generated primitive is automatically interpolated by GPU. For the part of the penumbra map which is occluded, it is diminated using the depth map generated in the first pass in fragment shader. For the overlapped part, a fake depth value is set for each of the fragments so that they will be blended automatically by hardware through depth comparison. In the rendering pass, for each fragment we first lookup the depth map to decide whether the fragment is in shadow. For those not in shadow, we lookup the penumbra map to get the penumbra value.

关 键 词:软影 轮廓边提取 几何着色器 

分 类 号:TP391.41[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象