O'Reilly logo

OpenGL ES 2 for Android by Kevin Brothaler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required