Live data from Hacker News

WebGL Fluid Experiment (2014)

haxiomic.github.io

41–50 of 55 posts

Re: WebGL Fluid Experiment (2014)

#42

Nice, the effect reminds me of Powder Game ( https://dan-ball.jp/en/javagame/dust/ )

At least give me some warning before you link to it; I'm gonna be playing it all day today :)

Man there was some game similar to this called Sand Sand Sand, that I was totally addicted to. I showed my kid recently and he loved it too, timeless fun!

Re: WebGL Fluid Experiment (2014)

#43

Hey, I feel bad for not updating this demo in 6 years! Back then it wouldn't run on iOS, today it could run with no trouble 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.c…

FWIW the rainbow link gives this console error in Firefox on a Surface Book with Intel graphics: 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!

Ahh that's a shame, yeah looks like 16-bit float textures aren't supported but 32 bit are. Thanks for the heads up – I should really be checking if either are supported here!

Re: WebGL Fluid Experiment (2014)

#44
just out of curiousity, but how does the algorithm roughly works. does every pixel/particle position gets calculated? or is it optimized by smart grouping? is the GPU used for paralell computing? very interesting stuff to heavily optimize I guess.

Re: WebGL Fluid Experiment (2014)

#45

Hey, I feel bad for not updating this demo in 6 years! Back then it wouldn't run on iOS, today it could run with no trouble 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.c…

This is beautiful. Can you say how this is different from [0] if at all in terms of implementation?

[0] https://paveldogreat.github.io/WebGL-Fluid-Simulation/

Re: WebGL Fluid Experiment (2014)

#47
post #42

Earlier quoted context omitted.

At least give me some warning before you link to it; I'm gonna be playing it all day today :)

Man there was some game similar to this called Sand Sand Sand, that I was totally addicted to. I showed my kid recently and he loved it too, timeless fun!

There’s also the stand alone Powder Toy which has more powders and saves and such

https://powdertoy.co.uk/

Re: WebGL Fluid Experiment (2014)

#48

Tangentially related: For a long time I've always been looking for some software for particle simulations that is free or even open source, easy to get started, and at least somewhat visual. I'm not doing anything like that professionally, just want to play around with a virtual wind tunnel for the fun of it. I'm thinking of something like Blender where I would click together a 3d mesh, "turn on" wind and see what ha…

I've been trying to figure out where I should place a shelter belt on my property, as I've heard that the wind will rise up over the belt and then "dump" downwards. I don't want to position the belt so that the wind dumps on my house. I think it's essentially a fluid dynamics problem (I say this as decidedly not an engineer).

I've only looked half-heartedly, but found nothing that can help me.

Re: WebGL Fluid Experiment (2014)

#49
post #42

Earlier quoted context omitted.

Man there was some game similar to this called Sand Sand Sand, that I was totally addicted to. I showed my kid recently and he loved it too, timeless fun!

There’s also the stand alone Powder Toy which has more powders and saves and such https://powdertoy.co.uk/

And the modern web-based incarnation Sandspiel, which was extremely popular on HN a while ago: https://news.ycombinator.com/item?id=18696291

Re: WebGL Fluid Experiment (2014)

#50

Hey, I feel bad for not updating this demo in 6 years! Back then it wouldn't run on iOS, today it could run with no trouble 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.c…

This is beautiful. Can you say how this is different from [0] if at all in terms of implementation? [0] https://paveldogreat.github.io/WebGL-Fluid-Simulation/

Similar implementation from a physics perspective – Pavel uses the same technique for simulating Navier–Stokes (Jo Stam Real-Time Fluid Dynamics for Games [0]). Pavel's has an extra step to enhance vorticity which gives you those higher detail swirls and uses a slightly different approach for input

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...

Post reply on HN