Archived

This topic is now archived and is closed to further replies.

Getting planes of view frustum

This topic is 5827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''ve followed Mark Morleys tutorial on getting the view frustum and implemented it. I am just curious of how you get the 6 planes of the view frustum, could someone explain please ?! I have the code to do it, but would like to see where Ax,By,Cz and D come from (within matrix) for each plane ? I''m just curious! Kind regards, sTeVe

Share this post


Link to post
Share on other sites
Well, there are several ways. You can construct the planes by finding the normal of the plane and then inserting a known point on the plane into the equation to derive the D component. This is sort of slow, though, as you need to recalculate the plane equations everytime the frustum changes (ie the camera moves).

Another approach is presented here, based on a paper by Gil Gribb and Klaus Hartmann: http://groups.google.com/groups?q=%22Klaus+Hartmann%22+%22Gil+Gribb%22&hl=en&selm=uBMtTHu1%24GA.242%40cppssbbsa02.microsoft.com&rnum=3.

I hope this helps - I know am I being kind of sketchy, but I just got out of bed, and my brain hasn''t powered up yet

Share this post


Link to post
Share on other sites