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 Water

369 pointsby ag8over 3 years ago

26 comments

mythzover 3 years ago
So the cool thing about this demo was that I remember when it was first submitted many years ago and thought it a cool demo that demonstrated the viability of WebGL which I expected to take off a lot quicker than it has.<p>But I also recently came across madebyevan.com again by accident after researching the backing of different npm projects to assess which ones had good momentum or commercial backing behind them to assess their long-term viability, and noticed a lot of npm projects (~2M weekly) relying on esbuild [1] as a fundamental part of their build system due to its amazing performance [1].<p>All good except that the foundational part of many npm projects feature is mostly being maintained by a single developer [2], a @evanw who was also prolific in responding to esbuild&#x27;s issue catering for different peoples issues &amp; feature requests. I didn&#x27;t think this level of investment in a popular OSS project was sustainable and hoped they had good sponsorship behind them, but was surprised that @evanw [3] didn&#x27;t have sponsorships enabled which I thought strange as most authors of popular npm projects have good sponsorship, but upon further research it&#x27;s because Evan Wallace&#x27;s day job is as the CTO and cofounder of Figma - a popular company with ~10B valuation.<p>Which is great in that esbuild isn&#x27;t at risk of being sporadically abandoned from its lead developer joining a new&#x2F;demanding startup, on the other hand a foundational project in npm&#x27;s ecosystem is being developed in the spare time of a Co-founder &amp; CTO of a ~10B Co - who also creates great demos :)<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;evanw&#x2F;esbuild" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;evanw&#x2F;esbuild</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;evanw&#x2F;esbuild&#x2F;graphs&#x2F;contributors" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;evanw&#x2F;esbuild&#x2F;graphs&#x2F;contributors</a><p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;evanw" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;evanw</a>
评论 #29380784 未加载
评论 #29379752 未加载
zurnover 3 years ago
I just went through comments from all the times this has been reposted in the past 10 years, and this is (so far) the first time there aren&#x27;t any complaints about not working in their browser! I&#x27;m counting just the submissions that got &gt;10 comments.<p>The previous time, from 2017[1], was already quite good - there was only a single complaint, and that was about someone missing a WebGL extension this needs for floating point textures.<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14432809" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14432809</a>
评论 #29378432 未加载
评论 #29378254 未加载
评论 #29378328 未加载
评论 #29378267 未加载
评论 #29378753 未加载
评论 #29378260 未加载
firloopover 3 years ago
(2011)<p>Previous threads:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7264103" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7264103</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=2884141" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=2884141</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8867979" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8867979</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14432809" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14432809</a>
jallirsover 3 years ago
This works on my iPhone in chrome. I really like that. I am aware of the fact that it’s old. The fact that it still works in chrome on my phone makes it more awesome. I’m sure it’s probably elegant and awesome under the hood to make that work.<p>Going to take this positive feeling, eat and ice cream bar, rub my tummy, watch some Babylon 5 and go to sleep with all of these happy feels. :)
评论 #29376971 未加载
steve_adams_86over 3 years ago
The first time I saw this I was in awe of how far we’ve come, realizing the first 3d rendering I ever did took several seconds and was accomplished within DOS. Now we have things like this in the browser running in real time.<p>Since then I’ve had my mind blown several more times, but this demo has a special place in my mind. I was so excited at the prospect of WebGL.
评论 #29377092 未加载
评论 #29381386 未加载
Snetryover 3 years ago
I remember looking at this a decade ago with an old Sony Xperia phone and just being amazed at the possibilities of the web.<p>10 years later it still looks as good as I remember
评论 #29377663 未加载
评论 #29378395 未加载
mklover 3 years ago
I&#x27;m disappointed &quot;toggling gravity&quot; doesn&#x27;t actually toggle gravity, just changes the density of the ball.<p>Edit: Looks like I&#x27;m wrong about the density. When you load the page the &quot;gravity&quot; <i>of the ball</i> is actually off (but it&#x27;s at the bottom, so it looks like it&#x27;s on and dense), and pressing G lets it float up.<p>It&#x27;s not turning off gravity though. If there was no gravity, the water wouldn&#x27;t pool at the bottom, so I was hoping to see blobs of water floating around.
评论 #29378671 未加载
评论 #29378659 未加载
jmrmover 3 years ago
&quot;This demo requires a decent graphics&quot;<p>Even being from 2011, the fact that works right on a 2017 low end phone with low battery, is totally mind blowing
sillysaurusxover 3 years ago
It&#x27;s interesting to think of the reasons we don&#x27;t have browser-based 3D renderers. Sure, WebGL exists. But it seems like the promise fizzled out, and I&#x27;m not quite sure why.<p>Maybe it&#x27;s as simple as &quot;Steam is the money pipeline, and everyone makes native games on Steam.&quot;
评论 #29377078 未加载
评论 #29377345 未加载
评论 #29378238 未加载
评论 #29377239 未加载
评论 #29377100 未加载
评论 #29378142 未加载
评论 #29377081 未加载
评论 #29377195 未加载
评论 #29378577 未加载
f00zzover 3 years ago
At first I thought it was just doing bump mapping on the water surface (with some hack for the caustics)... then I dragged the sphere. Pretty impressive.
waynecochranover 3 years ago
This is very cool and very old.
abduscoover 3 years ago
I know it&#x27;s not meant to be 100% perfect simulation of water, but the lack of air bubbles, or the waves not growing in amplitude when I smash the sphere in the water makes it feel really dense and off.
aasasdover 3 years ago
Kinda funny that if I move the ball out of the water slowly, it generates a lot of waves, but if I shoot it in the water or out, it&#x27;s just a small wave. A few times I was able to yank the ball in or out with no trace at all—though that can perhaps be chalked up to the cursor moving too fast to register the intermediate positions.
评论 #29378026 未加载
bruce343434over 3 years ago
Very impressive, even more so at its time. I still don&#x27;t know how it was done.
slmjkdbtlover 3 years ago
So a lot of these are powered by the performance of GPU, is there any water implementation that&#x27;s suitable to run on a CPU (doesn&#x27;t have to realistic as long as it conveys the message)?
astlouis44over 3 years ago
This demo is more recent, and FAR more impressive in my humble opinion:<p><a href="https:&#x2F;&#x2F;doom-portal-in-webgl.vercel.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;doom-portal-in-webgl.vercel.app&#x2F;</a>
评论 #29377214 未加载
评论 #29378054 未加载
评论 #29377996 未加载
评论 #29377101 未加载
评论 #29377661 未加载
评论 #29379877 未加载
bravetravelerover 3 years ago
Fun trick: pause it with spacebar, then click&#x2F;wiggle over an area until there&#x27;s a sky-high wave<p>Then unpause, watch the ripples
marcodiegoover 3 years ago
&gt; This demo requires a decent graphics card and up-to-date drivers.<p>This maybe old. Runs perfectly on my 2013 dell laptop.
XCSmeover 3 years ago
Doesn&#x27;t work in Brave on Android (S10):<p>Uncaught Error: This demo requires the OES_texture_float extension
thanatos519over 3 years ago
This is still my go-to demo for making sure my WebGL is working properly.
ChrisMarshallNYover 3 years ago
That’s awesome!<p>I’m running it on an older iPad Mini (Safari, on the latest OS), and it works fine.
sush1612over 3 years ago
this was my college 3rd year project in C back in 2004
noah670over 3 years ago
This was impressive a decade ago
ashfromstralyaover 3 years ago
friggen beautiful !
ashfromstralyaover 3 years ago
Mate, this is beautifal !
adamnemecekover 3 years ago
Idk why this got so much attention.
评论 #29377217 未加载