×

Stereoscopic vertex shader override

  • US 8,004,515 B1
  • Filed: 03/15/2005
  • Issued: 08/23/2011
  • Est. Priority Date: 03/15/2005
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method of modifying a monoscopic image producing vertex shader program to generate stereoscopic images, comprising:

  • determining that a stereoscopic image generation mode is enabled;

    identifying a vertex shader program instruction in the monoscopic image producing vertex shader program, wherein the vertex shader program instruction writes a final vertex position and computes a first x coordinate value for a vertex of a graphics primitive;

    determining a first value of a parameter and a second value of the parameter based on a user-provided input that indicates a desired amount of stereo effect;

    modifying the monoscopic image producing vertex shader program to generate a first vertex shader program associated with a first stereoscopic image of a stereoscopic image pair, wherein the first vertex shader program includes an instruction that, when executed, computes a second x coordinate value by summing the first x coordinate with a product of the first value of the parameter and a first depth value that indicates the difference between a distance between a first viewpoint and an object within the stereoscopic image pair and a distance between the first viewpoint and a surface on which the stereoscopic image pair is to be displayed;

    modifying the monoscopic image producing vertex shader program to generate a second vertex shader program associated with a second stereoscopic image of the stereoscopic image pair, wherein the second vertex shader program includes an instruction that, when executed, computes a third x coordinate value by summing the first x coordinate with a product of the second value of the parameter and a second depth value that indicates the difference between a distance between a second viewpoint and the object and a distance between the second viewpoint and the surface;

    executing the first vertex shader program to produce the first stereoscopic image of a stereoscopic image pair;

    executing the second vertex shader program to produce the second stereoscopic image of the stereoscopic image pair; and

    displaying via a display device or storing in a memory the second stereoscopic image of the stereoscopic image pair.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×