3 ms·
Hi everyone, I finally got around to implement my version on the wave function collapse algorithm. WFC uses rules to define what tiles can be placed around each
by atum47 4y ago
Hi everyone, I finally got around to implement my version on the wave function collapse algorithm. WFC uses rules to define what tiles can be placed around each other. In order to achieve this rules, I wrote I simple tool that helped me to visualize every tile and all the tiles that can be placed around it (top, right, bottom and left sides).
My code is very simple, I haven't looked at the original WFC code at all, I just "learned" the concepts.
So, first I place a random tile at a random position, from that I grow the map chosing the neighbor with the lowest entropy (smallest number of possible tiles).
Hope you like it.
- mannykannot 4y agoMay I suggest that you add this comment, and perhaps also some of the links that have been given in these comments, to the readme? Apparently I am not the only person for whom 'wave function collapse' means we're talking about quantum mechanics.
- UncleOxidant 4y agoI'm going to guess that at least 80% of us were thinking quantum physics when we read "wave function collapse".
- atum47 4y agoDefinitely feeling the same, sorry about the confusion
- atum47 4y agoFor sure, I'll do that. Sorry about the confusion