Hacker News new | ask | show | jobs
by pengaru 900 days ago
I implemented something similar[0] a while back in rototiller[1], there's a short low-res youtube clip here[2].

It was a fun little hack, I didn't realize this is a thing. I was just messing around with an idea of pushing particles through a cube of tri-linearly interpolated direction vectors, without simulating any actual physics like mass/friction/fluids or anything like that.

Something which surprised me was during development I just populated the cube of vectors with randomized vectors, fully expecting I'd have to do something more intentional and clever before it was interesting to watch. But the emergent structure of the flow paths even with the pseudo-random vectors was surprisingly interesting and I just left it at that, with the addition of a second randomized field the direction vectors would be interpolated between in a ping-pong manner. When one field is dominant, it re-randomized the other, resulting in a continuously-looking evolving field...

Tinkering with graphics hacks is loads of fun.

[0] https://github.com/vcaputo/rototiller/blob/master/src/module...

[1] https://github.com/vcaputo/rototiller/tree/master

[2] https://www.youtube.com/watch?v=-q2Yq2fHedw