top of page

Boid Simulation

Motivation

It starts from a school assignment of shader and it's the first I get to learn rust and wgpu. After I managed to create some juicy cubes and triangles I decided to do something more challenging. I got the idea from austin-Eng's webgpu samples of boid simulation, it's written in javascript through webgpu API. For the study I decided to rewrite his code in rust. I struggled a lot at the beginning to understand the pipeline work and GPU programming, but finally I managed to make it happen.

​

github_edited.jpg

Result

bottom of page