Jump to content
  • Advertisement
Sign in to follow this  
Mightee

which scene graph to choose

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

hi, what would you recommend to use for a 3d top-down rpg game as a scene graph ? I've read that octree would be a good solution to this but would like to hear from you guys.

Share this post


Link to post
Share on other sites
Advertisement

An octree isn't a scenegraph, its a spatial subdivision technique.  The definition of scenegraph can vary so you should clarify what exactly you mean.  If you're looking for a way to cut down on collision detection and/or trying to accelerate culling for submission to the graphics card then spatial subdivision is what you're looking for.  For a top down game you're better off with a quadtree, a loose quadtree, or a BVH. (you might also look into kdtrees)  An octree would be a good fit for a first person or third person camera.

Share this post


Link to post
Share on other sites

I would start off with a very simple grid structure. If it's a top-down game you probably only need a 2D structure, and if you don't zoom in/out much, then the hierarchical part of a quad/oct tree isn't very useful and you may as well just use the leaf nodes, which leaves you with a 2D grid of cells.

Share this post


Link to post
Share on other sites

thank you for your replies. Trying to learn terms and different technniques. What about the scene graph ? I want to be able search game objects fast enough for collision detection and culling.

Share this post


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

  • 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!