Sign in to follow this  

QuadTree structure

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

How do you build up your quadtree? Do you have objects in any node or just the leaves? Do you use one quadtree for the entire scene or a couple for different uses? Ive noticed collision detection and alphasorting having slightly different requirements. Should I have one quadtree instance for collision detection and another for alphasorting? -CProgrammer

Share this post


Link to post
Share on other sites
My approach for now is to use two octrees, one for the "graphical" level and one for collision detection, using a simplified mesh. Probably i'm gonna store objects in the second octree, too.

I store triangles in every node, this way if a node is fully visible i can draw it without losing time checking its children.

Share this post


Link to post
Share on other sites

This topic is 4835 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.

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