Live data from Hacker News

WebGL Fluid Simulation

paveldogreat.github.io

61–70 of 106 posts

Re: WebGL Fluid Simulation

#61

Impressive demo! WebGL is an awesome piece of tech that only now starts to be largely adopted. I mean, it gives you access to 100s of cores to compute, run, display stuff :). Too bad Apple doesn't move forward with WebGL2 and Google splits the community in 2 with webgpu.

VRML, QuickTime, ActiveX and Flash did it first.

WebGL while impressive, still fails to keep up with what native 3D APIs are capable of.

Re: WebGL Fluid Simulation

#62
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

Wow, wasn't expecting your settings to be that much different. But love the slower feeling. thanks

Re: WebGL Fluid Simulation

#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

Re: WebGL Fluid Simulation

#66
post #2

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

Not on my older phone which lacks OpenGL ES 3.2, usually needed by these webgl fluid sims (they compute by rendering to a float texture).

A simpler one, and without fancy lighting, but with a code walkthrough/tute http://jamie-wong.com/2016/08/05/webgl-fluid-simulation/ ... also doesn't work on my phone. :(

Re: WebGL Fluid Simulation

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

Post reply on HN