Jump to content


REQ:Path lookup tables


4 replies to this topic

#1 Devoto

    Member

  • Members
  • PipPip
  • 48 posts

Posted 11 September 2006 - 09:06 PM

Dear all,

I am looking for a good tutorial about pathfinding. What I have read so far is, Path lookup tables are faster than other techniques. The algorithm I want to design is to be used in flash game.

I will appreciate your help.

Thanks

Devoto

#2 Ed Mack

    Senior Member

  • Members
  • PipPipPipPip
  • 1239 posts

Posted 12 September 2006 - 08:07 AM

A* is very good, and has been efficiently programed in actionscript - so you may not need to bother making lookup tables. Google pathfinding for good tutorials.

#3 Devoto

    Member

  • Members
  • PipPip
  • 48 posts

Posted 12 September 2006 - 04:30 PM

Thanks Ed. I already checked some A* tutorials but practically in each forum a read about the topic, people said that when you have a big map A* becomes slow and here is where pre-computed method is better.

I will continue my quest
Thanks

#4 GroundKeeper

    Valued Member

  • Members
  • PipPipPip
  • 110 posts

Posted 19 September 2006 - 09:18 PM

A* is can be made VERY fast and there is no restriction that you can't use precomputated data in your implementation of A*. The most basic A* would look at the complete instance of the world but in most cases you can use an A* network and futher enhance it with a layered network. A* is more of a heuristic (and I'm using this term in a loose maner) or guidence to a preference of choice when making a choice of direction. To make a possibly long story short: Google A* and try it!

#5 TheNut

    Senior Member

  • Moderators
  • 1696 posts
  • LocationThornhill, ON

Posted 28 September 2006 - 12:19 AM

A complete path lookup table would require quite a bit of memory, and it’s limited to maps that are statically defined (so paths cannot be blocked at all).

A* has excellent runtime performance and even supports step-by-step computing, so you can calculate the path synchronously with your frame rate for maximum performance. In addition, the weighted system can be dynamically defined, so you can add modifiers to your maps, such as blocked off sections, heavily saturated areas, and so on to modify the paths of other objects to avoid such things. And just as GroundKeeper said, you can still use the A* to precalculate paths if that’s what you want in the end.
http://www.nutty.ca - Being a nut has its advantages.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users