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

[Discussion] Possibility with Path Constraints #17

Open
CeciliaXZQ opened this issue Mar 14, 2024 · 1 comment
Open

[Discussion] Possibility with Path Constraints #17

CeciliaXZQ opened this issue Mar 14, 2024 · 1 comment

Comments

@CeciliaXZQ
Copy link

Hi,

Thanks for the amazing work, it really helps for me to understand WFC better. I'm just wondering if it's possible to have path constraints when we generate the map, so that there's always a path connection between 2 points on the map, to avoid only a bunch of disconnected rooms or areas? Thanks in advance!

Similar like: https://boristhebrave.github.io/DeBroglie/articles/path_constraints.html

@AlexeyBond
Copy link
Owner

Hi.

Currently, global constraints (including path constraints, which are subset of them) are not supported.

If you're intrested in implementing some yourself, there are some hints on where to start in my comments on #1. Feel free to ask further questions and share your experience.

Some use cases for global constraints are covered by preconditions (which generate initial constraints for cells before actual WFC starts). This, when applicable, may be more practical than global constraints, as global constraints would significantly reduce performance and make use of concuurency impossible (thus reducing performance even further).

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