vojtatom / flocking.cpp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

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


Languages

Language:C++ 55.4%Language:C 43.5%Language:GLSL 0.9%Language:CMake 0.1%