HNHacker News
TopNewBestAskShowJobs

lbebber

788 karma · joined August 2, 2012

http://lbebber.github.io/
submissionscomments
lbebber··on Show HN: WebGL simulation of rainy autumn day/evening
It _is_ really weird, that didn't use to happen either. Started happening after some update of either Chrome or macOS, I'm not certain which.

In fact I think this is one of the most frustrating things of working with WebGL (or any of those slightly less common browser APIs, really), lots of small weird compatibility issues and instabilities.

lbebber··on Show HN: WebGL simulation of rainy autumn day/evening
Hi, I'm the author of the rain effect (not of the website itself though).

You can see the original effect here[1], along with an explanation here[2].

If you like it, you can see a few more effects and experiments on my portfolio here[3], although it's been a couple of years now since I've done anything of the sort (that I can post publicly, that is).

[1] https://tympanus.net/Development/RainEffect/

[2] https://tympanus.net/codrops/2015/11/04/rain-water-effect-ex...

[3] http://lbebber.github.io/

lbebber··on Show HN: WebGL simulation of rainy autumn day/evening
It has already been posted by jeffschofield, but the original is here[1], along with a brief article breaking down the effect[2].

The one you posted is in many ways nicer though due to it all being a single shader, however it has the downside of the drops not interacting with each other.

[1] https://tympanus.net/Development/RainEffect/

[2] https://tympanus.net/codrops/2015/11/04/rain-water-effect-ex...

lbebber··on Show HN: WebGL simulation of rainy autumn day/evening
There was an attempt of making the drops merge more naturally, but it was affecting the refraction effect, which I deemed was more important.

It should be solvable though, I just couldn't get the values right at the time.

(Also thanks!)

lbebber··on Show HN: WebGL simulation of rainy autumn day/evening
Hey, I'm the author--thanks for posting this here.

The page actually uses the exact same effect, so the article provides a decent breakdown of how it works, for those interested.

lbebber··on WHO says Covid-19 pandemic is 'one big wave', not seasonal
We've had -3ºC these weeks, which is about as cold as it gets here. It snows in some regions but it's a bit rare, once in a year in some places, once in a decade in others.
lbebber··on WHO says Covid-19 pandemic is 'one big wave', not seasonal
FWIW it is getting worse just now in the south of Brazil, where we have colder winters.
lbebber··on Things you can do with a browser in 2020
I like that push notifications on the browser exist (for e.g. Slack, WhatsApp), I just wish there were no popups for it--just an unintrusive button you could press to enable it.
lbebber··on History and Effective Use of Vim
Do try vscodevim, I made the switch and I haven't looked back. Best of both worlds for me.
lbebber··on History and Effective Use of Vim
I just wanna give my 2c in that after some years using vim I've started using vscodevim and I just love it. Perhaps it helps that it happens to match my vim config pretty closely (surround, easymotion, + language plugins and stuff such as ctrl p that is native to vscode).
lbebber··on France might be losing its first big information war
Simply pretty much everyone here uses WhatsApp, including people who have no other contact with the internet.
lbebber··on Source: Google Allo will be officially shut down soon
Here’s a lil trick: if you have to, you can access your Facebook messages on mbasic.facebook.com.

(And on to the point, Facebook has also, of course, WhatsApp, which is massive)

lbebber··on Making rain simulation as real as possible
I am credited for the "menu code" and "inspiration", though, hahah

But it doesn't matter, I posted the code for it to be used, I'm glad to see it in the wild.

lbebber··on Making rain simulation as real as possible
(author) Hey, I could help with that. I was beginning to work on a better version of it a while ago, but haven't gotten around finishing it.
lbebber··on Making rain simulation as real as possible
This got me started: https://webglfundamentals.org/

You've probably come across it though, as it does seem to gloss over some basic stuff. But it does cover the basics pretty well, just gotta keep an eye for details and seemingly unimportant one-liners that turn out to be fundamental.

It also takes some googling for deeper explanation of some functions, which often result on Stack Overflow answers by the author himself.

Dealing with the WebGL API itself is a bit... let's say tricky, though. But working with shaders for me is a joy.

This also seems promising, though I only skimmed over it: https://thebookofshaders.com/

And also, look into https://shadertoy.com/. Both for using the shaders there as example and as a playground.

lbebber··on Making rain simulation as real as possible
It's been a while since I made this, but it's a good suggestion! Rest assured that there was hardly any method to it though, mostly hair-pulling when things did not look quite good! (which is, for me at least, the biggest pain in working with this kind of thing)

But there are some neat tricks which, while not necessarily transferable themselves, might serve as inspiration for other problems.

lbebber··on Making rain simulation as real as possible
It actually did not have anything to do with being resource intensive or such, it had to do with looks—with the raindrops sharp I had to get the parameters of the refraction perfectly right, it seemed, for it to look convincing, otherwise it looked extremely artificial and kind of "flat".

By that point I had already spent more time on this than I'd have liked, and allowing for a little blur was an easier way for it to look good enough.

I haven't been doing any "public" work lately, but I'll post anything I make on my Twitter[1], especially if I ever get to finish this updated version.

https://twitter.com/lucasbebber

lbebber··on Making rain simulation as real as possible
This has not been done in the most optimal way—it could do with a lot less JS being used. A version with (mostly) WebGL could be much less resource hungry.

Try this version for comparison: https://codepen.io/stefanweck/pen/Vbgeax

lbebber··on Making rain simulation as real as possible
This is not a single shader, the animation is done with JS/canvas 2d, the shader does just the refraction.

I wrote an article about it here[1], but I made this back when I was first learning WebGL (it was my first WebGL project, in fact), so be aware that a lot of things could be better!

[1]https://tympanus.net/codrops/2015/11/04/rain-water-effect-ex...

lbebber··on Making rain simulation as real as possible
(Author here) Thanks! I was making a version with a better "impact" effect and better "trails", which are the weakest parts currently in my opinion, as well as making the larger raindrops sharper—they get a bit blurry right now. I haven't had the time/will to finish it though!
lbebber··on Making rain simulation as real as possible
This effect uses both WebGL and canvas 2d. I'd guess that for some reason the canvas 2d isn't using hardware acceleration on those browsers?

Somebody has made a version using WebGL alone[1] (sadly they got the refraction a bit wrong), try it to see if it works well enough (and let me know, I'm curious myself).

[1] https://codepen.io/stefanweck/pen/Vbgeax

lbebber··on Making rain simulation as real as possible
Hey, I made this for Codrops, like 2 or 3 years ago?

I mean, the rain effect itself, not the whole UI around it here.

Edit: Here's[1] the accompanying article, and here's[2] some other stuff I made (although my website is also just as old and hasn't been updated since!)

[1]http://tympanus.net/codrops/rain-water-effect-experiments/

[2]http://lbebber.github.io/

lbebber··on Ask HN: Anyone from Google here? The new Gmail UI is painful
I like it.
lbebber··on Words for “yes” in Romance languages
Interesting. In (Brazilian) Portuguese, "isso" and "isso aí" ("this", "this there") is used to confirm or agree with something, so it seems the expression survived the times.
lbebber··on Vim after 15 Years
Do you need to use it on insert mode as well? I set to use space as the leader key only on normal mode so there's no lag.
lbebber··on Tracking friends and strangers using WhatsApp
It depends where; in Brazil, for instance, WhatsApp groups are becoming the main social network for a large amount of people—nevermind 1:1 chat.
lbebber··on Sublime Text 3 now has font ligature support
Iosevka has many weights and is customizable though. Or you mean narrow?
lbebber··on App sizes are out of control
Or http://mbasic.facebook.com
lbebber··on China Is Engineering Genius Babies (2013)
It's as meaningful as it's thankless.
lbebber··on The capital sharp S in now part of the official German orthography
If it's your native language, or if you're at a good level of fluency, you don't have to "remember" it, it comes naturally.

I agree it's harder for students though.

← PreviousPage 2 of 5Next →