TEXTURE GENERATION USING A TRANSFORMATION MATRIX
A method of generating a texture object comprises, with a processor, generating a data set that defines a texture, dividing the texture into a number of texture sections comprising a number of texture vertices, generating a data set that defines an object, dividing the object into a number of object sections comprising a number of object vertices, generating a transformation matrix that defines the mathematical relationship between the texture vertices and their corresponding object vertices, and creating a data set that defines the texture object using the transformation matrix.
1 . A method of generating a texture object, the method comprising:
with a processor, generating a data set that defines a texture;
dividing the texture into a number of texture sections comprising a number of texture vertices;
generating a data set that defines an object;
dividing the object into a number of object sections comprising a number of object vertices;
generating a transformation matrix that defines the mathematical relationship between the texture vertices and their corresponding object vertices; and
creating a data set that defines the texture object using the transformation matrix.
2 . The method of claim 1 , in which:
the object sections and the texture sections contain the same number of vertices; and
the texture vertices have corresponding object vertices to which they will project onto.
3 . The method of claim 1 , in which creating a data set that defines the texture object further comprises projecting the texture onto the object by using the transformation matrix and object vertices to compute the texture vertices.
4 . The method of claim 1 , further comprising:
rendering the texture object into a rasterized texture object that can be displayed on a display device; and
displaying the rasterized texture object on the display device.
5 . The method of claim 1 , in which the object sections and the texture sections comprise similarly shaped geometries.
6 . The method of claim 4 , in which the object sections and the texture sections comprise triangular geometries.
7 . The method of claim 1 , in which the mathematical relationship between the texture vertices and the object vertices is linear.
8 . The method of claim 1 , further comprising storing the object vertices and the transformation matrix to a cache.
9 . A system to render an object comprising:
a processor to:
generate a data set that defines a texture;
divide the texture into a number of texture sections comprising a number of texture vertices;
generate a data set that defines an object;
divide the object into a number of object sections comprising a number of object vertices; and
generate a transformation matrix that defines the mathematical relationship between the texture vertices and their corresponding object vertices; and
a graphics processor to create a data set that defines the texture object using the transformation matrix.
10 . The system of claim 8 , in which the graphics processor further projects the texture onto the object using the transformation matrix and object vertices to compute the texture vertices.
11 . The system of claim 8 , in which the graphics processor further renders the texture object into a rasterized texture object that can be displayed on a display device.
12 . The system of claim 8 , further comprising a cache that receives and stores the matrix and object vertices.
13 . The system of claim 11 , further comprising a display device that displays the rasterized texture object.
14 . A computer program product for generating a texture object, the computer program product comprising:
a computer readable storage medium comprising computer usable program code embodied therewith, the computer usable program code comprising:
computer usable program code that, when executed by a processor, generates a data set that defines a texture;
computer usable program code that, when executed by a processor, divides the texture into a number of texture sections comprising a number of texture vertices;
computer usable program code that, when executed by a processor, generates a data set that defines an object;
computer usable program code that, when executed by a processor, divides the object into a number of object sections comprising a number of object vertices;
computer usable program code that, when executed by a processor, generates a transformation matrix that defines the mathematical relationship between the texture vertices and their corresponding object vertices; and
computer usable program code that, when executed by a processor, creates a data set that defines the texture object by projecting the texture onto the object by using the transformation matrix and object vertices to compute the texture vertices.
15 . The computer program product of claim 13 , further comprising:
computer usable program code that, when executed by a processor, renders the texture object into a rasterized texture object that can be displayed on a display device;
computer usable program code that, when executed by a processor, displays the rasterized texture object on the display device; and
computer usable program code that, when executed by a processor, stores the object vertices and the matrix to a memory storage device.