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

MicroPather, anyone?

Postby Virion » Sun Feb 20, 2011 4:26 am

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?
User avatar
Virion
 
Posts: 2102
Joined: Mon Dec 18, 2006 5:04 am
Location: Malaysia

Postby Lonesome Ducky » Sun Feb 20, 2011 6:30 am

Yep, as with any A* library. I've used micropather, and it gets the job done.
User avatar
Lonesome Ducky
Competition winner
 
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Postby Virion » Sun Feb 20, 2011 10:30 am

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:
User avatar
Virion
 
Posts: 2102
Joined: Mon Dec 18, 2006 5:04 am
Location: Malaysia

Postby ent1ty » Sun Feb 20, 2011 12:01 pm

Lol! Epic! :D

Image
Height2Normal - convert height maps to normal maps

Code with brain, not heart.
- entity, a proud member of the Heartless Coders society
ent1ty
 
Posts: 925
Joined: Sun Nov 08, 2009 11:09 am

Postby Lonesome Ducky » Sun Feb 20, 2011 5:13 pm

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

Postby randomMesh » Wed Feb 23, 2011 5:35 pm

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. :)
"In fact, nearly every sequence of punctuation is used for something in Perl. So, if you get writer’s block, just let the cat walk across the keyboard, and debug the result."

Katastrophe - A free, open source flocking boids simulation
User avatar
randomMesh
 
Posts: 1138
Joined: Fri Dec 29, 2006 12:04 am

Re: MicroPather, anyone?

Postby Granyte » Wed Aug 03, 2011 7:51 pm

damn the demo is down so anyone else has an idea how to feed the needed data to micropather? especialy with a 3d environement
Granyte
 
Posts: 516
Joined: Tue Jan 25, 2011 11:07 pm

Re: MicroPather, anyone?

Postby randomMesh » Fri Sep 23, 2011 6:15 pm

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.
"In fact, nearly every sequence of punctuation is used for something in Perl. So, if you get writer’s block, just let the cat walk across the keyboard, and debug the result."

Katastrophe - A free, open source flocking boids simulation
User avatar
randomMesh
 
Posts: 1138
Joined: Fri Dec 29, 2006 12:04 am


Return to Game Programming

Who is online

Users browsing this forum: No registered users and 1 guest