Frustum intersections

Started by
1 comment, last by Zaph-0 15 years, 8 months ago
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 ?
Advertisement
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.
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...

This topic is closed to new replies.

Advertisement