Sign in to follow this  

BSP: Some issues & collisions

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this