Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Calculate a path based on a 3D model


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 d000hg   Members   -  Reputation: 783

Like
0Likes
Like

Posted 12 March 2012 - 02:48 PM

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:

Posted Image

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

Sponsor:

#2 Corefanatic   Members   -  Reputation: 129

Like
1Likes
Like

Posted 12 March 2012 - 06:08 PM

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.

#3 web383   Members   -  Reputation: 787

Like
1Likes
Like

Posted 13 March 2012 - 11:12 AM

You will probably want to generate a NavMesh for the walkable areas of your scene. Try searching the AI forums for more info.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS