View Full Version : view-frustum culling
I'm trying to implement view-frustum culling in my roam engine and need a way of finding wether a certain points lies inside or outside the halfspace defined by a specific frustum plane(in english: wether this point will be clipped by a specific clipping plane or not).Assuming I have the values I passed to glFrustum in order to create the view-frustum and the coordinates of the plane,how can I do that?
05-02-2001, 04:04 PM
This code works quite well and is easy to understand.
Thanks for the link Brent.I was thinking though,isn't the a better,faster way to get the the six clipping planes?The one in that link has quite a lot of square roots and divisions.
theres also code in the faq. though i dont know if it differs from the code in the above link.
I should remember to take a look at the FAQ every now and then.Thanks Zed.I only looked through the code quickly but it does look quite like the one in the link above but I didn't notice that many sqrt's and divs.
05-03-2001, 03:07 AM
I believe the FAQ code said that since the projection and modelview matrices are already normalized, you don't need to normalize the results. Thus, you can take out all the "normalize the result" code segments from that first link.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.