Hacker News new | ask | show | jobs
by fenomas 1889 days ago
Neat! Reminds me that I once made something similar, except in 3D.

https://andyhall.github.io/glsl-projectron/viewer-vermeer.ht...

(open the link and then click/drag the image)

2 comments

This is really cool! I'd be interested in seeing what it looks like to fully drag the image 180 degrees (but can't because the camera resets as soon as the mouseup event fires). Would you accept a small PR to the demo page which does this via a control button instead of on mouseup?
Thanks! Actually I just pushed a fix to make the drag work outside the canvas. No idea why it wasn't that way to begin with.

The really cool thing someone suggested back in the day was, to have it try to match two different images from two different angles. But I never quite found the time to tackle that ;D

This is amazing! Is there any way to download this in a 3D file format?
Thanks! The answer is: sort of, but not really. The maker page[1] has an "export data" button that writes out the vertex data (as a big series of RGB/XYZ values), which you could easily convert to whatever format.

But if you rendered the data somewhere else, you wouldn't get the right effect unless you replicated the perspective/FOV that I used (which are completely ad-hoc because I had no idea what I was doing).

So currently there's no super-easy way to take the data somewhere else and do something useful with it.

[1] https://andyhall.github.io/glsl-projectron/index.html