Archived

This topic is now archived and is closed to further replies.

jeanmyr

BSP Tree for collisions

Recommended Posts

I will create a BSP Tree for collision detection. The function principe is clear for me, but I haven''t idea about starting to code, because I cannot understand how a tree piloted by a divided box will separate correctly a vertex buffer. The question is how to organize the datas into the tree. I haven''t found any tutorial on the subject. If anywhere has a answers or know any site about that... I work with DirectX8. In advance, thanks for all.

Share this post


Link to post
Share on other sites
you have to have a separate buffer for your bsp tree. you cant use the same vertex information you draw with. that would be super slow, coz you''re probably storing that in video memory

start by having an BSP class that has a copy of all the vertices/triangles. then have node subobjects that have indexes to these vertices/triangles.

MCLIN

Share this post


Link to post
Share on other sites