Skip to content

tanekere/simple_wfc_v2

Repository files navigation

Pipe Grid

Usage instruction provided in this README demonstration

CLICK HERE TO RUN This takes a few seconds to load after clicking. Please be patient.

Pipe grid is an implementation of the wave function collapse algorithm. This grid generated by this program are guarantied to always connect to ether each other-or the outside. No hanging pipes!

You can assign some of the elements manually using the floating window. The algorithm will adapt to the ones you put in and generate compatible pipes around it!

To do so, click on the tile (Question Mark) wou want to assign manually. The coordinates of your choice will be displayed in the floating window. Then pick one of the options from the drop-down menu. Make sure to choose an option displayed in the "possibilities" list, these are the only valid options and the program will not let you insert an invalid option. Finally click the "turn selected tile into:" button. This will turn the tile you selected into the option you selected. Then you can then click the "collapse random" button to witness the algorithm at work.

More advanced demonstration is available here

You can choose from the following tiles.
Blank:
Alt text
Horizontal line "Hline":
Alt text
Vertical line "Vline"
Alt text
L-Shape connected to the following directions:
Bottom and left "LBL":
Alt text
Bottom and right "LBR":
Alt text
Top and left "LTL":
Alt text
Top and right "VTR":
Alt text
This is the "none" block .It shows up when the fate of the block has not been decided yet. It can turn into any one of the the blocks in it's options list:
Alt text
A set of T - Shaped block, where the leg to the 'T' points towards the following directions:
Bottom "TBottom":
Alt text
Left "TLeft":
Alt text
Right "TRight":
Alt text
Top "TTop":
Alt text

Demonstation

more advanced demonstration:
complex demonstration

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages