PDA

View Full Version : Frustum planes



ilj
07-31-2001, 03:08 AM
Hi!
Can anybody ask to me how can I get frustum planes from projection matrix
like at http://www.markmorley.com/opengl/frustumculling.html.
For me interesting mathematical side of this question.

Coconut
07-31-2001, 04:16 AM
You can use gluUnProject to get those eight corners of the frustum. From the corners' coordinates, you can get the equation of each planes.
About the mathematics behind, it's the inverse of the product of Projection matrix and ModelView matrix.




[This message has been edited by Coconut (edited 07-31-2001).]

zed
07-31-2001, 04:46 PM
theres also an example in the faq http://www.frii.com/~martz/oglfaq/
with a bit of an explanation