Skip to content

🦆 Flocking algorithm C++ implementation both for CPU and GPU using compute shaders

Notifications You must be signed in to change notification settings

vojtatom/flocking.cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flocking

The flocking algorithm mimics behaviors commonly seen in nature. A typical example of this behavior is the flight of birds in a flock. This repo contains C++ implementation both for CPU and GPU using compute shaders. Implementation includes:

  • CPU naive
  • CPU octree-based
  • GPU brute-force
  • GPU regular grid

Outputs

I made a blogpost describing the design, there are also some outputs, see more here!