Difference between revisions of "Flight of a flock of birds"
From BP Wiki
(Created page with "= Simulating Flight of a Flock of Birds = In this example we simulate the flight of a flock of birds, with each bird having a simple set of rules implemented as b-threads. Th...") |
(→Requirements - from each bird) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= Simulating Flight of a Flock of Birds = | = Simulating Flight of a Flock of Birds = | ||
− | In this example we simulate the flight of a flock of birds, with each bird having a simple set of rules implemented as b-threads. | + | In this example we simulate the flight of a flock of birds, with each bird having a simple set of rules implemented as b-threads. |
− | The example highlights | + | The example highlights |
− | * Multi-agent activity | + | * Multi-agent activity |
− | * Emergent group behaviors - emanating from individual agent behavior | + | * Emergent group behaviors - emanating from individual agent behavior |
− | * Implementation of animation with BPJ - and handling of associated design issues. | + | * Implementation of animation with BPJ - and handling of associated design issues. |
+ | * [http://www.wisdom.weizmann.ac.il/~bprogram/videos/flock25Gather.avi Movie: 25 birds gathering and flying] | ||
+ | * [http://www.wisdom.weizmann.ac.il/~bprogram/videos/flockScare.mp4 Movie: Birds disperse in reaction to a "scare" action] | ||
− | = Requirements - from each bird = | + | = Requirements - from each bird = |
* Always try to move towards the center of the flock | * Always try to move towards the center of the flock | ||
* Always avoid colliding with other birds | * Always avoid colliding with other birds | ||
* When getting close to a wall - change direction - in the same "reflection" angle | * When getting close to a wall - change direction - in the same "reflection" angle | ||
− | * When the "Scare" button is hit - fly away from the center of the flock. | + | * When the "Scare" button is hit - fly away from the center of the flock. |
− | + | = Download = | |
+ | # Click [[Media:Flock.zip | here]] to download the flock of birds example. | ||
+ | # Installation Instructions: | ||
+ | ##Import the downloaded project to your workspace: | ||
+ | ###From the 'File' menu choose 'Import'-->'General'-->'Existing Projects into Workspace'. | ||
+ | ###Click the 'Next' button. | ||
+ | ###Click the 'Select archive file' option and then click the 'Browse...' button to select the downloaded zip file. | ||
+ | ###Click 'Finish'. | ||
+ | ##The flock of birds example project is now part of your workspace. | ||
+ | ##Refer to the readme.txt file for execution instructions. |
Latest revision as of 10:05, 28 April 2014
Simulating Flight of a Flock of Birds
In this example we simulate the flight of a flock of birds, with each bird having a simple set of rules implemented as b-threads. The example highlights
- Multi-agent activity
- Emergent group behaviors - emanating from individual agent behavior
- Implementation of animation with BPJ - and handling of associated design issues.
- Movie: 25 birds gathering and flying
- Movie: Birds disperse in reaction to a "scare" action
Requirements - from each bird
- Always try to move towards the center of the flock
- Always avoid colliding with other birds
- When getting close to a wall - change direction - in the same "reflection" angle
- When the "Scare" button is hit - fly away from the center of the flock.
Download
- Click here to download the flock of birds example.
- Installation Instructions:
- Import the downloaded project to your workspace:
- From the 'File' menu choose 'Import'-->'General'-->'Existing Projects into Workspace'.
- Click the 'Next' button.
- Click the 'Select archive file' option and then click the 'Browse...' button to select the downloaded zip file.
- Click 'Finish'.
- The flock of birds example project is now part of your workspace.
- Refer to the readme.txt file for execution instructions.
- Import the downloaded project to your workspace: