Silenteddie [Lexaloffle Blog Feed] wfcroads wave function collapse demo <p> <table><tr><td> <a href="/bbs/?pid=141270#p"> <img src="/bbs/thumbs/pico8_wfcroads-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=141270#p"> wfcroads wave function collapse demo</a><br><br> by <a href="/bbs/?uid=86506"> Silenteddie</a> <br><br><br> <a href="/bbs/?pid=141270#p"> [Click to Play]</a> </td></tr></table> </p> <p>A test with wave function collapse with road tiles.<br /> tried a different approach than backtracking, to ensure no contradictions:<br /> after every collapse, the options of the neighbouring tiles are checked for updates. If they are updated then their neigbours are checked as well. (If the tile set is very &quot;interconnected&quot;, this does not trigger wave through the entire board.) If there are no more cells to check and non reported it would have zero options, a commit of the collapse and updates is done. If not, a rollback is done and the chosen tile is removed from the options of the cell.</p> Wed, 07 Feb 2024 22:24:09 UTC