pacanada / boids-simulation

Boids simulation with pyglet and imgui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 100.0%