While watching the second LOTRs dvd the other night I was inspired to try my hand at a crowd/combat simulator like Massive. Massive is a program that lets you place two different armies on a battlefield and the program figures out how they will fight each other. They base thier movements on fuzzy logic and mocap files. The mocap files rewrite themselves based on what type of terrain they are fighting on and the personality of each “actor”.
I have very little knowlege in Python but that didn’t stop me from hacking my way thru a very simple AI type script. The script I wrote involves two different set of objects: orc’s right foot and left foot and a human’s right foot and left foot. These feet will find each other where ever you place them and step thier way to each other. In other words the orc will find the human and move to his location.
I have a small video of just the orc’s feet moving to the human. I used planes to represent the feet for this test right now. The movement of the planes look like a penguin walking right now but fixing that won’t be hard. The hardest part for me was to have the feet “take turns” stepping, so this was a test to see if I could get them to do that.
To the more experienced programmers: Am I on the right track? Should I look into the .bvh format and maybe write a script that would change the bvh data like Massive does ( I have some ideas on how to do this). I have a degree in Mathematics and have taught math including Calculus for the last 12 years so the math part I can handle pretty well. I don’t know how to write data to a separate file for Blender to read or how to write/read ipos so any tuts on this would be of great help.
Any way please go easy on me, for I am quite a newbie when it comes to python. Movie link (right click save as/ 158 k with divx: 5.0.2): http://www.geocities.com/nerddogs/walktest.avi