AI, Path Finding

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
DDd
Posts: 3
Joined: Sat Mar 22, 2008 4:59 pm

AI, Path Finding

Post by DDd »

Hi,

I was wondering if there is any AI middleware that you would recommend to use with irrlicht. Also have there been any attempts to implement AI directly in Irrlicht or an Irrlicht based engine?
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

hmm interesting question.....first why do u want to intergrate a ai engine into a graphicEngine? second search the forum for AI.....then u would find a project of JP who is making a AI engine
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah you can check out what i'm working on at the moment. Currently it's not really in a usable state for anyone. It's being developed specifically for Christian Clavet's FPS game First King so i'm focusing on getting it ready for his project and actually don't have a huge amount of time for it due to full time work commitments etc. But it will be an open source free to use AI engine for anyone to use on here.

Obviously AI would never be integrated into irrlicht as it's a graphics engine for rendering and nothing more, it's just used to make games a lot, hence why i'm putting together this AI engine, to lend a helping hand to folks!

I'm not really familiar with any AI engines, i've seen Kynapse advertised in places but i think you have to pay for that...
Image Image Image
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

you also can google for A* (A-Star), it's a very common path finding algorithm, but you'll have to implement it on your own... ;)
but it's not too hard to understand though... ;)

and probably there are many other algorithms for path finding, just google... ;)

well, this site is prety good/interesting one for AI in general, also for pathfinding:
http://ai-depot.com/articles/?s=pathfinding
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Incidentally i just did a bit of a performance test on one of the irrAI demos i'm working on and i found that there was no performance loss from the AI... I got 175fps if i had the AI calculating its pathfinding and i got 175fps if i turned the AI calculations off.... And that was with 10 NPCs in the scene... very bizarre... i'm sure that can't be right! :lol:
Image Image Image
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Acki wrote:you also can google for A* (A-Star), it's a very common path finding algorithm, but you'll have to implement it on your own... ;)
but it's not too hard to understand though... ;)

and probably there are many other algorithms for path finding, just google... ;)

well, this site is prety good/interesting one for AI in general, also for pathfinding:
http://ai-depot.com/articles/?s=pathfinding
If you need a good A* tutorial check this out:
http://www.policyalmanac.org/games/aStarTutorial.htm
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

why you quoted me, I know A* and can code it from the top of my head !!! :lol:

well, seriously, yes this is a good A* beginners tutorial, I also studied it when I started to learn A*... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

Acki wrote:you also can google for A* (A-Star), ... but you'll have to implement it on your own...
http://www.grinninglizard.com/MicroPather/

Yeah, sure. And reinvent the wheel, too. :roll:
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

@Acki: LOL! I quoted you cause you mentioned A*. Actually I was thinking after I posted it, "will he (Acki-you) think it's for him or for DDd".

I guess I was wrong :lol:
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

randomMesh wrote:Yeah, sure. And reinvent the wheel, too. :roll:
why not when my reinvented wheel suits my needs better ?!?!? :lol:
I'm sure there are 100s of libs for A* out there, but A* is so easy to understand and to use that I don't need any 3rd party lib just for this...
but sure for noobs it will be a help as long as they don't want to learn how A* works... ;)

@Mastergod: yeah it was just a joke of mine... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

why not when my reinvented wheel suits my needs better ?!?!?
Well then it isn't a reinvented wheel, because you made a new 4D wheel. :D

But on a serious note, reinventing the wheel is not bad, like Acki said, when it does the following: suits your needs better, you can learn from it, etc.

It's so stupid to say for someone to not reinvent the wheel in general. Reinventing the wheel is what life is made of. People learn by others creating a wheel, releasing papers, and then others reinventing that wheel and learning from it. How many hunderds of people have tried coding HDR based off of papers? Are they just reinventing the wheel? If so, then they shouldn't, and only the person who created HDR should be using it, thus leaving the general public in the dark about it.

</rant>
TheQuestion = 2B || !2B
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

randomMesh wrote:
Acki wrote:you also can google for A* (A-Star), ... but you'll have to implement it on your own...
http://www.grinninglizard.com/MicroPather/

Yeah, sure. And reinvent the wheel, too. :roll:
Thanks, that's a very clear and well documented implementation. Given that this discussion is occurring on the forums for an engine, I think the merits of not re-inventing the wheel should be clear. :P
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

rogerborg wrote:
randomMesh wrote:
Acki wrote:you also can google for A* (A-Star), ... but you'll have to implement it on your own...
http://www.grinninglizard.com/MicroPather/

Yeah, sure. And reinvent the wheel, too. :roll:
Thanks, that's a very clear and well documented implementation. Given that this discussion is occurring on the forums for an engine, I think the merits of not re-inventing the wheel should be clear. :P
This is true, but in what respects did Irrlicht not reinvent the wheel compared to all the other 3d rendering engines before it?
TheQuestion = 2B || !2B
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

JP wrote:Incidentally i just did a bit of a performance test on one of the irrAI demos i'm working on and i found that there was no performance loss from the AI... I got 175fps if i had the AI calculating its pathfinding and i got 175fps if i turned the AI calculations off.... And that was with 10 NPCs in the scene... very bizarre... i'm sure that can't be right! :lol:
Offcourse it can, that's because its most likely graphics-bound, FPS being a graphics term, its usually more effected by videocard-related things, and less by CPU driven things (Unless the cpu and memory pipeline is so overworked that its struggling to send the necessary resources to the graphics card. Eg, a complex physics simulation.)

I would be surprised if it did slow it down (It must mean you are doing some very crazy AI calculations.) What path finding algorithm are you using anyway? djkstar?, wavelet?

Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

It's so stupid to say for someone to not reinvent the wheel in general.
I think the merits of not re-inventing the wheel should be clear.
Isn't it what we all doing here after all? Isn't Irrlicht itself just another "wheel" reinvented?

Here is my own A* "wheel" reinvented using Irrlicht :wink: :Pathfinding Demo
It would need some small adjustments to get it work with recent version of Irrlicht however.
Post Reply