Adjustment of Z-buffer values for lines on the surface of a polygon
First Claim
1. A method of three dimensionally displaying on a computer graphics system having a Z-buffer and a display, a polygon having a line contained on a surface of the polygon, said Z-buffer for storing depth values associated with said polygon and said line, said method comprising the steps of:
- setting a range of depth values corresponding to a percentage of all of said depth values in said Z-buffer;
drawing said line on said display wherein the depth value for said line falls within said range;
shifting said range of said depth values within said Z-buffer by a shift amount dependent upon an angle between a normal vector to said polygon surface and a vector perpendicular to said display; and
drawing said polygon on said display at a depth within said shifted range, said polygon surface having a greater depth within said Z-buffer than said line.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method in a graphics environment ensures that a line drawn upon the surface of a polygon is always visible to a user of the graphics system. In a Z-buffered environment the range of depth values contained therein are set to the 75% of the total capacity which is considered closest to the surface of a display screen. The line is then drawn into this 75% set of Z-buffer depth values. A shift is then computed, based upon the normal to the polygon in device coordinates. This shift is then added to the previously set 75% range of Z-buffer depth values. The polygon is then drawn at a depth equal to the previously set range plus the shift. Thus, the line will always be visible since, the polygon surface will always be considered by a graphics adapter to be deeper than the line contained on the surface thereof.
36 Citations
8 Claims
-
1. A method of three dimensionally displaying on a computer graphics system having a Z-buffer and a display, a polygon having a line contained on a surface of the polygon, said Z-buffer for storing depth values associated with said polygon and said line, said method comprising the steps of:
-
setting a range of depth values corresponding to a percentage of all of said depth values in said Z-buffer; drawing said line on said display wherein the depth value for said line falls within said range; shifting said range of said depth values within said Z-buffer by a shift amount dependent upon an angle between a normal vector to said polygon surface and a vector perpendicular to said display; and drawing said polygon on said display at a depth within said shifted range, said polygon surface having a greater depth within said Z-buffer than said line. - View Dependent Claims (2, 3, 4)
-
-
5. A computer graphics system, for three dimensionally displaying a polygon having a line contained on a surface of the polygon, comprising:
-
a Z-buffer for storing depth values associated with said polygon and said line; means for setting a range of depth values corresponding to a percentage of all said depth values within said Z-buffer; means for drawing said line on a display at a depth value falling within said range of depth values; means for shifting said range of said depth values in said Z-buffer by a shift amount dependent upon an angle between a normal vector to said polygon surface and a vector perpendicular to said display; and means for drawing said polygon at a depth within said range, shifted by said means for shifting, said polygon surface having a greater depth within said Z-buffer than said line. - View Dependent Claims (6, 7, 8)
-
Specification