The Perspective Projection Matrix in Android

The utility of the Android environment is shown with the ease with which we generate the perspective projection matrix. Here, we describe the view frustum, and the corresponding projection matrix is loaded into the projectionMatrix array.

251         // Load a projection matrix
252         // frustumM (float[] m, int offset, float left, float right, float bottom, float top, float near, float far)
253         Matrix.frustumM(projectionMatrix,  0, -150.0f, 150.0f, -150.0f, 150.0f, 1.0f, 100.0f);

Notes

Here we specify the geometry of the view frustum without the simplifying assumptions we used in our WebGL example.