Bilinear Filtering - Special Cases

Special Cases

Textures aren't infinite, in general, and sometimes one ends up with a pixel coordinate that lies outside the grid of texel coordinates. There are a few ways to handle this:

  • Wrap the texture, so that the last texel in a row also comes right before the first, and the last texel in a column also comes right above the first. This works best when the texture is being tiled.
  • Make the area outside the texture all one color. This may be of use for a texture designed to be laid over a solid background or to be transparent.
  • Repeat the edge texels out to infinity. This works best if the texture is not designed to be repeated.

Read more about this topic:  Bilinear Filtering

Famous quotes containing the words special and/or cases:

    Mr. Christian, it is about time for many people to begin to come to the White House to discuss different phases of the coal strike. When anybody comes, if his special problem concerns the state, refer him to the governor of Pennsylvania. If his problem has a national phase, refer him to the United States Coal Commission. In no event bring him to me.
    Calvin Coolidge (1872–1933)

    We noticed several other sandy tracts in our voyage; and the course of the Merrimack can be traced from the nearest mountain by its yellow sand-banks, though the river itself is for the most part invisible. Lawsuits, as we hear, have in some cases grown out of these causes. Railroads have been made through certain irritable districts, breaking their sod, and so have set the sand to blowing, till it has converted fertile farms into deserts, and the company has had to pay the damages.
    Henry David Thoreau (1817–1862)