Texel (graphics)

Voronoi polygons for a group of texels.
Voronoi polygons for a group of texels.

A texel, texture element, or texture pixel is the fundamental unit of a texture map,[1] used in computer graphics. Textures are represented by arrays of texels representing the texture space, just as other images are represented by arrays of pixels.

Texels can also be described by image regions that are obtained through a simple procedure such as thresholding. Voronoi tesselation can be used to define their spatial relationships. This means that a division is made at the half-way point between the centroid of each texel and the centroids of every surrounding texel for the entire texture. The result is that each texel centroid will have a Voronoi polygon surrounding it. This polygon region consists of all points that are closer to its texel centroid than any other centroid.[2]

Rendering texels

Two different projector functions.
Two different projector functions.

When texturing a 3D surface or surfaces (a process known as texture mapping), the renderer maps texels to appropriate pixels in the output picture. On modern computers, this operation is accomplished on the graphics processing unit.

The texturing process starts with a location in space. The location can be in world space, but typically it is in Model space so that the texture moves with the model. A projector function is applied to the location to change the location from a three-element vector to a two-element vector with values ranging from zero to one (uv).[3] These values are multiplied by the resolution of the texture to obtain the location of the texel. When a texel is requested that is not on an integer position, texture filtering is applied.

When a texel is requested that is outside of the texture, one of two techniques is used: clamping or wrapping. Clamping limits the texel to the texture size, moving it to the nearest edge if it is more than the texture size. Wrapping moves the texel in increments of the texture's size to bring it back into the texture. Wrapping causes a texture to be repeated; clamping causes it to be in one spot only.

See also

References

  1. Andrew Glassner, An Introduction to Ray Tracing, San Francisco: MorganKaufmann, 1989
  2. Linda G. Shapiro and George C. Stockman, Computer Vision, Upper Saddle River: PrenticeHall, 2001
  3. Tomas Akenine-Moller, Eric Haines, and Naty Hoffman, Real-Time Rendering, Wellesley: A K Peters, 2008
This article is issued from Wikipedia - version of the 7/21/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.