Jump to content
  • Advertisement
Sign in to follow this  
d000hg

Calculate a path based on a 3D model

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

If you have a model of a tunnel or a long bendy pipe, or something like that, is there any neat way to calculate a path through the tube? Imagine I have a model a bit like this:

stock-photo--d-wireframe-tunnel-bend-34858144.jpg

Such a path clearly exists, but how to usefully process either the vertices alone or the polygons/edges using them to calculate it?

Share this post


Link to post
Share on other sites
Advertisement
Well, if you have a pipe made of consecutive rings, then average the positions of all vertices belonging to each ring and you get a point in the middle of them all. Repeat for whole pipe, connect the midpoints and you have a path through.

Share this post


Link to post
Share on other sites
You will probably want to generate a NavMesh for the walkable areas of your scene. Try searching the AI forums for more info.

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!