Skip to content

pacanada/boids-simulation

Repository files navigation

Description

(WIP)

Boids simulation (http://www.red3d.com/cwr/boids/).

It is not ideal to use python for high demanding graphics, and lets not say for simulations. I found a decent setup by combining pyglet for the graphics, imgui for the user interface and numba to speed up the calculations. Tested on M1 through rosetta 2.

https://youtu.be/xzHkp6OICtc

The boids simulation does not seem to match completely the expected behaviour. More work is needed there.

Reproduce

Create conda environment:

conda env create -f environment.yml
conda activate graphics

Run main script:

python main.py

Watch the video

About

Boids simulation with pyglet and imgui

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages