×

Method and apparatus for shading images

  • US 5,063,375 A
  • Filed: 09/18/1989
  • Issued: 11/05/1991
  • Est. Priority Date: 07/27/1987
  • Status: Expired due to Term
First Claim
Patent Images

1. An apparatus for generating shading values of graphic objects for display at a predetermined location on a graphics display device, said graphic objects comprising vectors, curves, polygons and patches, each graphic object defined by graphic object pixel data initially comprising a representation of the color of the graphic object, said graphic object shaded according to a light source, said device comprising a central processing unit (CPU), memory, a frame buffer and a display device which displays the pixel data stored in the frame buffer, said apparatus comprising:

  • means for modifying the graphic object pixel data according to specular and diffuse functions to include specular and diffuse shading values for the graphic object,said specular function determined from specular shading scan line values, an object specular exponent for the graphic object and a surface normal vector for the graphic object, said specular shading scan line values being determined according to the dot product of the surface normal vector and unit vector in the direction of maximum highlight,said diffuse function determined from diffuse shading scan line values, a coefficient of ambient reflection of the graphic object, the surface normal vector for the graphic object, a pattern memory relevant to the graphic object, said diffuse shading scan line values being determined according to the dot product of the surface normal vector and a unit vector in the direction of the light source;

    means or modifying the graphic object pixel data to produce a depth cue effect according to a depth cue function, said depth cue function determined for a depth cue color for the graphic object, said background color and the graphic object pixel data;

    means for modifying the graphic object pixel data to produce an anti-aliase effect according to an anti-aliase function, said anti-aliase function determined from a modified Bresenham error function, and the pixel data read from the frame buffer located at the predetermined location the graphic object is to be displayed;

    means for modifying he graphic object pixel data to produce a transparency effect according to a transparency function, said transparency function determined from a transparency coefficient for the graphic object, pixel data read from the frame buffer located at the predetermined location the graphic object is to be displayed and the graphic object pixel data;

    means for organizing the means for modifying the graphic object pixel data according to specular and diffuse functions, means for modifying ht graphic object pixel data to produce an anti-aliase effect, means for modifying the graphic object pixel data to produce a depth cue effect and means for modifying the graphic object pixel data to produce a transparency effect in a pipeline structure, said pipeline structure comprising means which serially connect said means for modifying the graphic object pixel data according to specular and diffuse functions, means for modifying the graphic object pixel data to produce an anti-aliase effect, means for modifying the graphic object pixel data to produce a depth cue effect and means for modifying the graphic object pixel data to produce a transparency effect such that the output of one means is connected to the input of another means, the first means connected in the pipeline structure having unmodified graphic object pixel data as one of its input and the last means connected in the pipeline being input to he frame buffer and having as its output the modified pixel data a reflective of a shaded image of the graphic object;

    means for the CPU to selectively enable said means for modifying the graphic object pixel data according to specular and diffuse functions, means for modifying the graphic object pixel data to produce an anti-aliase effect, means for modifying the graphic object pixel data to produce a depth cue effect and means for modifying the graphic object pixel data to produce a transparency effect according to the type of graphic object the graphic object pixel data defines; and

    means for the frame buffered to receive the output of the last means connected in the pipeline structure and the frame buffered for subsequent display of the shaded image of the graphic object.

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