Texture mapping apparatus computing texture address by fill address
First Claim
1. A texture mapping apparatus for mapping a desired texture pattern on an image which two-dimensionally represents a three-dimensional object so as to display a surface structure of the object, the apparatus comprising:
- frame memory means having storage locations for storing image data representative of the image of the object pixel by pixel, the frame memory means being provided with addresses to indicate the storage locations;
texture memory means having storage locations for storing texture data representative of at least the desired texture pattern, the texture memory means being provided with addresses to indicate the storage locations;
coordinates input means for inputting fill coordinates to designate an area of the image to which the desired texture pattern is allocated, and for separately inputting texture coordinates to designate a corresponding area of the desired texture pattern which is allocated to the area of the image;
address generating means operative based on the inputted fill coordinates for generating fill addresses of the frame memory means which correspond to pixels in the area of the image, the address generating means also being operative based on the inputted texture coordinates for generating texture addresses of the texture memory means which correspond to the fill addresses; and
mapping means for reading out the texture data from the storage locations of the texture memory means which are designated by the texture addresses, and for writing the read texture data into the storage locations of the frame memory means which are designated by the corresponding fill addresses, in order to allocate the desired texture pattern to the image of the object,wherein when the address generating means initially generates a texture address that does not fall within the range of storage locations of the texture memory means that stores the desired texture pattern, the initial texture address is converted into a corresponding texture address within the range of storage locations of the texture memory means that stores the desired texture pattern, and the mapping means operates based on the corresponding texture address.
1 Assignment
0 Petitions
Accused Products
Abstract
A texture mapping apparatus applies a texture pattern to an image which two-dimensionally represents a three-dimensional object so as to display a surface structure of the object. A frame memory is provided with storage locations identified by addresses for storing image data representative of the image of the object pixel by pixel. A texture memory is provided with storage locations identified by addresses for storing texture data representative of the texture pattern. A CPU inputs fill coordinates to determine an area of the image to which the texture pattern is applied. Further, the CPU separately inputs texture coordinates to determine a corresponding area of the texture pattern which is applied to the area of the image. A fill address generator operates based on the fill coordinates for generating fill addresses of the frame memory which correspond to pixels in the area of the image. A texture address generator operates based on the texture coordinates for generating texture addresses of the texture memory which correspond to the fill addresses. A selector is operated to read out the texture data from the storage locations of the texture memory which are designated by the texture addresses, and to write the read texture data into storage locations of the frame memory which are designated by the corresponding fill addresses.
-
Citations
8 Claims
-
1. A texture mapping apparatus for mapping a desired texture pattern on an image which two-dimensionally represents a three-dimensional object so as to display a surface structure of the object, the apparatus comprising:
-
frame memory means having storage locations for storing image data representative of the image of the object pixel by pixel, the frame memory means being provided with addresses to indicate the storage locations; texture memory means having storage locations for storing texture data representative of at least the desired texture pattern, the texture memory means being provided with addresses to indicate the storage locations; coordinates input means for inputting fill coordinates to designate an area of the image to which the desired texture pattern is allocated, and for separately inputting texture coordinates to designate a corresponding area of the desired texture pattern which is allocated to the area of the image; address generating means operative based on the inputted fill coordinates for generating fill addresses of the frame memory means which correspond to pixels in the area of the image, the address generating means also being operative based on the inputted texture coordinates for generating texture addresses of the texture memory means which correspond to the fill addresses; and mapping means for reading out the texture data from the storage locations of the texture memory means which are designated by the texture addresses, and for writing the read texture data into the storage locations of the frame memory means which are designated by the corresponding fill addresses, in order to allocate the desired texture pattern to the image of the object, wherein when the address generating means initially generates a texture address that does not fall within the range of storage locations of the texture memory means that stores the desired texture pattern, the initial texture address is converted into a corresponding texture address within the range of storage locations of the texture memory means that stores the desired texture pattern, and the mapping means operates based on the corresponding texture address. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A texture mapping apparatus for mapping a texture pattern on an image which two-dimensionally represents a three-dimensional object so as to display a surface structure of the object, the apparatus comprising:
-
frame memory means having storage locations for storing image data representative of the image of the object pixel by pixel, the frame memory means being provided with addresses for indicating the storage locations; texture memory means having a memory region defined in a part of an entire memory plane of the texture memory means for storing texture data representative of a periodic texture pattern, and having complete addresses each composed of a bit train containing higher order bits and lower order bits while sub-addresses each composed of the lower order bits are assigned to storage locations of the texture data within the memory region; coordinates input means for inputting fill coordinates to determine an area of the image to which the texture pattern is allocated, and for separately inputting texture coordinates to determine a corresponding area of the periodic texture pattern which is allocated to the area of the image; address generating means operative based on the fill coordinates for generating fill addresses of the frame memory means which correspond to pixels within the area of the image, the address generating means also being operative based on the texture coordinates for generating texture complete addresses of the texture memory means which correspond to the fill addresses and thereafter masking the higher order bits of each of the texture complete addresses so as to convert the same into texture sub-addresses, so that when the generated texture complete address does not fill within the range of storage locations of the memory region storing the periodic texture pattern, the texture complete address is converted into the corresponding texture sub-address within the range of storage locations of the memory region storing the periodic texture pattern; and mapping means for reading out texture data from the storage locations within the memory region according to the converted texture sub-addresses, and for writing the read texture data into the storage locations of the frame memory means which are designated by the fill addresses, in order to map the periodical texture pattern on the image of the object. - View Dependent Claims (8)
-
Specification