next up previous contents
Next: 6.8.3 Implementing High Resolution Up: 6.8 Paging Textures Previous: 6.8.1 Texture Subloading

6.8.2 Paging Images in System Memory

Up to this point, we've assumed that the texel data is available as a large contiguous image in system memory. Just as texture memory is a limited resource, it also makes sense to conserve system memory as well. For very large texture images, the image data can be divided into tiles, and paged into system memory. This paging can be kept separate from the paging going on from system memory to texture memory. The only difference will be in the offsets required to index the proper region in system memory to download, and increase the number of subloads required to update texture memory. A sophisticated system can wrap texture image data in system memory just as texture coordinates are wrapped in texture memory.

Consider the case of a two dimensional image roam, illustrated in Figure 35, in which the view is moving to the right. As the view pans to the right, new texture tiles must be added to the right edge of the current portion of the texture and old tiles could be discarded from the left edge.

Tiles discarded on the right side of the image create holes where new tiles could be loaded into the texture, but there is a problem with the texture coordinates.

 

% latex2html id marker 5630
\fbox{\begin{tabular}{c}
\vrule width 0pt height 0.1...
...icolumn{1}{p{5.7in}}{\small Figure \thefigure . 2D Image Roam}\\
\end{tabular}}

The ability to load subregions within a texture has other uses besides these paging applications. Without this capability textures must be loaded in their entirety and their widths and heights must be powers of two. In the case of video data, the images are typically not powers of two so a texture of the nearest larger power of two can be created and only the relevant subregion needs to be loaded. When drawing geometry, the texture coordinates are simply constrained to the fraction of the texture which is occupied with valid data. Mipmapping can not easily be used with non-power-of-two image data since the coarser levels will contain image data from the invalid region of the texture.


next up previous contents
Next: 6.8.3 Implementing High Resolution Up: 6.8 Paging Textures Previous: 6.8.1 Texture Subloading
David Blythe
1999-08-06