IP Library › Granted Patent US 6,891,548
Granted Patent B2
US 6,891,548 · App. 10/226,967 · Granted May 10, 2005

System and method for calculating a texture-mapping gradient

Assignee: Hewlett-Packard Development Company, L.P.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 6,891,548
App. No.
10/226,967
Filed
Aug 23, 2002
Granted
May 10, 2005
Kind
B2
Art Unit
2676
USPC
345/586
Abstract

Systems and methods provide a more efficient and effective gradient computation. Specifically, in one embodiment, a method is provided for calculating a texture-mapping gradient, which comprises calculating constant values for use in a gradient-calculating equation, passing the constant values to logic configured to calculate the gradient, and computing the gradient using barycentric coordinates and the calculated constant values. In accordance with another embodiment, an apparatus is provided for calculating a texture-mapping gradient, which comprises logic for calculating constant values for use in a gradient-calculating equation, and logic for computing the gradient-calculating equation using barycentric coordinates and the calculated constant values. In accordance with another embodiment, a computer-readable medium is also provided that contains code (e.g., RTL logic) for generating the computational logic mentioned above.

Claims (16)

1. In a computer graphics system, a method for calculating a texture-mapping gradient comprising:

using a rasterizer to calculate constant values for use in a gradient-calculating equation;

passing the constant values to a rational linear interpolator that is configured to calculate the gradient; and

computing the gradient using barycentric cordinates and the calculate constant values according to the following equation: G px ={C px −C qx (P n /q n )}/{q n +C qx }, wherein C px =(da/dx)dp 1 +(db/dx)dp 2 , wherein C qx =(da/dx)dq 1 +(db/dx)dq 2 , and wherein da/dx and db/dx are constant values for an entire primitive, for non-zero values of Gpx, as defined by Equation 19 of the specification.

2. The method of claim 1 , further comprising using the gradient to select a texture map.

3. The method of claim 1 , wherein calculating constant values more specifically comprises calculating constant values that include at least one selected from the group consisting of C sx , C tx , C rx , and C qx , wherein C sx is a constant defining an amount of change in s in the x direction, before perspective correction, wherein C tx is a constant defining an amount of change in t in the x direction, before perspective correction, wherein C rx is a constant defining an amount of change in r in the x direction, before perspective correction, wherein s, t, and r are texture coordinates, and wherein C qy is an amount that the perspective correction parameter q changes in the x direction.

4. The method of claim 1 , wherein calculating constant values more specifically comprises calculating constant values include at least one selected from the group consisting of C sy , C ry , C ty , and C qy , wherein C sy is a constant defining an amount of change in s in the y direction, before perspective correction, wherein C ty is a constant defining an amount of change in t in the y direction, before perspective correction, wherein C ry is a constant defining an amount of change in r in the y direction, before perspective correction, wherein s, t, and r are texture coordinates, and wherein C qy is an amount that the perspective correction parameter q changes in the y direction.

5. In a computer graphics system, a method for calculating a texture-mapping gradient comprising:

using a rasterizer to calculate constant values for use in a gradient-calculating equation;

passing the constant values to a rational linear interpolator that is configured to calculate the gradient; and

computing the gradient and the calculated constant values according to the following equation: G px ={C px −C qx (p n /q n )}/{q n +C qx }, wherein C px =(da/dx)dp 1 +(db/dx)dp 2 , wherein C qx =(da/dx)dq 1 +(db/dx)dq 2 , and wherein da/dx and db/dx are constant values for an entire primitive, for non-zero values of Gpx, as defined by Equation 19 of the specification.

6. The method of claim 5 , further comprising using the gradient to select a texture map.

7. In a computer graphics system, a method for calculating a texture-mapping gradient comprising:

using a rasterizer to calculate constant values for use in a gradient-calculating equation; and

computing the gradient using barycentric coordinates and the calculated constant values according to the following equation: G px ={C px −C qx (p n /q n ) }/{q n C qx }, wherein C px =(da/dx)dp 1 +(db/dx)dp 2 , wherein C qx =(da/dx)dq 1 +(db/dx)dq 2 , and wherein da/dx and db/dx are constant values for an entire primitive, for non-zero values of Gpx, as defined by Equation 19 of the specification.

8. The method of claim 7 , further comprising using the gradient to select a texture map.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 18, 2003
From: HEWLETT-PACKARD COMPANY
To: HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.
Reel/Frame 013776/0928 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 23, 2002
From: ALCORN, BYRON; KASSOFF, JASON
To: HEWLETT-PACKARD COMPANY
Reel/Frame 013243/0140 →
Continuity (1)
Related Publication 20040036692A1 · Feb 26, 2004