• Advertisement
Sign in to follow this  

LOD System With BSP Trees?

This topic is 1832 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

I am currently debating with myself over what kind of visibility culling technique to use in my rendering system, and I have pretty much narrowed it down to two choices: BSP trees and octrees. I have experimented with voxel storage in the past, and used sparse voxel octrees, but I have never used a BSP tree. In the project that I am currently working on, the (outdoor) environments being rendered will be just big enough to make use of a LOD system, and are generated from heightmaps, but I was told that an octree would be more fitting for that purpose, and would also be better for collision. I was also told that it is much easier and more straightforward to implement a BSP tree system than it is to implement an octree system. Would a LOD system and large outdoor scenes be a good idea with BSP trees or octrees? I very much appreciate any response.

Share this post


Link to post
Share on other sites
Advertisement
Often, with modern CPUs simpler is better.

Ask this question: given a vector of bounding spheres, how many can you cull before it has the slightest impact on performance? You can divide the world into a grid of that size, and that might be all you ever need to do.

Quad trees are not faster for collisions either, unless you are doing long ray traces. Otherwise you can look up the grid square in constant time and never have to traverse a tree at all.

I would use separate data structures for collision and rendering, even if they are similar. Usually collision needs a fraction of the data that rendering does.

Share this post


Link to post
Share on other sites

one way to handle it is to add meshes to leafs of BSP trees, and swap them depending on what LOD you like. I think Quake3 does it that way.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement