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