摘要
OpenGL自身不能直接计算Phong明暗处理,而Phong明暗处理是一种能产生较真实高光的明暗处理方法。通过分析OpenGL的标准图形渲染管道及Phong明暗处理的算法,采用软件实现了OpengGL标准渲染管道和光栅化的算法,替换了OpenGL硬件渲染管道和硬件光栅化部分,进而能直接实现片元级的Phong明暗处理。实验结果表明,Phong明暗处理能反映顶点间颜色值的变化。
OpenGL can not compute Phong shading directly. Phong shading can produce realistics highlights. Standard graphics rendering pipeline and Phong shading are introduced. The hardware rendering pipeline of OpenGL is implemented and substituted by using software, Phong shading are also implemented in the stage offragments by using software. In the final, the experiments ofimplementing rendering pipeline and Phong shading are given. Experiments show that the color changes between the vertices is seen by using the Phong shading.
出处
《计算机工程与设计》
CSCD
北大核心
2009年第4期1003-1004,1007,共3页
Computer Engineering and Design
基金
中国工程物理研究院科学技术基金项目(20060653)