February 2019
Intermediate to advanced
292 pages
6h 55m
English
In addition to the solid textures (checkers, rings, and so forth) that you’ve already implemented, it’s possible to apply an external image to an object as a texture map. Here’s an example using a planar mapping, a cylindrical mapping, and a spherical mapping:

For a planar mapping, you take an image and map an (x, y) pair in object space to a corresponding pixel on the image. You’ll usually need to do some interpolation as well, since the point in question will often lie between adjacent pixels.
The cylindrical mapping is a bit trickier, since you need to convert a point on the surface of a cylinder to an image, much like the label ...
Read now
Unlock full access