Jump to content
  • Advertisement
Sign in to follow this  
coolhelix

What's the best way to compute the intersection between Plane and ViewFrustum?

This topic is 3806 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, guys, If a infinite plane and a view frustum is given, what's the best way to compute there intersection points or lines? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Maybe we could first compute the side of the view frustum vertex.
There are 8 vertex of view frustum.
viewFrustum[2][4];

Then put the vertex in to the plane equation. Then, these vertex could be separated into three groups.

Positive Group, where a.x + b.y +c.z +d > 0
Negative Group, where a.x + b.y +c.z +d < 0
Zero Group, where a.x + b.y +c.z +d = 0

Then, we can find the intersection points between the edges and the plane.

If there is one vertex in the different group, but one the same edge, then we can assert that the plane must intersect with that edge. Then, we can compute the intersection point.



[Edited by - coolhelix on July 14, 2008 5:55:01 AM]

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!