Jump to content
  • Advertisement
Sign in to follow this  
Mightee

which scene graph to choose

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

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  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!