Flocking Demo (XNA)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,722
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 1, 2008

A simple flocking demo made in XNA. The version shown here is version 1.0.0, it features a flocking algorithm to enable boids to flock to a target, flock around themselves and scatter themselves. There are a number of runtime configurable options including an option to increase or decrease the number of boids and change the maximum velocity of the boids.

Both the executable for the demo and the source code are available from my website:
http://jamiedale.net/index.php?p=portfolio/xnaflocking

The flocking algorithm itself is based on code from:
http://www.vergenet.net/~conrad/boids/pseudocode.html

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • is it possible to download the source code ?very interest in it。

  • Hi. This demo does have the flocking rules enabled, however it also has two other rules for flock to target (the red dot), and scatter (from each other).

    The reason it doesn't look like flocking in this demo is because the weightings on the rules is messed up so the actual flocking behaviours are essentially being overwhelmed.

    The video response I posted is using the exact same flocking rules as this code, but without the two additional rules, and as a result it shows much better flocking.

  • Couldn't have said it better myself, I agree entirely.

  • this is not flocking, the algorithm is obviously just "get as close as possible to red dot". Flocking algorithms are more complex and require at least alignment, cohesion and separation algorithms. Your boids dont know about each other they just have collision implemented.

  • Hi, the source code is now available from my website. The link can be found in the video description.

  • groovy!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more