Sign in to follow this  
Zaph-0

Frustum intersections

Recommended Posts

Hi, I know how to find if a point is inside or outside the frustum but now I have following problem: What if point 1 and 2 are outside the frustum but the line they form goes through the frustum ? I am checking squares against the frustum and thought it might be enough to test each individual point but obviously it isn't. Is there a way to handle this elegantly ?

Share this post


Link to post
Share on other sites
I don't know what you mean by "elegantly". Persumably you're comparing the points to the planes. If all points are on the same side of a certain plane, then there won't be an intersection. Otherwise you can do a clipping test, but you can probably treat this case as a render case for simplicity.

Share this post


Link to post
Share on other sites
By "elegantly" I mean if there is somehow a simple way how I can check a line between 2 points against the frustum.

I mean, its simply for points and spheres, but I need to do it with a line because of the complexity of my objects that would case huge overdraw otherwise...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this