Sign in to follow this  

BSP: Some issues & collisions

This topic is 4591 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
Sign in to follow this