• FEATURED

View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

# Pathfinding on a polygonal map

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.

3 replies to this topic

### #1Anonymous Poster_Anonymous Poster_*  Guests

Posted 30 November 1999 - 03:57 AM

Are there any algorithms to find a path for a unit of any size on a map with polygons as obstacles? And do any of these algorythms deal with dynamic map changes?

### #2Anonymous Poster_Anonymous Poster_*  Guests

Posted 27 November 1999 - 10:33 PM

Unreal Tournament, for example has got a waypoint system. Just add waypoints (many!) in your map while you edit it and then do a simple algorithm that knows what waypoint is visible to another. Calculate also distance between these two, so you know how long will it take to travel.

Then use A* for routefinding in your waypoint-link-net.
Good A* links and something about implementing A* for a 3d-game:
http://www-cs-students.stanford.edu/~amitp/gameprog.html

Unfortunately waypoint systems are not good for dynamic maps, but doors and lifts are not a problem.

### #3Anonymous Poster_Anonymous Poster_*  Guests

Posted 29 November 1999 - 01:33 AM

So has anybody figured out how to do polygon based route finding in a randomly generated world that is fully dynamic (like an RTS)?

### #4Geta  Members

Posted 30 November 1999 - 03:57 AM

There have been some papers written on pathfinding in a polygon based world. I found them while searching the web on "path finding" and "shortest path" and "mobile robots". Its been a while since I've read them, but I seem to recall the process being somewhat computationally extensive. You should be able to locate them via yahoo or alta vista pretty easily.

I've used the waypoint system (similar to what is described above) in a dynamic 3D world (just like described for a RTS) and when the world changed (walls destroyed, buildings built, etc.) we would evaulate and place new nodes (same as waypoints) and link them into the network via the nearest nodes. Then run Astar on the nodes to find the path. Moving units or other NPCs were not a problem, as we would collision detect on those within a specific range as the path was determined.

Just some ideas to consider ...

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.