6 ms·
A fun website that simulates fluid
- bijection 6y agoPrevious discussions: 3 months ago: https://news.ycombinator.com/item?id=23955527 https://news.ycombinator.com/item?id=23955527 2019: https://news.ycombinator.com/item?id=19963640 https://news.ycombinator.com/item?id=19963640
- Wowfunhappy 6y agoI'm pretty sure 3 months ago is in the range for this to be considered a duplicate? Don't get me wrong, the site is cool and all, but...
- Retr0spectrum 6y agoThe mobile app is a fun fidget toy
- huhtenberg 6y agoIt really is. Updated every few weeks too! https://apps.apple.com/us/app/fluid-simulation/id1443124993 https://apps.apple.com/us/app/fluid-simulation/id1443124993
- varispeed 6y agoIs there an Android version?
- abdusco 6y agoThere's both free and paid version https://play.google.com/store/apps/details?id=games.paveldogreat.fluidsimfree https://play.google.com/store/apps/details?id=games.paveldog... https://play.google.com/store/apps/details?id=games.paveldogreat.fluidsim https://play.google.com/store/apps/details?id=games.paveldog...
- dEnigma 6y agoAlso great as a live wallpaper. I have set mine up to be black and white, which goes well with my icon set.
- noisy_boy 6y agoQuite useful for generating wallpapers - I made mine using it: https://imgur.com/5VEg1YC https://imgur.com/5VEg1YC
- durpkingOP 6y ago......
- dEnigma 6y agoThe developer has also released an app on the Play Store, which I use as a live wallpaper.
- Wowfunhappy 6y agoDoes that not end up being a massive battery hog? To be sure, the site is impressively lightweight, but I'm not sure it's to the point where I'd want it always running on the homescreen...
- dEnigma 6y agoThat was my concern as well. I haven't measured it but the impact on battery life seems negligible. My phone is a Nokia 6.2, for reference.
- wetpaws 6y agoThat reminded me of plasma pong: https://www.youtube.com/watch?v=yGJO5bydch4 https://www.youtube.com/watch?v=yGJO5bydch4
- CarVac 6y agoI really enjoyed that game.
- rsiqueira 6y agoThere is an incredible short version of this fluid simulation effect (light and movement) here: https://www.dwitter.net/d/18112 https://www.dwitter.net/d/18112 (just 140 characters of javascript code)
- nextaccountic 6y agoThis has cool graphics but it doesn't seem to simulate fluid dynamics (which requires solving a differential equation).
- smonff 6y agoReally? That's really a shame you know. Solving the anxiety of suffering people is already not that bad.
- nix23 6y agoYou need to renew your let's encrypt certificate ;)
- nextaccountic 6y agoMaybe you commented in the wrong thread?
- mikhailfranco 6y agoMaybe you commented on the wrong planet?
- rsiqueira 6y agoIt's possible to solve differential equations in 140 characters of javascript, here are some (e.g. Lorenz Attractor dynamical system "chaos butterfly") that generates 3D cool graphics and really solves ordinary differential equations (ODEs): https://www.dwitter.net/h/lorenz/top https://www.dwitter.net/h/lorenz/top Here is one short code example using Euler's method where Y(n+1) = Yn + step_size * f(Xn,Yn,Zn) c.width|=X=Y=Z=6;for(i=3e3;i--;) X+=.1*(Y-X), Y+=.01*(X*(29-Z)-Y), Z+=.01*(X*Y-1.6*Z), x.fillRect(960+X*30,Z*22,6,9)
- semi-extrinsic 6y agoThis is a good introduction to what is actually going on here: http://developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch38.html http://developer.download.nvidia.com/books/HTML/gpugems/gpug...
- vosper 6y agoIs it only a few tweaks and controls short of being a handy basic 2D fluid-dynamics simulator? I've used this [0] but the UI for barriers is really frustrating. It would be nice if there was something web-based that falls between the extremely basic and things like SimScale [0] https://physics.weber.edu/schroeder/fluids/ https://physics.weber.edu/schroeder/fluids/
- deleted 6y ago[deleted]
- anoncow 6y agoCan there be a 3D equivalent?
- VRay 6y agoshould be possible.. I got something similar working in 3d a few years ago, and I'm just a mild-mannered code monkey who almost flunked out of the relevant courses on computational differential equations in college. Mine was sloppy cpu-based C# code and not this butter-smooth webGL, but mathematically it's "relatively straightforward" so long as you aren't doing anything too tricky with the boundaries
- anoncow 6y agoA simulation of 3D space that I came across is what piqued my interest. https://youtu.be/xdZNwlzaUxI https://youtu.be/xdZNwlzaUxI
- slavik81 6y agoMathematically, the extension to 3D is trivial. Computationally, the difference is enormous. You're moving from O(n²) cells required to fill a space to O(n³). Rendering also becomes significantly more complex, as you wouldn't be able to see anything interesting if it remained fully opaque.
- doctorhandshake 6y agoVincent Houzé is an artist who works with 3D fluid sims quite a bit. These run in real-time and are interactive. He’s a wizard. https://www.instagram.com/p/B8Z2ZUYndxL/?igshid=15jc8xisc1714 https://www.instagram.com/p/B8Z2ZUYndxL/?igshid=15jc8xisc171...
- gdubs 6y agoYes. Typically these types of GPU based fluid solvers use texture maps to store velocity and pressure information. (See NVIDIA’s GPU Gems paper on fluids.) Most GPUs support 3D texture maps, and changing something like this to support 3D should be fairly trivial. From what I remember, the calculations for each dimension are identical.
- luckybusted 6y agoObligatory [REPOST] flag. I see this page here for the fourth time.
- nullandvoid 6y agoSpent a little too long playing with all the settings there. Very cool and buttery smooth.
- timvisee 6y agoEven on mobile.
- yreg 6y agoSo satisfying on a tablet…
- hashmush 6y agoI didn't realize you could click it before this comment, thanks for that.
- params 6y agoMy kids play with this casually now and then (both <4yrs). My 3yo practice reading the instructions which is a intuitive way for us to explore letters/text (mainly "time" and "pixelate" but in Swedish). They love stopping time, enabling pixelate and draw their names. Really love the android app, I even unlocked all the settings :)
- chakintosh 6y agoIt's crazy how this has 0 impact on my rig's temps. Cranked it up to the highest settings and the temps barely moved 1C.
- psyc 6y agoI came to say it’s crazy how lightning fast this is on an iPhone. Impressive.
- dirtnugget 6y agoThis is crazy efficient, my iPhone 7 was just fine at highest settings.
- forgotmypw17 6y agoI wanted to play with it, but that apps popup... Those things are so rude. I just close on principle anything which has one. Newsletters, too.
- tambourine_man 6y agoCompletely smooth on 4yo iPhone SE 1st gen. Nicely done.
- bookofjoe 6y agohttps://youtu.be/6c1BThu95d8 https://youtu.be/6c1BThu95d8
- 6gvONxR4sf7o 6y agoI’m amazed it even works perfectly with multitouch on my phone. Impressive.
- jdonaldson 6y agoIt's interesting to note that the original implementation for this was in Haxe, 6 years ago! https://news.ycombinator.com/item?id=8325700 https://news.ycombinator.com/item?id=8325700
- freehunter 6y agoPhysics simulators like this is something I find really fun to play with, but there’s one thing I’ve been searching for but can’t find any: fluid and erosion simulation. I’ve been playing Cities: Skylines since it came out and I love the fluid simulation in the rivers and mountains and dams, but I would love to see the course of the river change over the years. I’d love to see the rivers carving paths out of the mountains, and have floods/tsunamis change the shape of the coast. I doubt they’re going to add that to Cities: Skylines any time soon, but does anyone know of any toy/game like that? Interactive fluid and erosion simulators?
- forgotpwd16 6y agoA similar project I found some time ago: https://apps.amandaghassaei.com/FluidSimulation/ https://apps.amandaghassaei.com/FluidSimulation/