Simulation of Realtime, 60fps+, WebGL crowd movement
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 23 commits ahead of CIS700-Procedural-Graphics:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
skymap
src
README.md
adam.jpg
adamOne.jpg
adamTwo.jpg
blue.jpg
blue.png
index.html
package.json
simpleOne.jpg
simpleTwo.jpg
webpack.config.js

README.md

Hannah Bollar
hbollar

View the Project

Note: turn off vDebug for faster runtime with larger number of agents.

Click Here

The Project

BioCrowds

Biocrowds is a crowd simulation algorithm based on the formation of veination patterns on leaves. It prevents agents from colliding with each other on their way to their goal points using a notion of "personal space". Personal space is modelled with a space colonization algorithm. Markers (just points) are scattered throughout the simulation space, on the ground. At each simulation frame, each marker becomes "owned" by the agent closest to it (with some max distance representing an agent's perception). Agent velocity at the next frame is then computed using a sum of the displacement vectors to each of its markers. Because a marker can only be owned by one agent at a time, this technique prevents agents from colliding with one another.

The Elements

  • Agents are set up as cylinders on the plane in the set up associated with whichever scene is currently toggled. The Markers are set up as point objects which can be toggled on and off with the check box associated with visual debugging.

Two scenarios

  • Created two base scenarios. Can flip between them by using the onScene bar. One is where the agents start out in a large circle and need to go to the location opposite them in the circle. The other is where the agents start out in a smaller circle and need to go to the destination opposite them in the larger circle.

Add Obstacles to the scene

  • to be later implemented

Different Materials

  • toggle the usingMaterial bar to switch between materials
  • NOTE: visually make sure to look at the cylinders from above to get a look at the lack of intersections between the agents due to the algorithm [ie the crowd sim working properly]