Live data from Hacker News

WebGL Fluid Experiment (2014)

haxiomic.github.io

31–40 of 55 posts

Re: WebGL Fluid Experiment (2014)

#35

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…

Associate professor in fluid dynamics here. There is typically a split between the people who want good looking simulations for movies/games, and those who need accurate results for engineering. For engineering, you need more effort on how you resolve the complex geometry and how you model the turbulence in the flow. This adds significant complexity both for problem setup and solution time. The only product I’m aware of that is built for real-time, 3D flow design is Ansys Discovery: https://www.ansys.com/products/3d-design/ansys-discovery

OpenFOAM is high quality, but as you’ve seen complex to use. There is a web-based GUI that can lighten the burden to get started somewhat: https://www.simscale.com/ I think they give you ~3000 simulation hours for a trial.

Re: WebGL Fluid Experiment (2014)

#36

Earlier quoted context omitted.

Given that the original commit is clearly a giant copy&pasta from somewhere else, not surprised there is little development or changes as time goes on

Oh, my bad, this the copy&pasta one https://paveldogreat.github.io/WebGL-Fluid-Simulation/

Trying to figure out what you are suggesting with the copy/paste stuff. I looked at the first few commits in both the PavelDoGreat repo and the haxiomic repo and see no obvious signs of copypaste. PavelDoGreat's initial commits start with initializing WebGL, seems reasonable. haxiomic's starts with a README and then a code drop, again, doesn't seem too unexpected. I also doubt one took from the other since one is Haxe and the other is JS.

Re: WebGL Fluid Experiment (2014)

#38

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!

Post reply on HN