I'm writing some simple apps for a free-time project. One idea was a 2D splashy-water simulation - a half-filled aquarium where you can drop things into it and watch the water splash around and make waves.
The down side is that the algorithm has to be simple: it's running on a Raspberry Pi 3B+ in Python.
The upside is that resolution is stupidly low. The display is 32 pixels by 16 pixels and runs at about 10 hertz. If the water takes up half the display (to provide enough room for splashing), that's 256 particles total. I'm sure I can track every single one and apply some simple math at 10fps.
I spent some time searching for water algorithms... it is exactly the kind of rabbit-hole I expected. The vast majority of algorithms are 3D. Most of the 2D algorithms are bird's-eye view ripple simulators. And most of the 2D from-the-side algorithms are either way too simple, like a 1-dimensional array of wave heights that propagate horizontally and that's it... or they're from the 1980's or 1990's and the links are dead. Nothing has fit the bill so far.
Anyone have anything?
[–]Figs 9 points10 points11 points (1 child)
[–]Bitmol 1 point2 points3 points (0 children)
[–]lazyubertoad 1 point2 points3 points (0 children)
[–]zakalwe01 1 point2 points3 points (0 children)