×

Method and apparatus for shadow generation through depth mapping

  • US 5,742,749 A
  • Filed: 02/20/1996
  • Issued: 04/21/1998
  • Est. Priority Date: 07/09/1993
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer controlled display system for displaying three dimensional scenes, each of said three dimensional scenes comprised of a plurality of graphical primitives, said graphical primitives represented by pixels on a display screen, a method for displaying shadows in a scene caused by a light source, said method comprising the steps of:

  • a) generating a depth map in a light coordinate system and storing said depth map in a texture map storage, said light coordinate system having said light source as an origin, said depth map storing in said texture map storage a plurality of depth map sample values, wherein each depth map sample value identifies a distance from a pixel location in one of said graphical primitives to said light source;

    b) rendering said scene from the viewpoint of a viewer by processing each of said graphical primitives of said scene, said processing comprising the steps of;

    1) identifying pixels corresponding to each of said graphical primitives;

    2) for each pixel, determining if it is visible from said viewer'"'"'s viewpoint;

    3) ignoring pixels that are not visible;

    4) for each pixel that is visible, generating a shadow coefficient, indicating the degree to which a pixel is in shadow, wherein each pixels shadow coefficient is used to shade said pixel, wherein said shadow coefficient for said pixel is generated by performing the steps of;

    generating light system coordinates for said pixel using a projective texture mapping technique, said light system coordinates comprising a pixel depth map index for indexing said texture map storage and a pixel depth value;

    retrieving a predetermined number of depth map sample values from said texture map storage based on said pixel depth map index;

    comparing each of said predetermined number of depth map sample values to said pixel depth value; and

    using results of said comparison between said predetermined number of depth map sample values, and said pixel depth value to generate said shadow coefficient for said pixel and using said shadow coefficient to generate shading values for said pixel and displaying said pixel.

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