|Publication number||US5420970 A|
|Application number||US 08/192,935|
|Publication date||May 30, 1995|
|Filing date||Feb 7, 1994|
|Priority date||Mar 13, 1991|
|Publication number||08192935, 192935, US 5420970 A, US 5420970A, US-A-5420970, US5420970 A, US5420970A|
|Inventors||Walter R. Steiner, Steven V. Manno, Oscar G. Vela|
|Original Assignee||Martin Marietta Corporation|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (9), Non-Patent Citations (1), Referenced by (36), Classifications (6), Legal Events (5)|
|External Links: USPTO, USPTO Assignment, Espacenet|
This application is a Continuation of application Ser. No. 07/699,017, filed Mar. 13, 1991, now abandoned.
The present invention relates to computer image generation (CIG) and, more specifically, to a method for determining the portion of a computer-image-generated display which is occupied by a circular feature.
Those skilled in the computer-image-generation arts are well acquainted with the method of rendering a computer-generated image by dividing a display screen into pixels, and possibly further dividing each pixel into subpixels, before determining which of the pixels (and subpixels) lie inside each of the polygon surfaces to be shown on the display screen. The pixels/subpixels which lie inside the surface are subsequently assigned a color based upon the attributes of the surface to be displayed. Thus, those skilled in the art well know the methods for predetermination of inclusion or exclusion of a particular pixel/subpixel in a polygonal surface of the image. It is somewhat more difficult to determine which pixels/subpixels of a display screen are occupied by a portion of a feature, where a such a display circular feature is not only defined by its centroid (center position) and a color attribute, but also has a non-zero radius. While the centroid describes the X, Y, Z position of the feature center in the display environment, the radius describes the size of the feature. It is well known to transform, project and scale the centroid position to determine the I, J position (where I is the vertical-direction image screen coordinate position and J is the horizontal-direction image screen coordinate position). However, methods have hitherto been unavailable in this art for transforming the non-zero circular feature radius and for determining whether a pixel/subpixel is interior to the feature. It is therefore highly desirable to provide a method for determining the radial extent and inclusion/exclusion of a pixel/subpixel of a CIG display portion within a circular feature.
In accordance with the invention, a method for determining whether a particular cell of an array of display cells, whether the cells are full pixels or subpixel portions, is interior or exterior to a circular point feature of non-zero radius, uses a line segment length L, measured from the vertical feature diameter to the feature periphery, along a midpoint of each row of cells to be considered. For that cell row, all cells within L cells of the vertical diameter line are within the feature; the number of cells on each row changes as the row position changes with respect to the feature centroid. A comparison of a normalized vertical distance to the feature radius yields a parameter which is input to a look-up table to determine the extent of cells to be included in each row with that vertical distance from the centroid.
In a presently preferred embodiment, provision is made for elliptical features, to calculate distorted "circular" point features.
Accordingly, it is an object of the present invention to provide a novel method for determining whether a cell, in a display of a CIG system, is within a circular feature.
This and other objects of the present invention will become apparent to those skilled in the art upon reading the following detailed description of a presently preferred embodiment of the invention, when considered in conjunction with the associated drawings.
FIG. 1 is a plan view of a portion of a CIG display screen, illustrating the pixels/subpixel cells included within a surface polygon;
FIG. 2 is a plan view of a portion of a CIG display screen, illustrating the pixels/subpixels cells included within a circular feature, in accordance with the principles of the present invention; and
FIG. 3 is a schematic block diagram of a portion of apparatus for determining whether a pixel/subpixel cell is exterior or interior to a circular surface.
Referring initially to FIG. 1, a portion 10 of a CIG system display screen includes a number of cells 11 of a computer-image-generated video display. Each of the cells 11 may be a display pixel, or may be one of a number of subpixels of a display pixel, as required by the particular CIG system of which the display is a part. For purposes of illustration only, the illustrated display portion 10 may be a subspan comprised of four horizontal pixels by four vertical pixels (having boundaries shown by the heavier lines) with each pixel comprised of a 4×4 array of subpixels. It will be understood that: the number of subpixels in each pixel is purely arbitrary; there may be no subpixels in each pixel; and a 16 subpixel/pixel array (especially in a square format) is shown here only for explanational purposes. A polygon 14 (which may generally be a scalene triangle and the like) is defined by its vertices 14V1-14V3, its edges 14E1-14E3 therebetween, and its color attributes. It is well known to those skilled in the art to find the subpixels 14S which lie within polygon 14 and to transform, project, scale and perform the like operations upon the included subpixels (here shown with heavier outline and a subpixel center dot). Typically, the included subpixels 14S may have an image screen coordinated position defined by a first parameter I in the vertical screen direction and by a second parameter J in the horizonal screen direction. For example, the image-generating computer may be used to determine whether more than 50 percent of the area of each subpixel is occupied by a portion of the polygon 14, for inclusion of that subpixel within polygon 14. This procedure typically requires a relatively lengthy series of calculations, based upon the vertices of each edge of the polygon.
Referring now to FIG. 2, in accordance with one aspect of the present invention, a circular surface feature 16, placed upon a display screen portion 10' (comprised of pixels, which may be each further comprised of subpixels, as above), is defined by a center position, or centroid, P which describes the X, Y, Z position of the feature center in the screen environment, and thus may be defined by a first quantity Pi which defines the feature center in the I vertical screen direction, and by a second quantity Pj which defines the feature center in the J horizontal screen direction, both as located with respect to a central screen point (not shown) at which Pi =0=Pj ; the feature 16 is also defined by a non-zero-length radius R describing the size of feature 16, and at least one color attribute. As with the positions of the polygon vertices 14V1-14V3 of FIG. 1, the centroid position P can be transformed, projected and scaled to determine the I, J positions thereof on an image screen; the feature radius R has hitherto been accommodated in one of two ways: either a substantially zero radius ("true point") has been assumed, or an actual radius has been carried through all transformations and the resulting non-zero-sized feature has remained a circular feature under all transformations.
In accordance with another feature of the present invention, all of the pixels/subpixel cells 11' about the centroid of a circular feature are tested to determine whether each pixel/subpixel cell is interior or exterior to the feature, in the image plane in which the feature is circular; once a pixel/subpixel cell is determined to be a cell 18 interior to the feature (i.e. to be an includable cell lying on a cell line), that pixel/subpixel cell is so marked and remains interior to the feature even while the feature undergoes transformation, projection, scaling and the like operations, so that the final feature includes all the necessary pixels/subpixel cells, even if the final image shape is distorted (e.g. into a line, ellipse and the like) from a true circle. Thus, each pixel/subpixel cell is processed and tested to determine whether that pixel/subpixel cell is interior to the feature surface and if so, color and Z distance of the circular feature is assigned to the pixel/subpixel cell. Subsequently, if other surfaces lie on that cell, a depth buffer operation, itself well known to those skilled in the art, can be performed to find the closest, and therefore, visible, surface on the pixel/subpixel; the depth buffer operation and theory is of no concern in the present invention, and is specifically excluded therefrom.
In order to allow for subsequent ellipticity of the feature, after transformation and the like operations, the common circular radius R is first transformed into a vertical radius Rv which is maintained separate from the horizontal radius Rh. The two radii are initially equal, Rh =Rv, as the feature 16 starts out as a circular feature, but can change to an ellipse as the display is operated upon. Each of the vertical and horizontal radii is now expressed in terms of the number of pixels/subpixel cells 11' traversed thereby, by the following procedure: a pixelized radius Rp is found by taking the quotient of the feature radius R and the Z component of the feature centroid, i.e. Rp =R/z. The vertical radius Rv =Si *Rp, where Si is the I direction scaling factor, Si =Imax /(2tan(Φ/2)), where Imax is the number of pixels I vertical direction and Φ is the vertical field-of-view half angle. Similarly, the horizontal radius Rh =Sj *Rp, where Sj is the J direction scaling factor, Sj =Jmax /(2 tan (Θ/2)), where Jmax is the number of pixels in the J horizontal direction and Θ is the horizontal field-of-view half angle. The projected centroid positions Pi and Pj are now known, as are the horizontal and vertical radii Rh and Rv, so that the pixel/subpixels 18 which lie within the circular feature boundary can be found by testing the point to determine whether the pixel/subpixel is interior to the feature or not.
The feature 16 lies on the image screen portion 10' and covers a multiplicity of cells 11' (pixels or subpixels, dependent upon the particular CIG system in use). For purpose of illustration, we assume that each cell 11' is a subpixel, with a square array of S×S subpixels forming a single pixel, and with a multiplicity of pixels being arrayed to form at least the screen portion 10'. Consider any subpixel 18, such as the pixel 18a having a center at a position (i, j). In general, this pixel 18a is not the pixel in which the feature 16 centroid Pi, Pj lies, and so must be tested for inclusion or exclusion in the feature (the sub-pixel 18b in which centroid Pi, Pj lies is the only cell which is automatically included in the feature). A presently preferred method of testing commences by first finding a ΔI where ΔI=|i-Pi |, and is the screen vertical direction offset distance. The length of a line segment L from the vertical diameter of the feature 16 to the point feature edge, at a vertical offset distance ΔI between the middle of the row and the feature centroid, is
which is derivable from the equation of an ellipse. Once the length of line segment L is found, a start Jstart line 20a and a stop Jstop line 20b can be found in the horizontal direction as
Jstart =Pj -L
Jstop =Pj +L.
For each row Ii of pixels, for i from Pi -Rv through Pi +Rv, each of the subpixel column designators j can be compared to Jstart and Jstop, and the subpixel will be inside the desired feature if
This condition is tested for by suitable means, and an output is enabled if the cell is includable in the feature.
These calculations can be carried out by a properly programmed general purpose computational means, such as a microprocessor and the like, or by dedicated hardware, such as the apparatus 20 shown in FIG. 3 and further explained, by way of example only, for rows I=21 through I=27 and columns J =15 through J=21 of the display portion in FIG. 2. For each of the rows Ii (where the maximum and minimum values, and the sequential-stepping through the subsequent range thereof, is determined by computational means not shown, in manner well known to the art), the difference between Ii and the vertical centroid position Pi is taken in a differencing means 22, to derive the absolute vertical offset ΔI. For example, if feature 16 has a centroid Pi =24 and Pj =18, with R=3, then the first row to be considered has Ii =(Pi -R)=21 and the last row is Ii =(Pi +R) =27. Initially, ΔI= 3(for row I=21). The feature vertical radius Rv data (e.g. here Rv =R) is input along with ΔI data, into a divisor means 24, to obtain the quantity (ΔI/Rv) data, here now equal to 1. The data for (ΔI/Rv) is provided to the x input 26a of a means 26 for providing an output y=(1-x2)1/2 at a data output 26b. Means 26 can be a square-root-providing means utilizing a table look-up (TLU) in which the square root of the quantity in parentheses is found by table look-up operations, in matter well known to the computational arts. The y quantity data at output 26b is the data of quantity (L/Rh) and is multiplied, in a multiplier means 28, by the horizontal radius Rh (here, Rh =R=3) of the feature feature, to obtain the line segment length L. Thus, for row I=21, the line segment L length is zero (the extent of point 16 at the center of row 21). There would be no further computation with L≦0. The next row Ii =22 data is now processed; ΔI is now equal to 2 and L is found to be about 2.24 subpixels long. The L data, for the present row, is simultaneously input to a first input of a subtractor means 30a and a first input of an addition means 30b. The remaining inputs of both means 30a and 30b receive the centroid column data Pj, so that the respective means 30a and 30b can provide the column start and stop data Jstart and Jstop, respectively. For row I= 22, Jstart is computed to be (18-2.24)≈(15.76) and is rounded off to Jstart =16; Jstop is computed as (18+2.24)=20.24 and is rounded off to Jstop =20. An arithmetic logic unit 42a compares the Ji column value with the start/stop values, and enables output 20c if the cell is within the feature. Thus, for (along the midrow of) Ii =22, all subpixels 18c-18f between J=16 and J=20 are included in the feature. It will be understood that, if there is vertical symmetry of a circular feature, the same beginning column Jstart and ending column Jstop obtain in the Ii =Pi +ΔI row (e.g. the Ii =26th row includes the subpixels 18c'-18 f' between J=16 and J=20). Having obtained the included subpixels in a row, the controlling circuitry introduces the next sequential row number (e.g. Ii =23) into means 22, and uses the new Jstart (=15) and Jstop (=21) data (also provided at outputs 20a/20b) to find the cells (subpixels 18g, through 18h) includable in that row (and, if symmetry is used, the subpixels 18g' through 18h' in the Ii +Pi +ΔI, here Ii =25, row). All rows are sequentially checked and a list is kept of includable cells, for subsequent use, as needed.
While one presently preferred embodiment is shown of our novel method for determining which cells of a display cell array are includable in a circular feature, many modifications and variations will now occur to those skilled in the art. It is our intent to be limited only by the scope of the appending claims, and not by the specific details and instrumentalities described for the exemplary embodiment set forth hereinabove.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US3789200 *||Jun 30, 1972||Jan 29, 1974||Ibm||Circle or arc generator for graphic display|
|US4371933 *||Oct 6, 1980||Feb 1, 1983||International Business Machines Corporation||Bi-directional display of circular arcs|
|US4459676 *||Jun 18, 1981||Jul 10, 1984||Nippon Electric Co., Ltd.||Picture image producing apparatus|
|US4835722 *||Nov 9, 1987||May 30, 1989||International Business Machines Corporation||Curve generation in a display system|
|US4962468 *||Dec 9, 1987||Oct 9, 1990||International Business Machines Corporation||System and method for utilizing fast polygon fill routines in a graphics display system|
|US5146551 *||Apr 18, 1986||Sep 8, 1992||International Business Machines Corporation||System for generating a circular or elliptic arc on a digital display|
|US5261033 *||Oct 31, 1990||Nov 9, 1993||Dainippon Screen Mfg. Co., Ltd.||Method of and apparatus for converting line graphic into graphic having curve|
|US5274754 *||Apr 14, 1986||Dec 28, 1993||Advanced Micro Devices, Inc.||Method and apparatus for generating anti-aliased vectors, arcs and circles on a video display|
|US5299302 *||Aug 5, 1992||Mar 29, 1994||Hewlett-Packard Company||Method and apparatus for trimming b-spline descriptions of patches in a high performance three dimensional graphics system|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US5793386 *||Jun 28, 1996||Aug 11, 1998||S3 Incorporated||Register set reordering for a graphics processor based upon the type of primitive to be rendered|
|US5828382 *||Aug 2, 1996||Oct 27, 1998||Cirrus Logic, Inc.||Apparatus for dynamic XY tiled texture caching|
|US5835097 *||Dec 30, 1996||Nov 10, 1998||Cirrus Logic, Inc.||Non-homogenous second order perspective texture mapping using linear interpolation parameters|
|US5835104 *||Apr 23, 1997||Nov 10, 1998||S3 Incorporated||Variable band size compositing buffer method and apparatus|
|US5841442 *||Dec 30, 1996||Nov 24, 1998||Cirrus Logic, Inc.||Method for computing parameters used in a non-homogeneous second order perspective texture mapping process using interpolation|
|US5844576 *||Dec 30, 1996||Dec 1, 1998||Cirrus Logic, Inc.||Tiled linear host texture storage|
|US5875295 *||Sep 30, 1996||Feb 23, 1999||S3 Incorporated||Instruction format for ensuring safe execution of display list|
|US5929869 *||Mar 5, 1997||Jul 27, 1999||Cirrus Logic, Inc.||Texture map storage with UV remapping|
|US5936635 *||Jun 28, 1996||Aug 10, 1999||Cirrus Logic, Inc.||System and method of rendering polygons into a pixel grid|
|US5940090 *||May 7, 1997||Aug 17, 1999||Cirrus Logic, Inc.||Method and apparatus for internally caching the minimum and maximum XY pixel address values in a graphics subsystem|
|US5949421 *||Mar 31, 1997||Sep 7, 1999||Cirrus Logic, Inc.||Method and system for efficient register sorting for three dimensional graphics|
|US5977983 *||Feb 20, 1997||Nov 2, 1999||S3 Incorporated||Method and apparatus for adjusting graphics processing procedures based on a selectable speed/quality gauge|
|US5978895 *||Apr 4, 1997||Nov 2, 1999||Cirrus Logic, Inc.||Method for speeding mathematical operations in a processor core|
|US5986663 *||Oct 10, 1997||Nov 16, 1999||Cirrus Logic, Inc.||Auto level of detail-based MIP mapping in a graphics processor|
|US5987582 *||Sep 30, 1996||Nov 16, 1999||Cirrus Logic, Inc.||Method of obtaining a buffer contiguous memory and building a page table that is accessible by a peripheral graphics device|
|US6002409 *||Oct 29, 1997||Dec 14, 1999||Cirrus Logic, Inc.||Arbitration for shared graphics processing resources|
|US6008796 *||May 15, 1997||Dec 28, 1999||S3 Incorporated||Software-based dithering method and apparatus using ramp probability logic|
|US6028613 *||Mar 20, 1997||Feb 22, 2000||S3 Incorporated||Method and apparatus for programming a graphics subsystem register set|
|US6052127 *||Dec 30, 1996||Apr 18, 2000||Cirrus Logic, Inc.||Circuit for determining non-homogenous second order perspective texture mapping coordinates using linear interpolation|
|US6054993 *||Sep 17, 1997||Apr 25, 2000||Cirrus Logic, Inc.||Chroma-keyed specular texture mapping in a graphics processor|
|US6072508 *||Mar 14, 1997||Jun 6, 2000||S3 Incorporated||Method and apparatus for shortening display list instructions|
|US6088016 *||Dec 30, 1996||Jul 11, 2000||S3 Incorporated||Dithering method and apparatus using ramp probability logic|
|US6097401 *||Nov 26, 1997||Aug 1, 2000||Cirrus Logic, Inc.||Integrated graphics processor having a block transfer engine for automatic graphic operations in a graphics system|
|US6130674 *||Mar 31, 1997||Oct 10, 2000||Cirrus Logic, Inc.||Dynamically selectable texture filter for computer graphics|
|US6157386 *||Oct 10, 1997||Dec 5, 2000||Cirrus Logic, Inc||MIP map blending in a graphics processor|
|US6181347||Sep 17, 1997||Jan 30, 2001||Cirrus Logic, Inc.||Selectable mode smoothing texture filter for computer graphics|
|US6252606||Jun 30, 1998||Jun 26, 2001||Cirrus Logic, Inc.||Error correction in a graphics processor|
|US6259455||Jun 30, 1998||Jul 10, 2001||Cirrus Logic, Inc.||Method and apparatus for applying specular highlighting with specular components included with texture maps|
|US6266753||Jul 10, 1997||Jul 24, 2001||Cirrus Logic, Inc.||Memory manager for multi-media apparatus and method therefor|
|US6333746||Nov 6, 1997||Dec 25, 2001||Cirrus Logic, Inc.||Auto level of detail texture mapping for a software graphics engine|
|US6348917||Sep 30, 1996||Feb 19, 2002||Cirrus Logic, Inc||Dynamic switching of texture mip-maps based on depth|
|US6744434||Nov 30, 2001||Jun 1, 2004||Caterpillar Inc||Cuts removal system for triangulated CAD Models|
|US6897863||Nov 30, 2001||May 24, 2005||Caterpillar Inc||System and method for hidden object removal|
|US8681154 *||Jul 15, 2010||Mar 25, 2014||Rockwell Collins, Inc.||Adaptive rendering of indistinct objects|
|US20030103048 *||Nov 30, 2001||Jun 5, 2003||Caterpillar Inc.||System and method for hidden object removal|
|US20060109285 *||Nov 23, 2004||May 25, 2006||Chan Victor G||Method and apparatus for writing a non-rectangular frame to a display device|
|U.S. Classification||345/627, 345/442, 345/428|
|Jan 14, 1998||AS||Assignment|
Owner name: REAL 3D, INC., FLORIDA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LOCKHEED MARTIN CORPORATION;REEL/FRAME:008896/0687
Effective date: 19971230
|Nov 30, 1998||FPAY||Fee payment|
Year of fee payment: 4
|Mar 22, 2001||AS||Assignment|
Owner name: INTEL CORPORATION, CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:REAL 3D, INC.;REEL/FRAME:011658/0764
Effective date: 20010301
|Sep 30, 2002||FPAY||Fee payment|
Year of fee payment: 8
|Nov 27, 2006||FPAY||Fee payment|
Year of fee payment: 12