mxgmn / WaveFunctionCollapse

Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics
Other
23.25k stars 1.24k forks source link

Adding LelsersLasers' JavaScript web demo port to README #83

Closed LelsersLasers closed 1 year ago

mxgmn commented 1 year ago

Hi! The UI is great, but the implementation seems buggy. Here is what happens when I give it Flowers.png: bug

LelsersLasers commented 1 year ago

Thanks for the feedback. As far as I know, (I think) it is actually working, just slowly. I think it will look more like expected after a short while (once all the propagation finishes for a randomly collapsed position). It is possible to see how many positions still need to be updated before the output is "stable" (only possible overlaps remain). The weird "L" shaped patterns are a result of the order that neighboring positions are checked (and usually go away once it is "stable") (order is especially weird if ceiling, floor, or sides is non-zero).

mxgmn commented 1 year ago

I suspect that it is both slow and buggy. Even given simple samples like Fabric.png and SimpleMaze.png, it doesn't generate anything for several minutes.