Live data from Hacker News

WebGL Fluid Simulation

paveldogreat.github.io

31–40 of 106 posts

Re: WebGL Fluid Simulation

#34

WOW! Not only is it FAST, it does multi-touch too! Successfully did 4 fingers already, although saw it somewhat slow down but not much. On a beefy system this could probably handle the full 10 point touch no problem! I am doing this on a desktop (Arch + Gnome 3) with an Acer touch display. Well done!

Woah, you're right. I just tried it on my Pixelbook screen (keep forgetting it's touch screen), and it handling as many fingers as I could give it (all 10) with no lag.

I'm guessing the number of inputs doesn't really influence simulation speed since the shader runs each frame for each pixel anyway. When touching the screen, some pixels are changed to hot/colored, but that doesn't really change the amount of computation needed to simulate the whole screen.

Re: WebGL Fluid Simulation

#36
post #2

I tried this on my mobile phone, expecting it to not work properly, but everything was super-smooth. Impressive.

I know right. So then I tried multi touch on my iPhone. Five fingers smooth as can be..

Re: WebGL Fluid Simulation

#37

WOW! Not only is it FAST, it does multi-touch too! Successfully did 4 fingers already, although saw it somewhat slow down but not much. On a beefy system this could probably handle the full 10 point touch no problem! I am doing this on a desktop (Arch + Gnome 3) with an Acer touch display. Well done!

10 fingers on ipad pro, no slow down.

Re: WebGL Fluid Simulation

#38

WOW! Not only is it FAST, it does multi-touch too! Successfully did 4 fingers already, although saw it somewhat slow down but not much. On a beefy system this could probably handle the full 10 point touch no problem! I am doing this on a desktop (Arch + Gnome 3) with an Acer touch display. Well done!

I'd be a little surprised if multittouch affected performance significantly. It's probably simulating and rendering every cell every frame regardless. I couldn't notice a slowdown on my phone with five fingers.

Re: WebGL Fluid Simulation

#40
post #2

I tried this on my mobile phone, expecting it to not work properly, but everything was super-smooth. Impressive.

You can crank up both resolutions to maximum on a recent mobile device and expect 60 FPS. That plus all 10 fingers on an iPad looks pretty cool.
Post reply on HN