Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the meaning of "expand ... on the bottom and right" #23

Open
aschuhardt opened this issue May 10, 2022 · 1 comment
Open

What is the meaning of "expand ... on the bottom and right" #23

aschuhardt opened this issue May 10, 2022 · 1 comment

Comments

@aschuhardt
Copy link

It's not clear what this argument does, or what its use is. Can someone provide an explanation?

@krychu
Copy link
Owner

krychu commented Nov 9, 2022

Thanks, you're right the purpose is not clear. This setting wraps the input image horizontally and vertically - as if you placed copies of the input image on a grid. This effectively removes edges from the input image. There will be now tiles that allow right side of the image to connect with the left side of the image.

Imagine you have an input image with a tree on the left and empty space on the right. If you don't "expand", you will have at most one tree in the output image, because there are no tiles that connect empty space (the right edge side of the image) with the beginning of the tree (the left side of the image). So once you generate empty space in the output image there is no option to begin a tree. If you "expand", you can have more than one tree, because there are now tiles that connect empty space with the beginning of a tree.

It's a bit hard to explain but I hope this helps. I'll try to add an explanation to the docs, but need to think how to best explain it.

Are you using wfc in any project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants