You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I was about to implement my own wfc and found this, I have being playing with it and it's great!
I have a case of use where I need to create a map, but this map have fixed tiles in it, let's say that the tile in (0,0) must be type 1, (1,4) is type 2 and then the rest of tiles must be randomly generated using wfc
Does this crate cover that case? Can you point me in the right direction on how to do this?
Thanks
The text was updated successfully, but these errors were encountered:
I've figured out how to do it when the pattern size is 1x1, but I'm having a bit of trouble figuring out how to work it with larger pattern sizes.
Anyways, @Nazariglez you'll want to use the following impl:
use wfc::ForbidPattern;// TileConstrainer is a custom made struct, name it whatever you like and put whatever fields you need in it.implForbidPatternforTileConstrainer{fnforbid<W:Wrap,R: rand::Rng>(&mutself,fi:&mutForbidInterface<W>,rng:&mutR){let output_size:Size = fi.wave_size();// Use 'fi' for your purposes...}}
As I mentioned before though, I don't know how to work it with larger pattern sizes.
Hello! I was about to implement my own wfc and found this, I have being playing with it and it's great!
I have a case of use where I need to create a map, but this map have fixed tiles in it, let's say that the tile in (0,0) must be type 1, (1,4) is type 2 and then the rest of tiles must be randomly generated using wfc
Does this crate cover that case? Can you point me in the right direction on how to do this?
Thanks
The text was updated successfully, but these errors were encountered: