GPU上的非侵入式风格化渲染
Non-invasive Stylized Rendering on GPU
-
摘要: 提出一种基于硬件加速的算法,在实时图形应用中非侵入式地获得各种风格化渲染特效.通过实时地截获OpenGLAPI函数调用,修改了常规的渲染流程.该算法完全采用硬件加速的方法,在图形处理器中对颜色缓冲区和深度缓冲区进行后处理;同时采用OpenGL绘制语言作为高级绘制语言,从而可以和其他硬件加速算法(如置换式贴图、矩阵调色盘变形等)完全兼容.实验结果表明:文中算法适用于交互式非真实感渲染的应用,可以作为一种风格化渲染的强有力的工具.Abstract: To achieve various stylized visual effects non-invasively in real-time graphic applications, we propose a hardware-accelerated algorithm. By intercepting OpenGL API functions, the algorithm changes the conventional rendering process. The algorithm is a purely hardware-accelerated approach by post-processing the color-buffer and depth-buffer in graphics processing units (GPU). The algorithm utilizes OpenGL shading language (GLSL) as the high-level shading language. The algorithm is compatible with other hardware-accelerated algorithms (e.g., displacement mapping or matrix palette skinning). The algorithm has been implemented on Windows2000/XP platform using VC++ and OpenGL. The graphics boards are an ATI RADEON 9800XT and a NVIDIA GeForce FX5600. Experimental results show that the algorithm is suitable for interactive applications of non-photorealistic rendering, and it can be used as a powerful tool for stylized rendering.
下载: