Plan for Stefan Beffy Moises
by Stefan Beffy Moises · 02/12/2004 (7:48 am) · 11 comments
While working on my AI steering behaviours I finally managed to get a pretty decent dynamic obstacle avoidance working... AIs can now avoid statics, players, interiors and also walls inside interiors...
Here is a little video showing an Orc with the Wander behaviour inside a building... he picks random wander locations while trying to avoid walls and other obstacles... I have put some visualization code into AIPlayer to see what's going on... that probably saved me days of trial-and-error ;)
tork.beffy.de/downloads/videos/ai_obstacle.zip
(AVI, DivX5.05, ~3.8 MB)
Well, other behaviours I have implemented are Flee, Hide, Follow, Pathfinding, Flock, Arrive...
Basically I've tried to implement most of the behaviours Craig Reynolds mentions in his steering papers at www.red3d.com/cwr/steer/ (mainly the "simple" ones) in Torque... check out my previous plans or our ToRK site for further details...
We have also a little wiki for Torque AI related discussions if anyone is interested ;)
Here is a little video showing an Orc with the Wander behaviour inside a building... he picks random wander locations while trying to avoid walls and other obstacles... I have put some visualization code into AIPlayer to see what's going on... that probably saved me days of trial-and-error ;)
tork.beffy.de/downloads/videos/ai_obstacle.zip
(AVI, DivX5.05, ~3.8 MB)
Well, other behaviours I have implemented are Flee, Hide, Follow, Pathfinding, Flock, Arrive...
Basically I've tried to implement most of the behaviours Craig Reynolds mentions in his steering papers at www.red3d.com/cwr/steer/ (mainly the "simple" ones) in Torque... check out my previous plans or our ToRK site for further details...
We have also a little wiki for Torque AI related discussions if anyone is interested ;)
#2
Anyway good luck and keep Torqing.
Coz
02/12/2004 (8:39 am)
Hey Beffy I have been following your AI work.(Looks really cool) I was wondering if you are planning a resource and/or pack for the community of your AI work.Anyway good luck and keep Torqing.
Coz
#3
@Michael: thanks :) I am currently "evaluating" how to get some AI into Torque and submit/contribute this stuff somehow... there are plans to team up with Phil Carlisle and get the ball rolling AI-wise... more infos coming soon! ;)
02/12/2004 (11:33 am)
@Christian: Danke! ;)@Michael: thanks :) I am currently "evaluating" how to get some AI into Torque and submit/contribute this stuff somehow... there are plans to team up with Phil Carlisle and get the ball rolling AI-wise... more infos coming soon! ;)
#4
02/12/2004 (11:57 am)
Sounds Great. Fingers are crossed :)
#5
02/12/2004 (5:33 pm)
Nice work, Beffy!
#6
A woo to you.
02/12/2004 (6:30 pm)
that could be useful for an rpg type game. Have the NPCs wander then at certain times get them to walk to places (like bed etc).A woo to you.
#7
Now, the lack of a simple scripting language was my biggest problem, so you have it way better off in that you can allow people to script the blend.
Enjoy!
- Brett
02/13/2004 (6:31 am)
A while back, I was implementing a plug-in for trueSpace that did behaviors. Honestly, it was a hack-job, but it produced some nice animations! One of the biggest features that people bugged me about (so I'll pass onto you) was behavior blending. It allowed someone to choose how much of each behavior would be present in an objects "mind". Thus, if the behaviors that were chosen were evade and pursue with 20% going to evade and 80% going to pursue, the object would follow another object, yet back off a little if the pursued object turned and did a little pursuing of it all.Now, the lack of a simple scripting language was my biggest problem, so you have it way better off in that you can allow people to script the blend.
Enjoy!
- Brett
#8
but as I said, it needs some tweaking... and you can't really combine path following e.g. with other "strong" forces cause then it just doesnt reach the nodes... but you can e.g. combine "wander" and "flock" or "flee" and "wander", which works quite well (most of the time :P) you also don't want to combine "follow" and "flee" etc., but some combinations really do make sense :)
02/13/2004 (6:45 am)
Hi Brett, actually, you could do that in my implementation... it has to be tweaked a bit, but in theory it works already since I can add the behaviours bitwise - in my main steering routine, I check for each behaviour "flag" and add the force the specific behaviour produces to an overall steering vector... you can't weight the different components very comfortable yet though, but most of the behaviours have a weight factor already...but as I said, it needs some tweaking... and you can't really combine path following e.g. with other "strong" forces cause then it just doesnt reach the nodes... but you can e.g. combine "wander" and "flock" or "flee" and "wander", which works quite well (most of the time :P) you also don't want to combine "follow" and "flee" etc., but some combinations really do make sense :)
#9
see www.garagegames.com/mg/forums/result.thread.php?qt=13139
02/13/2004 (3:52 pm)
Attaching a camera to the bots while steering is fun :)see www.garagegames.com/mg/forums/result.thread.php?qt=13139
#10
02/13/2004 (6:31 pm)
Did anyone else who watched that movie find themselves cheering the bot on to find the door? =)
#11
Looks like the "flocking" stuff is working better now, too... well, to be exact it's more a "leader following", that is, a flock that actually moves somewhere...
This video shows 4 "flocking" horses where one horse is the "leader" (only "wander" force is applied), the other 3 horses follow...
02/14/2004 (5:33 am)
Hehe, nah! I had to restart taking the video at least 3 times cause the bot DID find that door and ran out of the building :P So I couldnt record it avoiding walls... ;)Looks like the "flocking" stuff is working better now, too... well, to be exact it's more a "leader following", that is, a flock that actually moves somewhere...
This video shows 4 "flocking" horses where one horse is the "leader" (only "wander" force is applied), the other 3 horses follow...
Torque Owner Christian Weber
HydraGames