Jump to content
  • Advertisement
Sign in to follow this  
amak

BSP: Some issues & collisions

This topic is 4776 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'm using Leaf Based BSP tree in a game project. Right now i'm using a Quake 2 map. To do a collision test with my camera i'm using a spherical bounding box. So to test if the camera as collide with the wall's i'm doing this: if(modulo(node->partition.RealDistanceToPlane(cameraEye)) <= raio) { return false; } But if the sphere intersect with the plane i need to see if the polygon that generated the plane is really intersecting the sphere? If not i go down further in the BSP tree. Is this the right approach? Another problem that i have is when the application build the bsp tree from a mesh it never stops.... If i limit the depth of the tree i cant build portals correctly. So anyone have build a BSP tree generator? It is fast? Anyone has tried big maps? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!