Jump to content
  • Advertisement

R&D build Navigation network graph from octree

Recommended Posts

Hi everyone, I'm new to learning AI pathfinding, although R&D for 3 month... so here is the problem that I had, hope there are someone can give me some advice.

I was trying to develop my Flight Agent in 3D space. and store all the obstacles reference into octree.

so I got the space & obstacle distribution represent in octree already, however I wanted to implement

1) Navigation network graph region (to define the space in region)

2) HPA* , to implement the high level path finding based on simplify network graph

the major issue : 

I know how to collect all remain space from octree node, but I didn't know how to segment the space, and build up a network graph based on it.



Share this post

Link to post
Share on other sites

Just traverse the octree from the root down to the leaves. If you traverse through a cell that is not occupied and is a leaf cell, you can create a corresponding AABB that surrounds the node and place it into your graph. Creating edges is just a matter of checking all octree neighbors and seeing which ones have vacant cells.

Share this post

Link to post
Share on other sites

thank @ApochPiQ I think I know what you mean, I also found article describe octree like this :


All neighbours of a white node cannot all be white because merging would take place and the node would not exist.

still working on the implementation, wish me luck.

Edited by CanisTk

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

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