Gradient calculation system and method
Abstract
A gradient calculation system and method are described for use in a texture mapping system for calculating a gradient for each pixel defining a primitive of an image from a plane equation that describes the primitive. The primitive represented by the plane equation is decomposed into spans by an edge stepper, which steps the edges of the primitive, calculating the parameter values (e.g., S,T coordinates and perspective correction factor W) of the starting pixel for each span. A span stepper takes the starting parameter values generated by the edge stepper and interpolates parameter values for pixels along each span. The parameter values for each pixel are then passed to a gradient and perspective correction mechanism which calculates a gradient for each pixel by determining the difference between the parameter values for the current pixel and the parameter values of the next pixel in the x direction to derive ΔPx and the adjacent pixel in the y direction to derive ΔPy, and then taking the maximum differences as the gradient. In addition, perspective correction is performed by first modifying the primitive data defining the primitive with a perspective correction factor W prior to c
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 84.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A gradient calculation system for use in a graphics system wherein texture and color data are generated and combined for each pixel of an image being rendered, comprising: a plane equation mechanism that generates a plane equation from data describing a primitive of said image being rendered; an edge stepper that determines a location and associated texel coordinate values for each pixel on an edge of said primitive utilizing said plane equation, and for determining a pixel count for each span defining said primitive; a span stepper that determines texel coordinate values for each pixel lo
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗