/CG-Group-Project

3D Boids: Three.js university group major project for Computer Graphics

Primary LanguageJavaScript

3D Boids Ocean Simulation

Contributors: Stephen, Nathan, Michael, Erencan

Boids algorithm

  • uses octree spatial partitioning to optimise the simulation, can simulate up to 10k boids at 60fps
  • boids's behaviour is not affected by boids behind it (boid field-of-view)
  • customisable behaviour via GUI sliders
  • limited worldsize
  • avoids edges of the world
  • boids avoid boids which are higher up on the 'food chain' than them
  • boids follow boids which are lower on the 'food chain' than them