Autonomous agent AI

Anything about development not directly related to libgdx, e.g. OpenGL, Android APIs etc.

Autonomous agent AI

Postby telos » Tue Sep 13, 2011 12:26 am

Hi guys,
Just wanted to ask if anyone in here is familiar with AI concepts such as pathfinding or seek and flee relating to autonomous agents(AI relating to vehicle movements such as cars, airplanes, ships, etc) What I'm trying to get here is that I want to get to know these concepts in Java but the majority of the codes are either in c++ or lua even. It is really hard to convert from c++ to java codes(because I'm a c++ noob) so can anybody direct me to a book of ai or even a website that deals AI based on java codes. The closest source I can find is the opensteer library(which is in c++) but some people have made conversions of it into java aplets but they don't provide the source for it. It will save me alot of coding times.

Cheers,
telos
 
Posts: 17
Joined: Wed Aug 31, 2011 3:11 am

Re: Autonomous agent AI

Postby radioking » Wed Sep 14, 2011 11:25 pm

Nothing more to add from my side but
http://code.google.com/p/libgdx-users/w ... telligence

-> Maybe you can enlarge that section with the results of your research on that topic?
Please "give sth. back" to community and contribute your knowledge to our libgdx-users project community wiki:
http://code.google.com/p/libgdx-users/
Please see Mario's note on User Wiki 2.0: http://www.badlogicgames.com/wordpress/?p=2411
radioking
 
Posts: 284
Joined: Wed Aug 03, 2011 10:28 am

Re: Autonomous agent AI

Postby JPLemelin » Thu Sep 15, 2011 2:53 am

Take a look of HPA (hierarchical pathfinding algorithm)

http://aigamedev.com/open/reviews/near- ... thfinding/
JPLemelin
 
Posts: 4
Joined: Thu Sep 15, 2011 2:46 am

Re: Autonomous agent AI

Postby bach » Thu Sep 15, 2011 4:19 am

This is the single best source I've found: http://www.red3d.com/cwr/steer/

I've implemented a sort of flocking behaviour in one of our prototypes which allowed movement of massive groups of space ships. If there's some interest in this I'd be willing to write up a tutorial and include some source code..

Cheers,
Bach
bach
 
Posts: 713
Joined: Mon Mar 07, 2011 1:50 am

Re: Autonomous agent AI

Postby telos » Thu Sep 15, 2011 12:31 pm

Yeh, the http://www.red3d.com/cwr/steer/ site is what I was refering to about openSteer steering framework. The concept is effective but it's just the codes are all in c++.
Since there wasn't any java codes around, I converted basically all the c/c++ examples I could find. I'm about half way there so its all good now, just tweaking here and there. This is how I implemented my code. Since the genre is about racing, I used finite state machines to detect the current states according to the environment.
What I did was, I load the data of the current race track with predefined sectors which consists of point on the left and points of the right of the forward direction. I let the fsm checks the current and the next sector based on a racing line. This racing line is generated by human input such as keyboard. All of the class is independent to each other such as steering,vehicle physics, world, input so I could add features to it in the future such as network multiplayer support without changing the game structure.
Once I get this up and running well, I'll see if I can simplify the process for easy viewing.

Thanks for the replies.
telos
 
Posts: 17
Joined: Wed Aug 31, 2011 3:11 am

Re: Autonomous agent AI

Postby radioking » Thu Sep 15, 2011 1:32 pm

May I propose any of you adding the information to libgdx-users community wiki then?

http://code.google.com/p/libgdx-users/w ... telligence


Would be a pity not having information centrally organized but scattered all around in forum.
Please "give sth. back" to community and contribute your knowledge to our libgdx-users project community wiki:
http://code.google.com/p/libgdx-users/
Please see Mario's note on User Wiki 2.0: http://www.badlogicgames.com/wordpress/?p=2411
radioking
 
Posts: 284
Joined: Wed Aug 03, 2011 10:28 am

Re: Autonomous agent AI

Postby StillCarl » Sat Oct 01, 2011 10:20 am

bach, telos

KNowing very little about game AI in general, I'd be interested by your contributions.
Even if the code is not final, I think it would be a huge help (or inspiration) for aspiring game/simulation developers :)

Cheers,
Carl
StillCarl
 
Posts: 17
Joined: Fri Sep 30, 2011 11:08 pm

Re: Autonomous agent AI

Postby bach » Sun Oct 02, 2011 12:58 am

I'll see what I can do :)

Cheers,
Bach
bach
 
Posts: 713
Joined: Mon Mar 07, 2011 1:50 am

Re: Autonomous agent AI

Postby BurningHand » Sun Oct 02, 2011 1:04 pm

IRC: nexsoftware / mobidevelop; GitHub: MobiDevelop;
BurningHand
 
Posts: 2459
Joined: Mon Oct 25, 2010 4:35 am


Return to General Development

Who is online

Users browsing this forum: No registered users and 1 guest