The Wayback Machine - https://web.archive.org/web/20201118072531/https://github.com/thebracket/rustrogueliketutorial/issues/82
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

Chapter 3.11 mention the model of WFC #82

Closed
toyboot4e opened this issue Jan 23, 2020 · 2 comments
Closed

Chapter 3.11 mention the model of WFC #82

toyboot4e opened this issue Jan 23, 2020 · 2 comments
Assignees

Comments

@toyboot4e
Copy link

@toyboot4e toyboot4e commented Jan 23, 2020

3.11 Wave Function Collapse

The official WFC repo has two models: SimpleTiledModel and OverlappingModel. And it looks like the former is implemented in the book. But today, "WFC" tends to refer to the latter model, so it might be a bit confusing to those who are new to WFC.

Then I suggest stating that there are two models, and that the OverlappingModel is not explained in the book. It may be helpful to readers who also want to read other resources about WFC (like me :)).

Note: the SimpleTiledModel forces that any adjacent chunks are compatible. While the OverlappingModel forces that any overlapping chunks are compatible.

Edit: Sorry, it was misleading. Actually, your WFC is not exactly a SimpleTiledModel. It may be more like a hybrid of the two models. You collect chunks from the source (not from xml), but you place them based on adjacency (not on local similarity). So there are two kind of constraints to fullfill the map, and you explained one of them. I guess that's worth mentioning!

@thebracket
Copy link
Owner

@thebracket thebracket commented Jan 25, 2020

I'll see if I can clarify. I ended up using adjacency because it is more likely to give a working map (similarity is great, but without an understanding of traversability you can get beautiful - but unreachable - maps). Thanks!

@toyboot4e
Copy link
Author

@toyboot4e toyboot4e commented Jan 26, 2020

Yes, and I like your credible implementation. It produces connected maps, and it works MUCH faster than the OverlappingModel. And the idea of using small chunks is very appealing.

@toyboot4e toyboot4e closed this Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.