摘要
轮廓线的高效提取是非真实感绘制的一个关键问题。提出了一个完全利用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.
出处
《计算机工程与应用》
CSCD
北大核心
2011年第11期1-2,14,共3页
Computer Engineering and Applications
基金
国家自然科学基金重点项目No.60933007
国家科技支撑计划(No.2007BAH11B02)~~
关键词
图形处理器
卡通风格
实时绘制
Graphic Processing Uni(tGPU)
cartoon style
real-time rendering