A simple Boids simulation implemented in OpenGL, using GLFW and ImGui for configuration.
- Real-time simulation of flocking behavior using the Boids algorithm.
- Interactive configuration using ImGui for adjusting parameters.
- Rendering of individual Boids as simple shapes.
- TODO: Move simulation calculations to shaders to improve performance.
- TODO: Refactor the application into an Object-Oriented Programming (OOP) structure.
- TODO: Implement a cube that can be moved for the Boids to follow.
- TODO: Implement obstacle avoidance.
- G++ compiler
- Modern OpenGL
- GLFW3
- Clone this repository:
git clone https://github.com/gsoaresbaptista/opengl-boids
cd opengl-boids
- Compile the code using the provided Makefile:
make
- Run the simulation:
./boids
- Launch the simulation executable.
- Use the ImGui interface to adjust parameters like flocking behavior, boid perception radius, etc.
This project is licensed under the MIT License.
- The Boids algorithm was developed by Craig Reynolds. More details can be found here.
- Additional resources on Boids: