-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Hi,
I'm trying to implement a way to give the algorithm a pre-defined output image containing fixed (already put in place) tiles (in overlap mode).
I do not understand the code very well but I have some ideas.
So on this line the output image is created:
WaveFunctionCollapse/OverlappingModel.cs
Line 116 in a6f79f0
bitmap[x + y * MX] = colors[patterns[observed[x - dx + (y - dy) * MX]][dx + dy * N]]; |
Is it possible to fill the
observed
array with our pre-defined image (before running the algorithm)?What does the array
observed
do?Another option would be to put it in inside the
init
or observer
function.
EDIT:
My use-case is specifying an output image where the border is filled with "water" so that you can guarantee that the algorithm always generates "islands". Same goes with "rooms".
Zireael07
Metadata
Metadata
Assignees
Labels
No labels