Boids 3D

After conquering the parallel prefix-sum (or “scan”) algorithm for Boids 2D, we were tasked with learning how to draw an array of instanced geometry to give our agents a mesh body.

I extended my Boids 2D code into 3D and constructed a sunrise scene for my 3D Boids to fly around in, occasionally catching the sun.

Key Highlights

  • 400,000 boids running in real time
  • 3D implementation of Uniform Spatial Partitioning
Copyright © '23 Jeff Schofield