Stereoscopic vertex shader override
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.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method that produces stereoscopic images modifies a vertex shader program that was intended to produce a single monoscopic image. When executed, the modified vertex shader program generates a first image of a stereoscopic image pair based on a first viewpoint and generates a second image of the stereoscopic image pair based on a second viewpoint.
52 Citations
8 Claims
-
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 Dependent Claims (2, 3)
-
-
4. A system configured to modify a monoscopic image producing vertex shader program to generate stereoscopic images, comprising:
-
a memory storing a graphics device driver that is configured to; determine that a stereoscopic image generation mode is enabled, identify 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 an x coordinate value for a vertex of a graphics primitive, determine 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; modify the monoscopic image producing vertex shader program to generate 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; modify 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; and a geometry processing unit configured to; execute the first vertex shader program to produce the first stereoscopic image of a stereoscopic image pair, and execute the stereoscopic vertex shader program to produce the first stereoscopic image and the second stereoscopic image of the stereoscopic image pair. - View Dependent Claims (5, 6)
-
-
7. A system configured to modify a monoscopic image producing vertex shader program to produce stereoscopic images, comprising:
-
a memory; and a geometry processing unit including a vertex shader instruction unit that is configured to; determine that a stereoscopic image generation mode is enabled; determine a first parameter value and a second parameter value based on a user-provided input that indicates a desired amount of stereo effect; read a stereoscopic vertex shader program that includes a first vertex shader program associated with a first stereoscopic image of a stereoscopic image pair and a second vertex shader program associated with a second stereoscopic image of the 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, and 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; based on the first vertex shader program, configure a position computation unit within the geometry processing unit to compute a first x coordinate value for the vertex of the graphics primitive to produce a first stereoscopic image of a stereoscopic image pair using the first parameter value; and based on the second vertex shader program, compute a second x coordinate value for the vertex of the graphics primitive to produce a second stereoscopic image of the stereoscopic image pair using the second parameter value. - View Dependent Claims (8)
-
Specification