Waypoints for the irrAI

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
Rockyy93
Posts: 3
Joined: Fri Jun 03, 2011 8:24 pm
Location: Germany

Waypoints for the irrAI

Post by Rockyy93 »

Hi guys..

I tried to let an NPC walk randomly over a terrain I created but that didn´t work.

I create some Waypoints on my terrain but when I expected my NPC to walk to some off these waypoints, I got the message that there were no path found.
And the Waypoints also wasn´t linked by an arrow like the are in examples that comes with the irrAI.
So is there any way to create waypoints on a TerrainSceneNode??

thank´s for your help
and please excuse my bad english you must know that I´m actually german but nontheless I hope that you could understand what my problem is....
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

terrains allows for differents solutions. waypoints are better inside dungeon/closed spaces etc.. For moving on terrains I use a heightfield (height is interpolated from surrounding vertices.) wich is faster enough(didn't tried with 500 units walking on it)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

If you want your AI to walk only on roads, you'll still need waypoints(i think)
Example games: Gothic, Risen
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!
Dareltibus
Posts: 115
Joined: Mon May 17, 2010 7:42 am

Post by Dareltibus »

Just write your own AI. it is much simpler :)
Rockyy93
Posts: 3
Joined: Fri Jun 03, 2011 8:24 pm
Location: Germany

Post by Rockyy93 »

Hey..

thank you for your fast help..

@Dareltibus: I think you´re right wrting your own AI is more specific for your game. But isn´t that difficult?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Rockyy93 wrote:Hey..

thank you for your fast help..

@Dareltibus: I think you´re right wrting your own AI is more specific for your game. But isn´t that difficult?
I think that if you're looking for something easy, you shouldn't be doing game development ;)
Good results require you to solve some difficult problems
Rockyy93
Posts: 3
Joined: Fri Jun 03, 2011 8:24 pm
Location: Germany

Post by Rockyy93 »

Well...

I didn´t thought about it this way..
anyway i guess i´ll try to write my own AI!

And thanks for all your help!!

:)
Post Reply