Sign in to follow this  
neodev

collision box bsp

Recommended Posts

neodev    122
hello every one
i try to do collision in my game using aabb ,i found this article [url="http://www.devmaster.net/articles/quake3collision/"]http://www.devmaster.net/articles/quake3collision/[/url]
about bsp tracebox collision detection , but i can't see any face test or polygon , it just plane against ray test , can explain how it work ,this can help to use tracebox in my game without bsp ,or similar method;

thanks for all.

Share this post


Link to post
Share on other sites
Krohm    5030
Consider [url="http://bulletphysics.org/wordpress/"]Bullet[/url]. It has a demo loading up a BSP and mangling it to produce correct collisions - I think it's called BSPDemo. It is a bit convoluted but it will save you tons of time and rigid body dynamics are cool. You get those for free.
Because of the license, I think you might eventually just copypaste everything if you're inclined in doing that... but the BSP loader is GPL as far as I recall so be careful.

Share this post


Link to post
Share on other sites
neodev    122
[quote name='Krohm' timestamp='1313138734' post='4848140']
Consider [url="http://bulletphysics.org/wordpress/"]Bullet[/url]. It has a demo loading up a BSP and mangling it to produce correct collisions - I think it's called BSPDemo. It is a bit convoluted but it will save you tons of time and rigid body dynamics are cool. You get those for free.
Because of the license, I think you might eventually just copypaste everything if you're inclined in doing that... but the BSP loader is GPL as far as I recall so be careful.
[/quote]

thanks , i just need to understand how box collide with triangle in tracebox method in Bsp because node /bruch/leaf it only used as planes information in trace function ,
and aabb tested against them ,collision with plane not mean with face surface, this may help to write my own AABBToTris collsion test method ..

Share this post


Link to post
Share on other sites
Krohm    5030
Sorry if a deep understanding for this specific case is what you're searching for, I suppose I cannot help you. I've had a quick glance at [i]Real Time Rendering[/i] but my copy does not seem to have anything dealing with box/tri intersection.
Personally, once broadphase is resolved, I'd probably just degenerate a box in a bunch of tris... but I believe it's more likely they're actually playing with convex hulls somehow.

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