Hello, this is my implementation of WFC algorithm.
All is fitted in 1 node.
- Disable Generation Lock.
- Define meshes in mesh lib data.
- Press Generate Mesh Lib.
- Paint rules(tiles), how the tiles can connect.
- Press Generate Rules.
- Define Map Generation Settings.
- Press Generate Map.
exported vars Running, Time and Remaining cells shows is generator working.
if generation wails try stopping generation by unchecking running(only if conflict repair is active)
after that check error out
- value 0 is tile position
- value 1 are all possible tiles from each side that can be placed at that spot
- value 2 shows which arrays are being used for that cell
It shows last cell that had 0 possible outcomes Array elements: 0. Position of cell.
- List with all neighbours of cell and tiles that they allow in place of cell.
- List of arrays from neighbour cells that were used.