基于二维纹理映射的镜面反射加速绘制  被引量:2

Accelerated rendering for specular surface using 2D texture mapping

在线阅读下载全文

作  者:朱国仲[1] 张玉华[1] 

机构地区:[1]华北水利水电学院信息工程系,河南郑州450045

出  处:《计算机工程与设计》2011年第7期2439-2442,共4页Computer Engineering and Design

基  金:郑州市科技局科技攻关基金项目(10PTGS507-3)

摘  要:针对物体表面镜面反射现象的绘制,提出了一种新的基于二维纹理映射技术的加速算法。将具有镜面反射表达式的Phong模型分解成多个简单的数学函数,预先离散采样计算后作为纹理对象传给显卡。使用OpenGL多重纹理技术,将每个纹理对象放入相应的纹理单元,分别设置其组合函数,将多个纹理的运算组合起来。将三角片顶点坐标及多组纹理坐标传入,从而实现了物体镜面反射现象的实时绘制。实验结果表明,该算法大大提高了绘制的性能。Aimed at the rendering for specular reflection of most real-world object surfaces, an accelerated rendering algorithm based on 2D texture mapping is proposed. Firstly, the Phong model with a specular expression is decomposed into multiple simple arithmetic functions, which are in turn discretely sampled and pre-computed, and the results are transferred to OpenGL rendering pipeline. Secondly, all texture targets are placed into corresponding texture units and combined with their combinatorial function. At last the coordinate of textures and vertices are transferred to display card to accomplish rendering for specular surfaces. The experimental results prove that our algorithm improves significantly the rendering performance.

关 键 词:镜面反射 绘制 纹理映射 模型 绘制管线 多重纹理 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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