MicroPather, anyone?

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

MicroPather, anyone?

Post 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?
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Yep, as with any A* library. I've used micropather, and it gets the job done.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post 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:
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

Lol! Epic! :D

Image
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps

Step back! I have a void pointer, and I'm not afraid to use it!
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post 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.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post 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. :)
"Whoops..."
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: MicroPather, anyone?

Post 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
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: MicroPather, anyone?

Post 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.
"Whoops..."
Post Reply