Texture map

Also known as: image texture

On this page 7

A texture map is a two-dimensional image or data grid that a renderer samples through UV coordinates to vary a surface property, such as color, roughness or apparent relief, across a 3D model. In texturing & materials, the term covers every image that feeds a material input, from the visible albedo to purely numeric data that the viewer never sees directly.

The idea separates geometric complexity from surface detail. A low-polygon mesh can look like weathered brick or scratched steel because thousands of small variations live in pixels, called texels, rather than in vertices. Texture maps are therefore central to 3D graphics & animation, from real-time games to film rendering.

How a renderer samples a texture map

A renderer reads a texture map by converting each shading point into a UV coordinate and looking up the matching texel. The mesh stores UV coordinates per vertex, the rasterizer or ray tracer interpolates them across each triangle, and the shader fetches a value at the resulting position in the range 0 to 1 on both axes.

Because a screen pixel rarely matches one texel exactly, the lookup is filtered. Bilinear filtering blends the four nearest texels, while mipmapping stores progressively halved copies of the image so that distant surfaces sample a smaller version and avoid shimmering. Anisotropic filtering takes extra samples along the direction of stretch, which keeps floors and roads sharp at grazing angles.

The table below summarizes the main sampling controls and what each one affects.

ControlTypical optionsEffect on the result
FilteringNearest, bilinear, trilinearSmoothness between texels
MipmappingOn or off, level biasAliasing at a distance
Anisotropy1x to 16xSharpness at grazing angles
Wrap modeRepeat, clamp, mirrorBehavior outside 0 to 1
Color spacesRGB or linear (non-color)Correct math in shading
Texture sampling controls

Types of texture maps in a PBR material

Each texture map drives one material input, and a physically based material usually combines several of them. The albedo map supplies base color, while the others describe how light interacts with the surface. Each listed map type has its own detailed entry; this overview shows how they divide the work.

Map typeData storedColor spaceMaterial input
Albedo mapBase color without lightingsRGBBase color
Normal mapTangent-space normal vectorsLinearShading normal
Roughness mapMicrosurface spread, 0 to 1LinearRoughness
Metallic mapMetal or dielectric maskLinearMetallic
Ambient occlusion mapCavity shadowingLinearDiffuse attenuation
Displacement mapHeight offsetLinearGeometry or parallax
Common map types and their roles

The most frequent technical error is a wrong color space assignment. Color maps are stored with an sRGB transfer curve, whereas data maps must be read as linear, non-color values. If a roughness map is decoded as sRGB, mid-gray values shift and the surface appears noticeably glossier or duller than intended.

Production pipelines often pack several grayscale maps into one RGB image, for example occlusion in red, roughness in green and metallic in blue. Channel packing cuts texture memory and sampler count, but every tool in the chain must agree on the channel order.

Resolution, bit depth and texel density

A texture map’s resolution and bit depth decide how much detail it can hold and how much memory it consumes. Sizes are usually powers of two, such as 1024, 2048 or 4096 pixels per side, because mipmap chains and GPU compression formats work most efficiently with them.

Resolution alone does not guarantee sharpness. What matters on screen is texel density, the number of texels per unit of surface, which must stay consistent across neighboring assets so that a door and its wall look equally crisp. Bit depth matters for smooth gradients: 8 bits per channel suit color, while height and displacement data often need 16-bit or 32-bit float to avoid stepping.

PurposeCommon formatBit depthReason
Real-time colorBC7 or ASTC compressed8-bitLow memory, GPU decoding
Real-time normalsBC5 two-channel8-bitPreserves vector precision
Film colorEXR or TIFF16-bit halfWide grading latitude
DisplacementEXR32-bit floatNo banding in height
MasksPNG or packed channel8-bitSimple values, small size
Typical storage choices by purpose

Large assets in film and high-end games exceed what one image can hold, so artists spread a model across several tiles with the UDIM convention, each tile carrying its own texture set at full resolution.

Texture maps compared with procedural and vertex data

A texture map is one of three common ways to vary a surface, and choosing between them depends on resolution needs, memory and editability. Image textures store explicit, painted or scanned detail; procedural textures compute values mathematically at render time; vertex attributes store values only at mesh vertices.

ApproachStrengthWeaknessBest fit
Image texture mapUnique, art-directed detailFixed resolution, needs UVsHero assets, scanned surfaces
Procedural textureResolution independent, tinyCostly to evaluate, hard to paintNoise, wood, large terrain
Vertex colorNo UVs, nearly freeDetail limited by mesh densityBlending masks, tinting
Triplanar projectionNo UV seamsBlending artifacts on curvesRocks, environment props
Image textures versus alternatives

In practice these approaches are combined rather than exclusive. A common setup uses a tileable texture for base detail, a procedural mask for variation and a baked occlusion map to ground the object, which keeps memory low without making repetition obvious.

Common problems and how to fix them

Most texture map defects trace back to UV layout, filtering or data interpretation rather than to the image content itself. The list below covers the problems that experienced texture artists check first.

  • Visible seams: texels bleed across UV island borders when mipmaps shrink; add padding or edge dilation of 8 to 16 pixels.
  • Inverted relief: normal maps follow either the OpenGL or DirectX green-channel convention; flip the green channel when bumps appear reversed.
  • Stretching: uneven UV scale causes blurred or smeared areas; re-unwrap and equalize texel density.
  • Obvious tiling: a repeating pattern becomes visible over large areas; break it with detail maps, decals or noise masks.
  • Baked lighting in albedo: shadows painted into color double up with real lighting; keep albedo free of lighting information.

Stripped to the essentials

A texture map is a picture wrapped around a 3D object, a bit like wrapping paper around a gift box. The object provides the shape, and the picture provides the look: wood grain, rust, paint or skin.

Some of these pictures are not meant to be seen as images at all. They are instructions stored as pixels, telling the computer where a surface is shiny, where it is rough and where it should seem bumpy. The key idea is simple: detail lives in images, so the shape itself can stay light and fast to draw.

Where it is applied

A game studio prepares a wooden supply crate for an open-world title. The modeler builds a mesh of about 800 triangles and unwraps it so the six faces share one UV square. A texture artist then paints a 2048 by 2048 texture set: albedo for the stained planks, a normal map for the grain and nail heads, and a packed image holding occlusion, roughness and metallic data for the iron corners.

The color map is compressed to BC7 and the normal map to BC5, giving roughly 5 MB of GPU memory with mipmaps. In the engine, the crate reads as a detailed, worn object at close range while costing little to render, and dozens of copies fill a warehouse without straining the frame budget.