I understand why real 3D fluid sim is much harder to do at reasonable speeds than 2D but I wonder if there's a pseudo-3D version that would look good (I'm especially thinking of VR here)<p>A few transparent layers to add depth? Or something akin to parallax occlusion mapping?<p>EDIT - this Shadertoy is remarkably awesome despite only running on a 128x128x128 grid: <a href="https://www.shadertoy.com/view/wlG3RW" rel="nofollow">https://www.shadertoy.com/view/wlG3RW</a>
On my iPhone 6S, I turned the quality up to high and played with the simulation for around five minutes. It kept working smoothly, but holy crap, I'm not sure if my phone has <i>ever</i> been this hot!<p>Great work though, it's gorgeous!
If anyone is interested, I made an implementation of this (based on the GPU Gems article) in Lua using the LÖVE framework that adds a bunch of effects like reflections, normal mapping and more.<p><a href="https://sixtyfour.itch.io/fluid" rel="nofollow">https://sixtyfour.itch.io/fluid</a>
This reminded me of a great game called Plasma Pong.<p>It was successful but unfortunately it was killed via a Cease and Desist letter from the Pong people.<p><a href="https://en.wikipedia.org/wiki/Plasma_Pong" rel="nofollow">https://en.wikipedia.org/wiki/Plasma_Pong</a><p>There's a web clone of it here: <a href="http://anirudhjoshi.github.io/fluid_table_tennis/" rel="nofollow">http://anirudhjoshi.github.io/fluid_table_tennis/</a>
Feels so smooth on my iPhone. I’m aware these phones have pretty killer SOCs but I couldn’t have imagined running this on something that fits in my pocket 15 years ago.
The author made this also into an iOS app: <a href="https://apps.apple.com/us/app/fluid-simulation/id1443124993" rel="nofollow">https://apps.apple.com/us/app/fluid-simulation/id1443124993</a>
Very impressive!
Many years ago, I had made a fluid simulation (a different kind):<p><a href="https://jsexperiments.herokuapp.com/sph/" rel="nofollow">https://jsexperiments.herokuapp.com/sph/</a><p>Code:
<a href="https://github.com/asadm/SPHjs" rel="nofollow">https://github.com/asadm/SPHjs</a>
Might use the “SIMPLE” navier stokes algorithm: <a href="https://en.m.wikipedia.org/wiki/SIMPLE_algorithm" rel="nofollow">https://en.m.wikipedia.org/wiki/SIMPLE_algorithm</a>
The app is well worth downloading, and given how much time I've wasted just futzing around in it, I was more than happy to pay a few bucks to unlock the additional features. Really superb.
I opened this website expecting very little, as I know Apple has refused to deploy WebGL 2 (Apple is essentially always the stubborn bottleneck) and particularly as I am still running iOS 12.<p>It was glorious. It was smooth and responsive and maybe-weirdly <i>fun</i> to play with given how simple of a toy this little demo of a website itself represents. I had this momentary feeing of joy.<p>And then it popped up a dialog asking me to install an app. I think I want to go cry now about how fucked up the world is and how it is no longer possible to have good things on the web :(.
The controller in the upper right hand does not support higher resolutions directly, but you can edit higher resolutions into the select box and it'll absolutely accept them. I was able to push it up to 2048 no problem, though it is more interesting at 512 and 1024.