Claims
- 1. An image processing method for rendering a two dimensional pixel image from a plurality of triangular image primitives to be projected onto an image plane, in which per-pixel attribute values, derived by interpolation from values held for the triangle vertices, are mapped onto respective pixels within the projected triangular primitives, characterised in that, for each triangle:prior to projection, the triangle is parameterised with a respective two-dimensional coordinate system with the coordinate axes (s,t) concurrent with respective edges of the triangle and the origin coincident with the vertex between said edges; during projection, a generalised interpolation function is applied in terms of the parameterising coordinate system, determining parameter values at positions within the triangle in terms of the two-dimensional coordinate system; following projection, the determined parameter values at positions within the triangle determine contributions from the stored values for one or more attributes at each vertex, to give attribute values at each pixel; wherein corresponding per pixel attribute values from all triangles jointly determine an output color for each pixel.
- 2. A method as claimed in claim 1, wherein a pixel is tested to determine whether the center of the pixel lies inside or outside a triangle using perspective correct interpolants s/z, t/z and 1/z, where z is a depth value for the pixel.
- 3. A method as claimed in claim 2, wherein the test to determine location inside or outside a triangle is further performed at each of a plurality of sample points within a predetermined distance of the pixel center.
- 4. An image processing apparatus configured to render a two dimensional pixel image from data defining a plurality of triangular image primitives to be projected onto an image plane, the apparatus including interpolation means arranged to derive per-pixel attribute values from values held for the triangle vertices, and data handling means arranged to map said per-pixel attribute values onto respective pixels within the projected triangular primitives, characterised in that the apparatus further comprises:calculation means coupled to receive the data defining said triangular primitives, prior to projection, and arranged to parameterise each triangle with a respective two-dimensional coordinate system with the coordinate axes (s,t) concurrent with respective edges of the triangle and the origin coincident with the vertex between said edges; projection means operable to apply a generalised interpolation function to each triangle and in terms of the parameterising coordinate system, such as to derive parameter values at positions within a triangle in terms of said two-dimensional coordinate system; and pixel shading means configured to derive, from said determined parameter values at positions within the triangle, contributions from said stored values for one or more attributes at each vertex, such as to give attribute values at each pixel, and to combine per pixel attribute values from all triangles and output a per pixel color value.
- 5. An apparatus as claimed in claim 4, further comprising a storage means holding a plurality of data stacks, each stack being associated with a respective pixel and holding entries identifying parameters of one or more triangles impacting the pixel.
- 6. An apparatus as claimed in claim 5, wherein up to a predetermined number of said stack entries are stored in an order determined by their respective depth values.
- 7. An apparatus as claimed in claim 6, further comprising means for selectively transferring data from discarded or rejected candidate stack entries to extant stack entries.
CROSS REFERENCE TO RELATED APPLICATIONS
This is a continuation of application Ser. No. 09/123,786, filed Jul. 28, 1998.
US Referenced Citations (4)
Number |
Name |
Date |
Kind |
5307450 |
Grossman |
Apr 1994 |
A |
5361386 |
Watkins et al. |
Nov 1994 |
A |
5392385 |
Evangelisti et al. |
Feb 1995 |
A |
5852443 |
Kenworthy |
Dec 1998 |
A |
Foreign Referenced Citations (4)
Number |
Date |
Country |
0319165 |
Jun 1989 |
EP |
0319787 |
Jun 1989 |
EP |
0553973 |
Aug 1993 |
EP |
WO9636011 |
Nov 1996 |
WO |
Non-Patent Literature Citations (1)
Entry |
Lance Williams, “Pyramidal Parametrics”, Computer Graphics, vol. 17, No. 3, Jul. 1983, pp. 1-11. |
Continuations (1)
|
Number |
Date |
Country |
Parent |
09/123786 |
Jul 1998 |
US |
Child |
09/663323 |
|
US |