Chapter 7

Texturing

Our demos are getting a little more interesting, but real-world objects typically have more details than per-vertex colors can capture. Texture mapping is a technique that allows us to map image data onto a triangle, thereby enabling us to increase the details and realism of our scene significantly. For instance, we can build a cube and turn it into a crate by mapping a crate texture on each side (see Figure 7.1).

image

Figure 7.1: The Crate demo creates a cube with a crate texture.

Objectives:

image    To learn how to specify the part ...

Get Introduction to 3D Game Programming with DirectX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.