Method and apparatus for clamping image gradients
AssigneeOak Technology, Inc.
InventorMichel A. Rohner
Life of this patent
Estimating the term…
Loading patent…
AssigneeOak Technology, Inc.
InventorMichel A. Rohner
Estimating the term…
A system for avoiding overflow and underflow of image variables by clamping image gradients. The method is described with respect to a triangular polygon to be rendered, and a function for that polygon such as color. First the delta x and delta y values between each of the vertices of the triangle are computed. Using the delta x and delta y values, the area of the triangle is computed. The sign of the triangle area is used to determine whether the triangle is visible. If the triangle is visible then the method determines whether the width of the triangle in the x-direction, dx_min, is at least equal to a minimum threshold. To make this determination, first the vector with the largest delta y is selected. Using the largest delta y value, dx_min is computed. If dx_min is less than the threshold value, then a correction value is computed. The position of the vertex that is not part of the vector with the largest delta y is then corrected using the correction value. Making dx_min greater than or equal to the minimum threshold ensures that the dfx function gradients do not exceed the dynamic range of the system variables. The new triangle area is then computed. A similar method is performed to correct the height of the triangle, dy_min, if it is less than the minimum threshold. The area of the new triangle, which includes any required vertex position corrections, is used to compute the function gradients. Lastly, the function gradients are used to compute the function value at a reference point. Additional function values are then obtained by extrapolating from the reference point.
In gradient computation hardware having a memory for storing a plurality of image variables, each image variable being assocaited with a predetermined number of bits capable of representing data within a dynamic range, a method of clamping, by the gradient computation hardware, gradients in a computer graphics image, the method comprising steps of:
An apparatus for clamping gradients in a computer graphics image comprising:
A computer program product for use in conjunction with a computer system, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, the computer program mechanism comprising:
Dependencies are inferred from the claim text.