Giter Site home page Giter Site logo

crowd-simulation's Introduction

crowd-simulation

Aggregate dynamics for dense crowd simulation

Test website

https://kolkol69.github.io/

Dev repo

https://github.com/kolkol69/crowd-simulation

Start

To start simply open the .html file

Description

As for now there is limit to 100 agents. Once you lower the limit to, for example, 60, the rest 40 (100-60=40) will become obstacles; So you dont need to place them manually for now, and they are randomly allocated. To make agents look more like a crowd without grouping set Neighbour Radius smaller than Minimal Distance.

Buttons

  • Update - updates data without refreshing the scene; Can be used to lower the amount of moving agents or to give them new settings without repainting. The one which are not moving are now considered as obstacles; The previous agents' trajectory and speed remain the same;
  • Repaint - repaints the whole scene, resets all the settings to the one which are set in the side panel;

Settings

  1. Agents - defines how many agents are present on the field. If changed with:
    1. "Update" button, then amount of only moving agents is being changed.
    2. "Repaint" button, then the whole scene is being rerendered with new Agents in previously defined amount.
  2. Neighbour Radius - defines if the Agent A is considered as a neighbour to B, the bigger is radius the more neighbour Agents appear for Agent A.
  3. Observable Degree - defines the observable degree for an Agent ("How much does Agent see").
  4. Minimal Distance - defines the minimal distance between Agent and a Obstacle\Other Agents.
  5. Weight Neighbour Velocity - defines how much the agent's nieghbour's speed affects his own.
  6. Weight Neighbour Distance - the less is this value the more agents will try to make groups, but also the whole system apears to be more smooth to the end user. Agents are not moving too fast if they try to exit their group, but it affects their chances of success.
  7. Weight Minimal Distance - is used to define agent behavior if two (or more) agents are too close to each other.
  8. Weight Perturbation - perturbation is added to make Agents' moving around look more chaotic. If an agent is in a group with other agents, this value defines how likely he will exit it. The more the values is, the more likely he will try to escape from the froup.
  9. Max Velocity - defines agents' maximum possible speed.
  10. Speed to target - defines the speed of the agents which have target.
  11. Time to achive targets - sets timer's time, so each 3000ms(default) some agents might want to move towards the target. The rest time agents are moving rather chaotically.
  12. Chances to achive targets - defines how likely bigger amount of agents will group near defined target.

crowd-simulation's People

Contributors

kolkol69 avatar

Watchers

 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.