1. Definition
Texture Mapping is the process of applying a 2D image (texture) onto a 3D surface to give it detail and realism.
- Instead of modeling every small detail (like bricks, wood grain, or fabric), a texture image is “wrapped” onto the surface.
- Introduced by James Blinn in the 1970s, texture mapping is a fundamental technique in 3D graphics, games, and simulations.
2. Concept
- Each vertex of a 3D model is associated with texture coordinates (u, v).
- The texture coordinates map a point on the 3D surface to a pixel in the texture image.
- During rendering, the color of the pixel is taken from the texture and applied to the surface.
3. Steps in Texture Mapping
-
Load Texture
- Load a 2D image (bitmap, PNG, etc.) into memory as a texture map.
-
Assign Texture Coordinates
- Each vertex of the polygon gets (u, v) coordinates corresponding to the texture image.
- Coordinates are usually normalized: (0 \le u,v \le 1).
-
Rasterization
-
Optional Enhancements
- Filtering: Bilinear or trilinear filtering to smooth textures.
- Mipmapping: Precomputed lower-resolution textures to reduce aliasing.
- Environment mapping: Reflective or shiny surfaces.
4. Types of Texture Mapping
| Type |
Description |
| 2D Texture Mapping |
Map a 2D image onto a polygonal surface |
| 3D (Volumetric) Texture |
Map 3D textures for volumetric effects like smoke |
| Bump Mapping |
Simulate surface irregularities using a normal map |
| Environment Mapping |
Simulate reflections on shiny surfaces |
| Procedural Texturing |
Generate textures algorithmically rather than from an image |
5. Applications
- Games and VR – Adding realism to objects and environments.
- Simulation – Terrain rendering, satellite imagery.
- Movies & Animation – Surface details for characters and props.
- CAD & Visualization – Materials like wood, metal, or glass.
6. Advantages
- Reduces geometry complexity; you don’t need detailed polygons.
- Provides realistic surface appearance quickly.
- Compatible with hardware acceleration in GPUs.
7. Summary Table
| Aspect |
Description |
| Purpose |
Add realistic detail to 3D surfaces |
| Technique |
Map a 2D image (texture) to polygons using (u, v) coordinates |
| Enhancements |
Filtering, mipmapping, bump mapping, environment mapping |
| Applications |
Games, VR, simulations, movies, CAD |
Key Points:
- Texture mapping = 2D image “wrapped” on 3D surfaces.
- Vertex texture coordinates (u, v) guide where to sample the texture.
- Widely used in real-time rendering, animations, and simulations.