TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WebGL Fluid Experiment (2014)

200 pointsby maxrazalmost 5 years ago

21 comments

haxiomicalmost 5 years ago
Hey, I feel bad for not updating this demo in 6 years! Back then it wouldn&#x27;t run on iOS, today it could run with no trouble<p>For people on iOS, here&#x27;s another version with rainbow colors and multi-touch <a href="https:&#x2F;&#x2F;haxiomic.github.io&#x2F;demos&#x2F;rainbow-fluid&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;haxiomic.github.io&#x2F;demos&#x2F;rainbow-fluid&#x2F;index.html</a><p>If you like this sort of thing and want to learn more about it I recommend checking out <a href="https:&#x2F;&#x2F;www.shadertoy.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.shadertoy.com&#x2F;</a> for more demos and <a href="https:&#x2F;&#x2F;thebookofshaders.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thebookofshaders.com&#x2F;</a> for tutorials<p>And if GPU simulations is your thing then I think you&#x27;ll enjoy what these two amazing guys are doing with shaders:<p>- <a href="https:&#x2F;&#x2F;www.shadertoy.com&#x2F;user&#x2F;michael0884" rel="nofollow">https:&#x2F;&#x2F;www.shadertoy.com&#x2F;user&#x2F;michael0884</a><p>- <a href="https:&#x2F;&#x2F;www.shadertoy.com&#x2F;user&#x2F;wyatt" rel="nofollow">https:&#x2F;&#x2F;www.shadertoy.com&#x2F;user&#x2F;wyatt</a>
评论 #24063858 未加载
评论 #24065121 未加载
评论 #24067239 未加载
kipplealmost 5 years ago
At first I expected this to be some new version, but nope, it&#x27;s the original. I love that this repo[0] hasn&#x27;t been touched significantly in 6 years and it&#x27;s still going strong.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;haxiomic&#x2F;GPU-Fluid-Experiments" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;haxiomic&#x2F;GPU-Fluid-Experiments</a>
评论 #24061660 未加载
nemacolalmost 5 years ago
This is fantastic. Runs really smooth, the color and design looks wonderful. I could lose few afternoons playing with this thing.<p>Looking forward to the app. Would be fun to manipulate the sim by moving my iPad around.<p>Potentially fun ideas...<p>Allow me to place shapes&#x2F;blocks down and lock them in place to see how the fluid moves around them.<p>Let me put a small &#x27;pump&#x27; in the liquid to keep constant or pulsed movement. add a couple dials for pump speed, etc. I want to put two pumps facing one another and watch the interaction where they meet.<p>Different pool shapes - round, star, sphere?<p>Allow for particles to reach the edge of the pool to fall off and then let me drop new ones into flowing water.<p>Loads of fun. Thank you!
jchwalmost 5 years ago
There is also this one, and the corresponding iOS app (which I have.) It seems to run a bit faster on my phone.<p><a href="https:&#x2F;&#x2F;paveldogreat.github.io&#x2F;WebGL-Fluid-Simulation&#x2F;" rel="nofollow">https:&#x2F;&#x2F;paveldogreat.github.io&#x2F;WebGL-Fluid-Simulation&#x2F;</a>
评论 #24064175 未加载
madjam002almost 5 years ago
Nice, the effect reminds me of Powder Game (<a href="https:&#x2F;&#x2F;dan-ball.jp&#x2F;en&#x2F;javagame&#x2F;dust&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dan-ball.jp&#x2F;en&#x2F;javagame&#x2F;dust&#x2F;</a>)
评论 #24063353 未加载
评论 #24065247 未加载
blauditorealmost 5 years ago
Tangentially related: For a long time I&#x27;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&#x27;m not doing anything like that professionally, just want to play around with a virtual wind tunnel for the fun of it. I&#x27;m thinking of something like Blender where I would click together a 3d mesh, &quot;turn on&quot; wind and see what happens.<p>Does anyone have tips or hints? Are my expectations perhaps unrealistic? I looked into OpenFOAM before but always eventually gave up, as it seems quite heavy on headless, scripted simulation, and would need some significant run-up time.
评论 #24061903 未加载
评论 #24063291 未加载
评论 #24065374 未加载
utf_8xalmost 5 years ago
Damn, the performance on that is really impressive.
_ZeD_almost 5 years ago
It reminds me of <a href="http:&#x2F;&#x2F;minimal.be&#x2F;lab&#x2F;fluGL&#x2F;index80000.html" rel="nofollow">http:&#x2F;&#x2F;minimal.be&#x2F;lab&#x2F;fluGL&#x2F;index80000.html</a>
Razenganalmost 5 years ago
Would be even more fun if such things (including the Powder Game) were also affected by device orientation&#x2F;gyroscope&#x2F;accelerometers.
LoSboccaccalmost 5 years ago
all these simulators out there and still not one remake of plasma pong
评论 #24060694 未加载
评论 #24060514 未加载
dangalmost 5 years ago
Discussed at the time: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8502477" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8502477</a><p>also <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8325700" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8325700</a>
holodukealmost 5 years ago
just out of curiousity, but how does the algorithm roughly works. does every pixel&#x2F;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.
inetseealmost 5 years ago
The title seems to imply that it needs a touch screen device. It seems to work just fine on my desktop with a mouse.
octernionalmost 5 years ago
i&#x27;m constantly amazed at what can be done with webgl these day (shame about the iOS support). surprised we don&#x27;t see more immersive games with this tech!
codetrotteralmost 5 years ago
Doesn’t support iOS
评论 #24060331 未加载
评论 #24060274 未加载
imvetrialmost 5 years ago
ha ha ha, outer space is a simulated fluid.
评论 #24060764 未加载
designiumalmost 5 years ago
That&#x27;s very fun and relaxing!
monkeydustalmost 5 years ago
Therapeutic... I mean really.
peacefulhatalmost 5 years ago
iOS not supported. Ridiculous that iOS doesn’t support WebGL 2.0
评论 #24062616 未加载
Ataraxyalmost 5 years ago
Very satisfying effect.
suyashalmost 5 years ago
beautifully made!