Live data from Hacker News

Add Depth of Field to Screenshots

blurmatic.com

11–20 of 63 posts

Re: Add Depth of Field to Screenshots

#11

Looks interesting. In the beginning I thought it would blur the part of the screenshot farthest away from you and keep the closest thing in focus. But that's not how it works. I guess it could be useful for focusing on a particular part of the screenshot if you one could mark what the important part is.

Click on part of the image to focus it.

Re: Add Depth of Field to Screenshots

#12
Oh hey, I made this a couple of days ago!

I initially made this to experiment with 'faking' depth of field in CSS (check out my penultimate tweet for the demo vid and inspiration from shuding_, link at the bottom of the site).

But last night I remembered that ThreeJS exists, so rewrote it using react-three-fiber. This was my first time playing around with it and I'm super impressed, it's incredibly ergonomic.

Edit: not documented, but right-click drag to pan

Re: Add Depth of Field to Screenshots

#19

Oh, and zooming works, too!

Indeed. Panning as well.

You typed this just as I was posting my own response. Yes, it does work! I found out that using the right mouse button does the panning. Is there another method that you found?
Post reply on HN