Jump to content
  • Advertisement

Archived

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

neurokaotix

QuadTree vs. OctTree

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

That''s right boys and girls, a good ol'' fashion vs. thread o_O Actually, I would like to know what is best for outdoor terrains, QuadTree or OctTree

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Predictable next question: On what? (back 2 you again... )

Share this post


Link to post
Share on other sites
If your terrain engine has only 1 y-plane (ie, generic terrain map. no caves or other layers) then use a quad tree (less hassle). If you have a lot of things in the air, underground and all over the place, use an oct tree.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Predictable next question: On what? (back 2 you again... )


depends on the outdoor terrain

"take a look around" - limp bizkit
www.google.com

Share this post


Link to post
Share on other sites
I have never ever worked with Quadtrees or Octrees, so I might be wrong, but I guess it has to do with the height of your terrain. If you terrain is so high that you can win performance by having also different LOD levels at certain heights, then the octree is your choice. If it''s low enough and you cannot win performance by splitting up the y axis, then the quadtree is your solution.

Again, I might be wrong as I have 0 experience in this, but this seems a logical answer to the problem.

Share this post


Link to post
Share on other sites
I tried to post earlier, but this forum seems not to like me at the moment. $%^&*("£$%^&*( thing.

Structural has already summed it up, but in general, unless you''re doing a game based in a skyscraper or something, a quadtree will be more than adaquate. Its easy to convert a quad to oct if needed anyway, so start with the simpler quadtree and try something else if its unacceptable..

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!