Live data from Hacker News

WebGL Fluid Simulation

paveldogreat.github.io

81–90 of 106 posts

Re: WebGL Fluid Simulation

#81

Does not seem to work on Firefox 66.0.5

It depends on google analytics and will break unless ga() is defined. Most adblockers spoof it for you, but if you're only blocking requests to trackers the javascript will fail. (eg pi-hole, uMatrix)

Re: WebGL Fluid Simulation

#82

Earlier quoted context omitted.

To be fair this shader was published in GPU Gems 15 years ago (2004). Back in the days of the GeForce 6 and Windows XP. Though the fact that it now fits in your pocket is cool.

That is actually amazing. I mean the fact about 2004.

Yes, we were such illiterate savages back then.

Re: WebGL Fluid Simulation

#84
post #63

Every so often you get an app that shows you just how fast modern hardware is when unencumbered by the usual endless layers of bloat and inefficiency.

Ironically OpenGL programming is also often slammed here for being overly verbose and complicated

As far as I understand it is criticized as having too much hidden state, for a simple (but impressive) application like this it would not be an issue.

Re: WebGL Fluid Simulation

#85

Re: everyone impressed by how fluid it is with multitouch: The number of touch points doesn't affect the performance of a grid simulation. Using 10 fingers just sets high values at more places in the initial grid. The effort to solve each time step is the same after that. The computational effort scales with the resolution, not the boundary conditions/input.

It could be in part because the default settings don't let you see the persistent levels of turbulence throughout the entire grid. Set the density to .996 and velocity to 1 and vorticity high and you'll see just how crazy it can get.

Re: WebGL Fluid Simulation

#86
post #56

Default settings don't really do it justice IMHO. Try these: Density diffusion: just a hair under 1(visually) velocity diffusion: 0.99 pressure: 0.93 vorticity: 5

I also tried high Density Diffusion - loved the slower movement and that made me think - only if there was a way to export that to a something like a moving wallpaper that I could set to my Ubuntu desktop. Also, just setting Density Diffusion to 1 and leaving makes the movement slow enough to be able to screenshot nice wallpapers.

Remember Microsoft's old "Active Desktop"?

It was like a webpage as a wall paper.

Maybe ahead of it's time as it crashed constantly...

Re: WebGL Fluid Simulation

#87
this keeps reappearing, but it never gets old

just a random recommendation: I love to connect this from a laptop to a TV screen, connect a wireless/long cable mouse, and play it with my cousins / little kids. it's a one time trick, but they always love it. (you can do the same with other programs / simulations, just enhancing the experience a little bit can do wonders)

Re: WebGL Fluid Simulation

#89
post #86

Earlier quoted context omitted.

I also tried high Density Diffusion - loved the slower movement and that made me think - only if there was a way to export that to a something like a moving wallpaper that I could set to my Ubuntu desktop. Also, just setting Density Diffusion to 1 and leaving makes the movement slow enough to be able to screenshot nice wallpapers.

Remember Microsoft's old "Active Desktop"? It was like a webpage as a wall paper. Maybe ahead of it's time as it crashed constantly...

I do. Coming from Win 3.1 and due to restrictions on internet connectivity in our office then, at first I had no idea how to use it and thought it was some advanced feature.

Re: WebGL Fluid Simulation

#90
post #86

Earlier quoted context omitted.

I also tried high Density Diffusion - loved the slower movement and that made me think - only if there was a way to export that to a something like a moving wallpaper that I could set to my Ubuntu desktop. Also, just setting Density Diffusion to 1 and leaving makes the movement slow enough to be able to screenshot nice wallpapers.

Remember Microsoft's old "Active Desktop"? It was like a webpage as a wall paper. Maybe ahead of it's time as it crashed constantly...

Yes and E̶l̶e̶c̶t̶r̶o̶n̶ apps that thankfully died, sorry packaged HTM apps.
Post reply on HN