The Art of 3D

For centuries, artists have been fooling people into perceiving a flat two-dimensional painting as a complete three-dimensional scene. One of the tricks they use is called linear projection, and it works by joining together parallel lines at an imaginary vanishing point to create the illusion of perspective.

We can see a classic example of this effect when standing on a straight pair of railway tracks; as we look at the rails receding into the distance, they appear to get closer together, until they seem to vanish at a single point on the horizon:

images/3D/trainTracksPerspective.png

The railroad ties also appear to get smaller as they get further away from us. If we ...

Get OpenGL ES 2 for Android 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.