Thread: Final Project
View Single Post
# 12 02-07-2007 , 10:15 PM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
Hi Matt, hope your project is going well user added image

I did them in flash using actionscript 2 (looks a bit like java nowadays) and based it on a the original boid information and a pseudo (generic, non-specific) code example. Theoretically implementing a similar structure in Mel should be straightforward, being a C style structured language not vastly different from PHP's structure which I've used for years.
I had a play with Mel the other week and liked how you can use both Mel and Python when scripting (I'm learning Python at the minute too) - the only drawback I found, correct me if I'm wrong here - is that you can't use python to write expressions, only a variant of Mel. Also controlling things based on the time or current frame seems a bit overly complicated to what I'm used to. I would much prefer to write a Python function and execute it per frame through some kind of custom control rather than having to put it inside an expression (and therefore Mel) that is automatically evaluated every frame.

I'm aiming at getting a behaviour pattern so that the boids leave a small constrained place and spread out avoiding objects and each other as they travel towards a final location which they further spread out at and stop behind an object like a wall. Another behaviour I'd like is to have some random boids stop behind obstacles (staying under cover) for a random length of time before moving forward - something along the lines of the guys leaving the landing craft at the beginning of saving private ryan (if thats not giving too much away) user added image

Si

p.s, I'll put the flash code up on my site at some point soon so that people can have a look and play with it


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net

Last edited by t1ck135; 02-07-2007 at 10:21 PM.