For people on iOS, here's another version with rainbow colors and multi-touch https://haxiomic.github.io/demos/rainbow-fluid/index.html
If you like this sort of thing and want to learn more about it I recommend checking out https://www.shadertoy.com/ for more demos and https://thebookofshaders.com/ for tutorials
And if GPU simulations is your thing then I think you'll enjoy what these two amazing guys are doing with shaders:
Uncaught TypeError: rgHalfFloatLinear is null
I assume that means it doesn't support 16-bit float pixel formats; maybe this is something that could be detected and shown as an error message in the page?The original HN link works great, though, very cool!
The big difference is in the rendering however, Pavel has added light shafts and bloom which are really neat effects. Additionally, he actually got round to publishing a native app which I think has been great for him!
[0] https://pdfs.semanticscholar.org/847f/819a4ea14bd789aca8bc88...
Is the code up anywhere?
http://thebookofshaders.com/edit.php?log=200806194314
The technique is called "sine puke", and it works by starting with a gradient (in this case a rainbow) and warping the domain when drawing that gradient by sine functions repeatedly (check the for loop)
In the fluid demo I blend new frames with the previous so you get this slower, softer pattern
Looking forward to the app. Would be fun to manipulate the sim by moving my iPad around.
Potentially fun ideas...
Allow me to place shapes/blocks down and lock them in place to see how the fluid moves around them.
Let me put a small 'pump' in the liquid to keep constant or pulsed movement. add a couple dials for pump speed, etc. I want to put two pumps facing one another and watch the interaction where they meet.
Different pool shapes - round, star, sphere?
Allow for particles to reach the edge of the pool to fall off and then let me drop new ones into flowing water.
Loads of fun. Thank you!
Does anyone have tips or hints? Are my expectations perhaps unrealistic? I looked into OpenFOAM before but always eventually gave up, as it seems quite heavy on headless, scripted simulation, and would need some significant run-up time.
OpenFOAM is high quality, but as you’ve seen complex to use. There is a web-based GUI that can lighten the burden to get started somewhat: https://www.simscale.com/ I think they give you ~3000 simulation hours for a trial.
I've only looked half-heartedly, but found nothing that can help me.
No good for mobile, but perhaps someone could fix that.
A quick search suggests that there are downloadable copies out there. 1.3c was the latest release. Check WayBackMachine from 2007-Sep-13 (https://web.archive.org/web/20070913204145/http://www.plasma...) or older if you want more info, after that the site is an "Atari told us to take this down" message for a while and is currently held by someone else talking about other games.