Boids
31–40 of 84 posts
Might be a dumb thing to post on hacker news, but I tried using the word boid or boids in Scrabble and my competitive wife wouldn't let me because it wasn't in the dictionary. It fit so well too!
Re: Boids
#32I also have an implementation [0] that shows the paths of the boids. Based on the parameters, some very interesting patterns emerge!
Re: Boids
#33It is a beautiful paper, well worth reading the original.
Re: Boids
#34Dan Shiffman over on The Coding Train has a nice walkthrouhg of implementing this in P5.js https://www.youtube.com/watch?v=mhjuuHl6qHM
Recently did that code as presented using pygame, but I haven't uploaded it anywhere yet, that might be a good idea, though.
Re: Boids
#35I 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=1uxnng6idsqb...
2: 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
Re: Boids
#36Could that be used to simulate the pandemic?
No. It's an unrelated set of rules. The best way to simulate a disease is to model each person in the country as an individual agent. Even a naive movement model for humans won't look like anything like bird flocking.
Re: Boids
#37I posted this simple boid drawing toy a year or two ago: https://miniatureape.github.io/boiddraw/
Re: Boids
#38Good old Boids! I implemented a clone of Boids in C as my senior project in high school. It included 3D wireframe graphics from scratch. My teacher said it was "A nice screensaver".
Re: Boids
#39> Incidentally, "boid" is also a New York Metropolitan dialect pronunciation for "bird".
Re: Boids
#40Nice boid-related tutorial: https://www.youtube.com/watch?v=bqtqltqcQhw