GPU加速的光滑轮廓线绘制  被引量:1

GPU accelerated rendering smooth silhouettes

在线阅读下载全文

作  者:方建文[1,2] 于金辉[2] 

机构地区:[1]衢州学院信息与电子工程系,浙江衢州3240002 [2]浙江大学CAD&CG国家重点实验室,杭州310058

出  处:《计算机工程与应用》2011年第11期1-2,14,共3页Computer Engineering and Applications

基  金:国家自然科学基金重点项目No.60933007;国家科技支撑计划(No.2007BAH11B02)~~

摘  要:轮廓线的高效提取是非真实感绘制的一个关键问题。提出了一个完全利用GPU生成光滑轮廓线的高效算法。在几何处理阶段,先根据相邻三角形的法向量与视向量的关系检测出轮廓线,然后对轮廓线进行宽度扩充,同时对轮廓线顶点设置相应的渐变因子;在像素处理阶段把渐变因子转化为相应的alpha值,通过光照生成卡通渲染,最后通过alpha混合得到光滑轮廓线。算法完全在GPU里实现,能满足实时的绘制要求。Efficient silhouette extraction is a key issue in non-photorealistic rendering.This paper presents an algorithm that is able to generate smooth silhouettes entirely in GPU.In the geometry shader stage,silhouettes are detected according to the relations between the normal vectors of two adjacent triangles and the view vector,and then the silhouette is extruded and a fade factor is set for each silhouette vertex.In the pixel shader stage,the fade factor is translated into pixel alpha channel value,cartoon style is generated based on the light direction and finally smooth silhouettes are obtained after alpha blending with frame buffer.Algorithm is implemented entirely in the GPU and it can meet the real-time rendering requirements.

关 键 词:图形处理器 卡通风格 实时绘制 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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