Git Product home page Git Product logo

flocker's Introduction

flocker

Author: Sidharth Mishra <[email protected]>, Gaurav Gupta <[email protected]>

flocker is flocking simulation application using p5.js. The birds shown are Swallows.

Demo#1 - Normal

For this demo, the variables are set to the following values:

  • maxWrapAroundWidth = 816
  • maxWrapAroundHeight = 480
  • maxVelocity = 2.0
  • maxAcceleration = 0.03
  • desiredSeparation = 50.0
  • desiredAlignment = 50.0
  • desiredCohesion = 50.0
  • separationWeight = 3.0
  • alignmentWeight = 2.0
  • cohesionWeight = 2.0

demo1.gif

Demo#2 - High separation

For this demo, the variables are ser to the following values:

  • maxWrapAroundWidth = 816
  • maxWrapAroundHeight = 480
  • maxVelocity = 2.0
  • maxAcceleration = 0.03
  • desiredSeparation = 50.0
  • desiredAlignment = 50.0
  • desiredCohesion = 50.0
  • separationWeight = 2.5
  • alignmentWeight = 1.0
  • cohesionWeight = 1.0

demo2.gif

Demo#3 - High alignment

For this demo, the variables are ser to the following values:

  • maxWrapAroundWidth = 816
  • maxWrapAroundHeight = 480
  • maxVelocity = 2.0
  • maxAcceleration = 0.03
  • desiredSeparation = 50.0
  • desiredAlignment = 50.0
  • desiredCohesion = 50.0
  • separationWeight = 1.0
  • alignmentWeight = 2.5
  • cohesionWeight = 1.0

demo3.gif

Demo#4 - High cohesion

For this demo, the variables are ser to the following values:

  • maxWrapAroundWidth = 816
  • maxWrapAroundHeight = 480
  • maxVelocity = 2.0
  • maxAcceleration = 0.03
  • desiredSeparation = 50.0
  • desiredAlignment = 50.0
  • desiredCohesion = 50.0
  • separationWeight = 1.0
  • alignmentWeight = 1.0
  • cohesionWeight = 2.5

demo4.gif

References

[1] D. Shiffman, "Flocking", [Online] Website: https://processing.org/examples/flocking.html

[2] G. Kogan, "P5JS transformations", [Online] Website: http://genekogan.com/code/p5js-transformations/

[3] C. W. Reynolds, "Steering behaviors for autonomous characters", in Game developers conf., 1999, vol.1999, pp. 763-782

[4] J. Fantauzza, “Flock”, Exploratorium exhibit [Online] Website: http://www.interwebjill.info/work/flock.html

[5] Wikimedia, “Flocking (behavior)”, Wikipedia [Online] Website: https://en.wikipedia.org/wiki/Flocking_(behavior)

[6] P5JS reference, [Online] Website: https://p5js.org/reference

flocker's People

Contributors

guptagaurav0075 avatar sidmishraw avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

flocker's Issues

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.