New games|All games|Competitions|Suggest a game|Favorites|Help Squad|Chat|Prefs

By Jay | add this!

Schooling Fish Simulation

Lately I've been working on one of the coolest projects so far in my RIT education, and it's for Multi-User Media Spaces (MUMS) taught by Professors Nancy Doubleday and Steve Kurtz. The project aims to simulate flocking behavior by implementing behavioral rules, though I guess it should be dubbed "schooling" behavior since we are using fish - and yet these same rules apply to birds and herds as well. The behavioral rules that we are concerned with in these simulations are:

  • Fish are drawn to the center of other fish around them
  • Fish tend to move in the general direction as other fish around them
  • Fish keep safe distances apart and move at similar velocity to each other to avoid colliding with other fish around them

Anyways, I really got absorbed into the project as the gratification was tremendous when my first fish began to swim back and forth in the 3-dimensional tank. Then I began adding external influences one by one (centroid, average heading, collision avoidance, and velocity matching), and with each step the fish took on increasingly more life-like appearance due to their emergent behavior.

If you have the very latest Shockwave player (version 10) installed please do check it out. If you have trouble playing the movie, try downloading the latest Shockwave player from Macromedia's site. I used the newest version of Director MX (2004) which just came out in February, so the code isn't compatible with any but the latest version of Shockwave. Click.

  • Currently 5/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 5/5 (3 votes cast)

Comments (may contain spoilers)

Would you quit making the rest of us look bad? :-P

Not possible, Brock. With the way you had those 3D primitives driving around during the first lecture of 3D back in 434 last quarter, I'll accept no big fish tales from you. =P

Wow! Jay, that's really cool! Nice job! Hope your quarter's going well.

Oh, this is very good work :) Brilliant!

Wow, this is a very impressive model of flocking behaviour. Indeed, it is even quite addictive as something to watch

Thank you! I enjoyed watching it, too, as it was taking shape. =)

Comment Preview

Leave a comment

  • Please consider creating a Casual Gameplay account if you're a regular visitor here even if you already have a TypeKey identity, as it will allow us to create an even better experience for you.

    To create a new Casual Gameplay account YOU MUST SIGN-OUT FROM TYPEKEY FIRST (if already signed in).
  • Out of respect for our international community (some use page translators), please use English. Comments containing IM-speak gibberish will be deleted. (if u rite like dis, dun bother).
  • You may use limited HTML tags for style: (a href, b, br/, strong, em, ul, ol, li, code, spoiler)
    For code snippets or ascii art, use code tags for monospaced font and to preserve whitespace.
  • To post spoilers, please use spoiler tags: <spoiler>example</spoiler>
    If you need help understanding spoiler tags, read the spoiler help.