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 Math Behind Orthographic Projections

We’ll start off with orthographic projections, as they’re easier to understand. An orthographic projection maps part of our 3D world onto the screen, and it does so in a way such that everything appears the same size, no matter how near or far it is. For this reason, this type of projection is great for doing 2D games and art.

Creating an Identity Orthographic Projection

The following is a basic definition of an orthographic projection matrix:

images/AspectRatio/OrthographicMatrixDefinition.png

Given this matrix, all coordinates between left and right, bottom and top, and near and far will be mapped into normalized device coordinates, and anything within this ...

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