摘要
三角形的纹理贴图是提升图形真实感的必要途径。介绍了一种新的纹理映射到三角形的硬件算法和FPGA实现的算法。该硬件算法每个时钟周期能够产生一个像素,并且经过透视正确纹理贴图结果渲染正确。立足于当前高性能图像处理器的需求,首先采用SystemC语言对于三角形纹理贴图进行行为模型,然后采用Verilog语言实现其硬件电路功能,同时使用FPGA开发板搭建验证平台完成三角形纹理贴图的功能验证。通过各方面验证,表明所设计的三角形的纹理贴图满足系统设计要求。
The texture map of triangles is the necessary way to enhance the realistic sense of graphics.This paper introduces a new hardware algorithm for mapping textures onto triangles and the FPGA implementation of the algorithm. The proposed hardware algorithm is able to produce a pixel each clock cycle and to render perspectively correct texture mapping. The paper is based on the current image processor requirements. Firstly,the behavioral model of triangle texture maps is established by using System C language, then the hardware circuit is realized by Verilog language, and the functional verification of triangle texture maps is accomplished by using a FPGAdevelopment board to build the verification platform. Through the verification of various aspects,it shows that the proposed hardware algorithm for triangle texture map of the triangle meets the system design requirements.
引文
[1]杨键,张敏.基于Open GL的纹理贴图技术[J].软件导刊,2011,10(3):169-171.
[2]罗琨,曹阳,尹建华,等.数字专用集成电路设计中的System C建模验证方法[J].武汉大学学报:理学版,2002,48(3):306-310.
[3]吴迪,黄文骞,王莹.图形变换中透视投影变换矩阵的推导[J].海洋测绘,2003,23(1):18-21.
[4]黄锐,付宇卓,赵峰.基于FPGA的三角形光栅化模块[J].计算机工程,2008,34(22):242-244.