Using OpenSteer with Irrlicht

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.
Post Reply
olivehehe_03
Posts: 157
Joined: Tue Mar 20, 2007 8:30 am

Using OpenSteer with Irrlicht

Post by olivehehe_03 »

Hello again. I was asking about navmeshes a little while ago, but I'm still looking at other options for how to handle my AI. Just for info, as far as my navmesh goes, I can generate an array of data from the mesh itself but I'm stuck on getting the program to work out which ones are connected, but I've got a solution in mind for that.

Anyways, I was pointed in the direction of OpenSteer as an option for my AI navigation. I've downloaded the demo and the source code and combined with a little bit of A* to work out a simple path, it looks like it will suit my needs fairly well. The problem I'm having, is that I haven't got the slighest idea on how to integrate it with Irrlicht.

What I really need is to look at a few examples. I've seen a few on the forums, but all the links go nowhere (http://irrlicht.sourceforge.net/phpBB2/ ... =opensteer, http://irrlicht.sourceforge.net/phpBB2/ ... =opensteer). Does anyone has either (or both) of these projects that I would be able to poke around for ideas? Thanks in advance.
Tell me what you cherish most. Give me the pleasure of taking it away.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

hehehe, the boids example I hosted here
but remember this is about 3 years old and uses the Irrlicht version from that time, so you'll have to adapt it to newer versions... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
olivehehe_03
Posts: 157
Joined: Tue Mar 20, 2007 8:30 am

Post by olivehehe_03 »

You see, that's exactly what I needed. Had a look through that and it looks alot simpler to implement than I thought. Seems like all I need to do is inherit from the SteerLibraryMixin, call the steerFor/steerTo functions that I need, convert the STL vector to an Irrlicht one, then feed that vector to my physics to apply the right force to the entity. I'm hoping that I got that right <>

I'll probably set up a demo program just to see if I can get it all to work with Irrlicht before I let any of it into my full project (even if there's not much there at the moment). Thanks for that example.
Tell me what you cherish most. Give me the pleasure of taking it away.
Post Reply