首页>
外国专利>
Method and apparatus for performing H-space bump mapping suitable for implementation with H-space lighting in a graphics pipeline of a computer graphics display system
Method and apparatus for performing H-space bump mapping suitable for implementation with H-space lighting in a graphics pipeline of a computer graphics display system
展开▼
机译:用于执行适用于在计算机图形显示系统的图形管线中以H空间照明实现的H空间凹凸映射的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
The present invention provides a method and apparatus for performing H-space bump mapping. The apparatus of the present invention is a fragment processor of a computer graphics display system. The method of the present invention is performed by the fragment processor. In accordance with the method of the present invention, for each vertex of each polygon being processed, the fragment processor calculates both diffuse and specular lighting terms. Then, for each fragment within the polygon defined by the vertices, the fragment processor interpolates the specular and diffuse lighting terms to obtain diffuse and specular lighting terms for each fragment. If bump mapping has been enabled, the fragment processor adds perturbations to the diffuse and specular lighting terms to generate the bump mapping. Preferably, prior to performing the H-space bump mapping algorithm, texture coordinate gradient vectors are calculated for the image to be rendered. During the H-space bump mapping algorithm of the present invention, the H-space reference vectors are aligned with the texture coordinate gradient vectors. The specular and diffuse lighting terms are calculated using the H-space reference vectors. Since the H-space reference vectors are aligned with the texture coordinate vectors, it is not necessary to transform the specular and diffuse lighting terms into the coordinate system associated with the texture coordinates of the bump map on a per fragment (i.e., per pixel basis). Once the H-space reference vectors have been aligned with the texture coordinate gradient vectors, the algorithm proceeds in the aforementioned manner.
展开▼