Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rh12503
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
1.
▲
by
rh12503
5y ago
I've added a few examples of polygonal output to the README here [0]. Many people commented on my initial post on how Triangula could be used for LQIPs. I've created a library called tip [1] for this purpose, which is currently no
2.
▲
Show HN: Triangula can now create polygonal art from images
(github.com)
1 points
by
rh12503
5y ago
|
1 comments
3.
▲
by
rh12503
5y ago
Actually, the initialization is completely random. The reason why it might seem too optimal is because the algorithm chooses the colors most similar to the image when rendering the triangles.
4.
▲
by
rh12503
5y ago
Cool! I'm guessing you use an edge detection algorithm like https://github.com/esimov/triangle ?
5.
▲
by
rh12503
5y ago
This is amazing! Is there any way to download this in a 3D file format?
6.
▲
by
rh12503
5y ago
For low-poly art, I wonder if there could be a way to only triangulate a specific area. (eg. only the pet and not the background) Also, if you need something less aliased, check out Triangle [1], a similar and awesome tool! [1] https:/
7.
▲
by
rh12503
5y ago
That sounds super cool! I'd be interested in seeing a picture if you end up doing it. Let me know if you need any help with the API!
8.
▲
by
rh12503
5y ago
I originally intended this to be a generative art side project, but there's been a magnitude of great ideas commented here! The graph idea could work, but the algorithm produces slightly different results each time it is ran. It still
9.
▲
by
rh12503
5y ago
Not particularly, but Go is fast, compiles to small binaries, and supports multithreading with coroutines which works well for genetic algorithms.
10.
▲
by
rh12503
5y ago
Triangula uses a modified genetic algorithm which I wrote about on the wiki here [1]. The reason I didn't use simulated annealing is because I ran some tests and found it was generally less effective for my case. [1] https://
11.
▲
by
rh12503
5y ago
I found Wails very simple to use, and would highly recommend it to anyone looking for a lightweight GUI library. However, Wails v1 uses mshtml (basically ie11) on Windows, so some features are unavailable. Wails uses Webpack so you need npm
12.
▲
by
rh12503
5y ago
Blurring is a good idea! It could work with placeholder images, but it'll probably be better with smaller ones (eg. profile pictures).
13.
▲
by
rh12503
5y ago
Thanks! The algorithm works iteratively, so essentially each iteration it makes small changes and then checks if these changes are optimal. (There are many more details described on the wiki [1]) The frames of the glasses were preserved bec
14.
▲
by
rh12503
5y ago
That's an interesting idea! I suppose it could be used for compression, although my intentions were for this to be a generative art project. I triangulated a 1988×1491 jpg using 10,000 points and managed to reduce the size to 20% of th
15.
▲
by
rh12503
5y ago
I was just thinking about adding another wiki page for that, but I'll give a brief explanation here: Firstly, a triangulation is made from the points and colors are chosen for each triangle. Then, the variance between the triangles and
16.
▲
by
rh12503
5y ago
Thanks! One main difference from Primitive is that Primitive's shapes can overlap, while Triangula generates a triangulation.
17.
▲
by
rh12503
5y ago
I'm a bit unsure of what you mean, but the genetic algorithm is used to find an optimal set of points, and then a Delaunay triangulation is created from those points.
18.
▲
by
rh12503
5y ago
Wails v1 (which this project uses) uses Webview for rendering it's frontend. You can read more about how Wails works here: https://wails.app/about/concepts/ Also because I'm pretty sure you're goin
19.
▲
Show HN: I built a tool to generate triangulated art from images
(github.com)
296 points
by
rh12503
5y ago
|
69 comments
20.
▲
Triangula: An iterative algorithm to generate high quality triangulated images
(github.com)
1 points
by
rh12503
5y ago
|
0 comments