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

GPU加速的光滑轮廓线绘制
引用本文:方建文,于金辉. GPU加速的光滑轮廓线绘制[J]. 计算机工程与应用, 2011, 47(11): 1-2. DOI: 10.3778/j.issn.1002-8331.2011.11.001
作者姓名:方建文  于金辉
作者单位:1.衢州学院 信息与电子工程系,浙江 衢州 324000 2.浙江大学 CAD&CG国家重点实验室,杭州 310058
基金项目:国家自然科学基金重点项目,国家科技支撑计划
摘    要:轮廓线的高效提取是非真实感绘制的一个关键问题。提出了一个完全利用GPU生成光滑轮廓线的高效算法。在几何处理阶段,先根据相邻三角形的法向量与视向量的关系检测出轮廓线,然后对轮廓线进行宽度扩充,同时对轮廓线顶点设置相应的渐变因子;在像素处理阶段把渐变因子转化为相应的alpha值,通过光照生成卡通渲染,最后通过alpha混合得到光滑轮廓线。算法完全在GPU里实现,能满足实时的绘制要求。

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

GPU accelerated rendering smooth silhouettes
FANG Jianwen,YU Jinhui. GPU accelerated rendering smooth silhouettes[J]. Computer Engineering and Applications, 2011, 47(11): 1-2. DOI: 10.3778/j.issn.1002-8331.2011.11.001
Authors:FANG Jianwen  YU Jinhui
Affiliation:1.Department of Information and Electronic Engineering,Quzhou College,Quzhou,Zhejiang 324000,China 2.State Key Laboratory of CAD&CG,Zhejiang University,Hangzhou 310058,China
Abstract: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.
Keywords:Graphic Processing Uni(tGPU)  cartoon style  real-time rendering
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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