×

Method and apparatus for sequencing composite operations of pixels

  • US 5,175,805 A
  • Filed: 10/30/1990
  • Issued: 12/29/1992
  • Est. Priority Date: 10/30/1990
  • Status: Expired due to Term
First Claim
Patent Images

1. An apparatus for generating graphic images from graphic objects for display on a graphics display device, said graphics display device comprising a matrix of pixels, said apparatus comprising a central processing unit (CPU), memory, a frame buffer connected to the CPU and the display device, said graphic image being displayed on the display device according to the pixel data stored in the frame buffer, each pixel data comprising an (x, y, z) coordinate pixel location on the display device, the color of the pixel and a subpixel mask which identifies the extent of coverage across the pixel, said z coordinate identifying the depth of the pixel, said apparatus further comprising:

  • input means connected to the CPU for receiving data defining the graphic object;

    translating means connected to the input means for translating the graphic object data to graphic image pixel data which defines the image of the graphic object;

    retrieval means connected to the frame buffer for retrieving the corresponding frame buffer pixel data stored in the frame buffer, said corresponding frame buffer pixel data identifying a pixel located at the same (x, y) coordinate pixel locations as the graphic image pixel data to be rendered;

    a pixel buffer;

    comparison means comprising a first and second input respectively connected to the translating means, the pixel buffer and the retrieval means for receiving graphic image pixel data and the corresponding frame buffer pixel data, and a first and second output respectively connected to the frame buffer and the pixel buffer, said comparison means comparing the z value of the graphic image pixel data and the corresponding frame buffer pixel data and the subpixel mask of the graphic image pixel data and the subpixel mask of the corresponding frame buffer pixel data, said comparison means comprising;

    if the z value of the graphic image pixel data is equal to the z value of the corresponding frame buffer pixel data,if the logical AND of the subpixel mask of the corresponding frame buffer pixel data and the subpixel mask of the graphic image pixel data is equal to zero, a first blending means for blending the graphic image pixel data and the corresponding frame buffer pixel data for output to the frame buffer, andif the logical AND of the subpixel mask of the corresponding frame buffer pixel data and the subpixel mask of the graphic image pixel data is not equal to zero, a second blending means for blending the graphic image pixel data and the corresponding frame buffer pixel data for output to the frame buffer;

    if the z value of the graphic image pixel data is less than the z value of the corresponding frame buffer pixel data,if the subpixel mask of the graphic image pixel data occludes the subpixel mask of the frame buffer pixel data, means for discarding the frame buffer pixel data and means for outputting the graphic image pixel data to the frame buffer, andif the subpixel mask of the graphic image pixel data is not occluded by the subpixel mask of the frame buffer pixel data, means for pushing the frame buffer pixel data into the pixel buffer and means for outputting the graphic image pixel data to the frame buffer;

    if the z value of the graphic image pixel data is greater than the z value of the corresponding frame buffer pixel data,if the subpixel mask of the frame buffer pixel data, occludes the subpixel mask of the graphic image pixel data, means for discarding the graphic image pixel data, andif the subpixel mask of the frame buffer pixel data does not occlude the subpixel mask of the graphic image pixel data, means for pushing the graphic image pixel data into the pixel buffer;

    when all graphic image pixel data has been compared to corresponding frame buffer pixel data, means for reading the pixel buffer data from the pixel buffer for input to the comparison means wherein if the subpixel mask of pixel buffer data is not occluded by the subpixel mask of the frame buffer pixel data, or if the subpixel mask of the frame buffer pixel data is not occluded by the subpixel mask of the pixel buffer data, a third blending means to blend the frame buffer pixel data and the pixel buffer data;

    display control means connected to the frame buffer and the graphic display to read the modified pixel data stored in the frame buffer and enable the corresponding pixels on the display at the color specified by the modified pixel data to generate the graphic image on the display;

    whereby only those graphic image pixel data which remain in the pixel buffer are combined with the frame buffer pixel data using time consuming compositing equations and the time consuming task of compositing of those graphic image pixels which are behind and occluded by frame buffer pixels is avoided.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×