Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

unity-wave-function-collapse

unity procedural level generation with the Wave Function Collapse algorithms · By selfsame

Preventing Overlap Model Artefact at Boundary Limits

A topic by Ru1pe created Jun 14, 2023 Views: 152 Replies: 3
Viewing posts 1 to 2
(2 edits)

Hello, I'm conducting some tests with the WFC (Wave Function Collapse) using the Overlap Model. I would like to know how to avoid situations like the one depicted in the image below, where part of the statue is divided at the boundary limits of the overlap generation area. Image

exemple

Developer

'periodicInput' set to false should avoid that!

Hello, thank you for the reply. I tried testing with the periodic input set to false, but it simply stopped providing any output. Am I configuring something wrong? I'm attaching images of the input and my overlapping model configuration.

input: https://drive.google.com/file/d/1CMasBnDJEwF5HaVvcZ0-RAZKJZiX3qM2/view?usp=shari...
Configuration: https://drive.google.com/file/d/1GUjZXMsCozAD250Jha9woaagHKtyqR5q/view?usp=shari...

And another question, if you don't mind. Why is it that sometimes when the generation is performed, I get a completely empty result, meaning no tiles at all, when I run the algorithm?

Developer

ah right, periodic input is for a tiling training sample, you want periodic output set false.


An empty result could mean that there was no solvable output, maybe from a difficult input where it couldn't eliminate options for even a single ngram