tags:

views:

81

answers:

2

would somebody tells me how that glfrustum matrix generated? i know about that matrix can be set many ways, but why that one? thanks

+2  A: 

would somebody tells me how that glfrustum matrix generated?

Read official glFrustrum documentation. It includes formula.

SigTerm
The formatting of the matrix is messed up on my browser. I prefer this one: http://msdn.microsoft.com/en-us/library/dd373537(v=VS.85).aspx
redmoskito
A: 

i know about that matrix can be set many ways, but why that one

Because it defines exactly the portion of the space that is projected onto the plane: Connect the eye point with the four corners of the near plane (specified by left, right, top, bottom and nearVal). Then intersect the lines with the far plane to get the remaining four points of the frustum.

Chris Lercher