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
First Claim
1. An apparatus for performing H-space lighting and bump mapping for an image to be rendered, the apparatus comprising a fragment lighting component, the fragment lighting component comprising:
- logic that computes H-space specular and diffuse lighting terms for each vertex of a polygon being processed by the fragment lighting component; and
logic that interpolates the H-space specular and diffuse lighting terms for each pixel within a region encompassed by the polygon being processed.
3 Assignments
0 Petitions
Accused Products
Abstract
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.
-
Citations
26 Claims
-
1. An apparatus for performing H-space lighting and bump mapping for an image to be rendered, the apparatus comprising a fragment lighting component, the fragment lighting component comprising:
-
logic that computes H-space specular and diffuse lighting terms for each vertex of a polygon being processed by the fragment lighting component; and
logic that interpolates the H-space specular and diffuse lighting terms for each pixel within a region encompassed by the polygon being processed. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer graphics display system comprising a graphics system that processes image data associated with an image to be rendered on a display device of the computer graphics display system, said graphics system being capable of performing H-space lighting and bump mapping, said graphics system comprising:
a fragment lighting component comprising logic for computing H-space specular and diffuse lighting terms for each vertex of a polygon being processed by the fragment lighting component and logic for interpolating the H-space specular and diffuse lighting terms for each pixel within a region encompassed by the polygon being processed. - View Dependent Claims (11, 12, 13, 14, 15)
-
16. A method for performing H-space lighting and bump mapping for an image to be rendered, the method being implemented in a fragment lighting component, the method comprising the steps of:
-
computing H-space specular and diffuse lighting terms for each vertex of a polygon being processed by the fragment lighting component; and
interpolating the H-space specular and diffuse lighting terms for each pixel within a region encompassed by the polygon being processed. - View Dependent Claims (17, 18, 19, 20, 21, 22)
-
-
23. A computer program for performing H-space lighting and bump mapping for an image to be rendered, the computer program being embodied on a computer-readable medium, the program comprising:
-
a code segment for computing H-space specular and diffuse lighting terms for each vertex of a polygon being processed;
a code segment for interpolating the H-space specular and diffuse lighting terms for each pixel within a region encompassed by the polygon being processed; and
a code segment for causing perturbations to be added to the H-space specular and/or diffuse lighting terms to effectuate bump mapping. - View Dependent Claims (24, 25, 26)
-
Specification