Re:Infinite procedurally-generated city with the Wave Functi...
by marian42 on Tuesday November 13, 2018 @06:40PM
(#18445943)
In the algorithm as it's described on that page, nothing is returned in case of a failure. I first implemented it so that single blocks would fail and a white cube would spawn at that position. Now, it uses backtracking. It keeps a history of its decisions and removes some whenever it reaches a contradiction.
[ Parent
| on HN ]
There are no comments on this comment yet.