Re:Show HN: PolyGen App, turn gradients and photos into pret...
by nbartlomiej on Thursday January 29, 2015 @01:57PM
(#8968113)
For abstract patterns, points are chosen "randomly" (grid with randomised offsets). For photo-based ones, I'm using JSFeat's YAPE06 (http://inspirit.github.io/jsfeat/#features2dcorner), plus some own customisations. I'm constantly looking for ways to improve generating photo-based patterns; if anyone has some ideas here, I'd be happy to listen.
I've played with genetic algorithms, but without anything practical. Indeed, this might be more appropriate for desktops.
I've experimented with Voronoi too, but the results weren't as pretty. The cells were more rounded; and the low poly style was gone.
As far as I can tell, the user chooses the location of triangle vertices, right? It would be interesting to try a genetic algorithm there though it probably fits best in a desktop version.
Also, did you experiment with Voronoi diagrams instead of triangulation?