3 ms·
I recently implemented boids in a compute shader [1]. It’s using Apple’s Metal framework, and rendered in 3D. The boids are simple triangles, and I added a bit
by gdubs 7y ago
I recently implemented boids in a compute shader [1]. It’s using Apple’s Metal framework, and rendered in 3D. The boids are simple triangles, and I added a bit of specular shading to give them a little bit of a “shimmer” as they flock.
I implemented an NVIDIA algorithm for running n-body simulations on the GPU. The constraint is memory access, which can freeze up in a case like this. [2]. Converting from CUDA to Metal wasn’t too bad.
1: https://www.instagram.com/p/B4t4ewCplfR/?igshid=1uxnng6idsqb8 https://www.instagram.com/p/B4t4ewCplfR/?igshid=1uxnng6idsqb...
2: https://developer.nvidia.com/gpugems/gpugems3/part-v-physics-simulation/chapter-31-fast-n-body-simulation-cuda https://developer.nvidia.com/gpugems/gpugems3/part-v-physics...
edit: Here's a low-res animated GIF for anyone who doesn't want to click an instagram link: http://gregorywieber.com/assets/images/art/murmuration.gif http://gregorywieber.com/assets/images/art/murmuration.gif
- afro88 7y agoLove it, and the others on your instagram. You should start a dedicated account for them. I would like to follow your art, but feels weird seeing family photos of someone I don't know :/