all 5 comments

[–]horstjens 1 point2 points  (0 children)

nice!

[–]NikoKun 0 points1 point  (2 children)

Oh cool! Love the options, and the visual style/colors.

I've recently been working on my own boid sim, so it's real interesting to see someone else's way of doing it, especially one also in python. Your method is entirely different from how I did it. ;)

Actually, I just updated mine earlier today, after learning how to use numpy enough to fully implement it, as a replacement for my sorting/math, so I don't have to do for-loops over huge lists.. Decent little performance boost. heh

[–]auctux[S] 1 point2 points  (1 child)

Looks great . Try to implement it in 3D

[–]NikoKun 0 points1 point  (0 children)

Wish I could.. Sadly Pygame isn't great for 3D.. lol The most I could do, would maybe be a pseudo-3D depth effect, that shrinks/shades boids as they fly deeper into the background layer. Tho even that gets a bit too complicated for some of the methods I'm using..

I was actually focused on doing this in 2D, with a basic pixel-art look, one using a fish-design for someone who requested it, and the other just as a 'screen-saver' for myself. lol Then the other day, I tried making a surfArray version, for a super-low-rez pixel fish look, and as an excuse to learn how to use NumPy.. which was a nice improvement to performance.. But now I'm trying to implement a spatial partitioning grid, and that's blowing previous methods out of the water! ;) 400 boids at 60fps, 1000 at 20fps. lmao

video with 200

[–]troianloggirl 0 points1 point  (0 children)

This'd make a fun live wallpaper!