Page 1 of 1

MicroPather, anyone?

Posted: Sun Feb 20, 2011 4:26 am
by Virion
Yesterday I've been looking at MicroPather, a library which does A* pathfinding
http://www.grinninglizard.com/MicroPather/index.htm

however I have no clue how to use it with Irrlicht. Do I need to generate a grid manually?

Posted: Sun Feb 20, 2011 6:30 am
by Lonesome Ducky
Yep, as with any A* library. I've used micropather, and it gets the job done.

Posted: Sun Feb 20, 2011 10:30 am
by Virion
Lonesome Ducky wrote:Yep, as with any A* library. I've used micropather, and it gets the job done.
how do i generate uneven grid, lets say my ground is not a flat surface? terrain, for example.

by the way, awesome signature. :lol:

Posted: Sun Feb 20, 2011 12:01 pm
by ent1ty
Lol! Epic! :D

Image

Posted: Sun Feb 20, 2011 5:13 pm
by Lonesome Ducky
Virion wrote:
Lonesome Ducky wrote:Yep, as with any A* library. I've used micropather, and it gets the job done.
how do i generate uneven grid, lets say my ground is not a flat surface? terrain, for example.

by the way, awesome signature. :lol:
Thanks :lol:

Height won't effect the grid, you just need to tell micropather what is and isn't a passable tile. You don't even have to use tiles or a grid really. You could create waypoints, or anything you want. You just have to explain to micropather what points of data are accessible from another. If you haven't already, download it and look at the tutorials, it will make a lot more sense.

Posted: Wed Feb 23, 2011 5:35 pm
by randomMesh
I once made this Micropather demo and i want to share it.

Image

It basically is the dungeon example using Irrlichts gui.

Click a tile to set a starting point and drag the mouse.
Space to toggle doors.

Download (Linux x32 binary included)

Oh, and the micropather sources i use can simply be replaced by the original version. It's only my optimized and easier to understand version. :)

Re: MicroPather, anyone?

Posted: Wed Aug 03, 2011 7:51 pm
by Granyte
damn the demo is down so anyone else has an idea how to feed the needed data to micropather? especialy with a 3d environement

Re: MicroPather, anyone?

Posted: Fri Sep 23, 2011 6:15 pm
by randomMesh
Sorry for the late reply, been busy the last few weeks.

Anyway, i uploaded the source again, here it is.
This time, it's the sources only, i didn't include any media. You have to edit the pathes of the images in order to run the demo.

Hope this helps.