Jump to content
  • Advertisement
Sign in to follow this  
Zaph-0

Frustum intersections

This topic is 3615 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 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
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.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!