Skip to main content
GameDev.net gamedev.net
🔒 Locked

Questions about Solid Leaf BSP Trees

Started by Thomas Mathers Jul 30, 2005 at 7:16 PM 2 replies 750+ views
Original Post
Thomas Mathers
Thomas Mathers
Hello All, I have just implemented a generic BSP algorithm. When I was browsing around on the internet for further optimizations that I could make to the algorithm I stumbled upon three other algorithms which modify the generic one. The Solid-Leaf BSP algorithm was the one that caught my eye. Supposedly it is more suitable for the rendering of a BSP tree and for collision detection. However I am a bit confused on how it actually works. I understand that you need to store the partitioning plane in each node. I also, understand that the geometry needs to be stored in the leafs of the scene. What I do not understand is how you go about creating the tree. What condition must be met in order for you to stop looping? Is it the same as regular BSP trees where you stop once you have convex data? or is there some other heuristic? How do you know if you have solid data?
Name_Unknown
Name_Unknown
What you described is a Quake BSP, a solid-leaf BSP stores only empty/solid in the leafs (Ericson). Quake is a mix it is a solid leaf and leaf storing tree and the solid leaf is always 0 in the map. As far as I know building a solid leaf tree is the same you stop when no more polygon's are left in the list.
"It's such a useful tool for living in the city!"
toe99001
toe99001
You stop when the triangles form a convex region.
Take a look on this: http://www.devmaster.net/articles/bsp-trees/

Thomas Mathers
Thomas Mathers
Yeah I have looked over that article. I thought that article was only applying to the generic BSP algorithm. Do you also stop executing when you reach convex geometry with the Solid Leaf BSP algorithm?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.