Hacker News new | past | comments | ask | show | jobs | submit login

This is incredible. How the heck does the algorithm work so well? It manages to produce beautiful looking things no matter what I do



The consistently beautiful looks comes from Oskar having handcrafted more than a hundred different puzzle piece models that together cover all the possible geometries. The models are not modified by the WFC algorithm, the algorithm just picks the right piece for every position. (However, the pieces, which are created square, are linearly deformed (skewed and scaled) to fit in the mostly non-square grid cells).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: