Git Product home page Git Product logo

starling-cop290's Introduction

Boids

This project tries to simulate Starling murmuration. We simulated them using boids in 2D plane. The basic rules it follows are:

Separation: steer to avoid crowding local flockmates Alignment: steer towards the average heading of local flockmates Cohesion: steer to move toward the average position (center of mass) of local flockmates

Running the simulation

We are using SFML Library for the graphic part. We can generate blue-tiangular boids and red circular obstacles.

To run the simulation, cd into the src folder and run make to produce an executable file called flock.

./flock

You can add Boids and Obstacles. To add a boid, click the left mouse button. To add an obstacle, press the right mouse button. To Exit press esc.

Issues and Improvements

  • Fine tuning of velocity and force variables, along with line of sight, cohesion and steering factors to get most natural behavior. In the current version, the behavior is not very close to the natural behavior of real starling flocks.
  • Need to implement 3D simulation to get closer to natural flocks

starling-cop290

starling-cop290's People

Contributors

tusharmaurya avatar ysdinesh31 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.