5 ms·
My favorite 2D liquid simulator is this IOCCC2012 submission [1]... simply astonishing. That is the source file shown at the beginning of the video... it compi
by 6502nerdface 4y ago
My favorite 2D liquid simulator is this IOCCC2012 submission [1]... simply astonishing.
That is the source file shown at the beginning of the video... it compiles without warnings, runs a full blown fluid dynamics sim with surface tension and everything, can take itself as its own input... truly a work of art.
[1] https://youtu.be/QMYfkOtYYlg https://youtu.be/QMYfkOtYYlg
- dekhn 4y agohttps://www.ioccc.org/2012/endoh1/hint.html https://www.ioccc.org/2012/endoh1/hint.html for those who want a direct link.
- lukko 4y agoOh, that is cool! I love that the code itself can be used in the sim - reminds me a bit of 'quines' from GEB: http://www.madore.org/~david/computers/quine.html http://www.madore.org/~david/computers/quine.html
- jrootabega 4y agoPerhaps there is material for a game sequel titled 'Baba is Goo'
- diceduckmonk 4y agoIt's got to be this one for me: https://madebyevan.com/webgl-water/ https://madebyevan.com/webgl-water/
- lukko 4y agoThat one is brilliant - I just realised you can change the light direction. Another classic: http://david.li/fluid/ http://david.li/fluid/
- notmysql_ 4y agothis is probably the best form of user interaction with simulated fluid I have seen
- deleted 4y ago[deleted]
- floodle 4y agoThis one looks like a shallow water simulation, rather than a fluid simulation in the sense of handling pressure etc. Rendering is gorgeous though!
- amluto 4y agoI think it’s way off. It looks surface waves propagate without dispersion — tap it and watch the caustics. Real water haves have the packet of waves and the individual peaks and valleys moving at dramatically different speeds.
- nextaccountic 4y agoI was going to reply this is at least 10 years old and it was already butter smooth the first time I interacted with it (with even older hardware, from when webgl was still a novelty and not widely supported across browsers) And indeed it's at least 11 years old according to this youtube video https://www.youtube.com/watch?v=R0O_9bp3EKQ https://www.youtube.com/watch?v=R0O_9bp3EKQ
- l33t233372 4y agoIt’s very impressive how well this works on mobile.
- isoprophlex 4y agoHoly hell that's cool. Thanks for sharing.
- suby 4y agoIf we're posting 2D fluid sims that we like, I've always loved this one -- http://haxiomic.github.io/GPU-Fluid-Experiments/html5/?q=UltraHigh http://haxiomic.github.io/GPU-Fluid-Experiments/html5/?q=Ult...