News for hackers. Stuff that matters.
Re:Show HN: I built a tool to generate triangulated art from... by fenomas on Thursday April 22, 2021 @11:51AM (#26904150)
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)

Re:Show HN: I built a tool to generate triangulated art from... by hmsimha on Thursday April 22, 2021 @12:21PM (#26904561)
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?
Re:Show HN: I built a tool to generate triangulated art from... by fenomas on Thursday April 22, 2021 @12:49PM (#26904922)
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

Re:Show HN: I built a tool to generate triangulated art from... by rh12503 on Thursday April 22, 2021 @10:15PM (#26910341)
This is amazing! Is there any way to download this in a 3D file format?
Re:Show HN: I built a tool to generate triangulated art from... by fenomas on Friday April 23, 2021 @12:36AM (#26911033)
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