Skip to content

About

Image generator project based on tiles with borders rules

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wave Function Collpase

This is an image generator based on input tiles that have certain border rules. Build in C++ with SDL library, runs on all platforms with attached makefile. You can read more about it here: Wikipedia page

And visit GitHub repo about it: WFC github page

Result demo with backtracking

GIF presented below is a result of final version of the project with implemented backtracking for 14 tiles in 40x40 grid.

First working result - no backtracking

Used tiles:
Tile0 Tile1 Tile2
After loading tiles with boundaries, algorithm computes all possible rotations. Example result for 5x5 grid:

Second example - no backtracking

Used tiles:
Tile0 Tile1 Tile2 Tile3 Tile4 Tile5 Tile6 Tile7 Tile8 Tile9 Tile10 Tile11 Tile12 Tile13
After loading tiles with boundaries, algorithm computes all possible rotations. Example result for 10x10 grid:

Third example - with implemented backtracking

Backtracking done recursivly by solve function
Used tiles:
Tile0 Tile1 Tile2 Tile3 Tile4 Tile5 Tile6 Tile7 Tile8 Tile9 Tile10 Tile11 Tile12 Tile13
After loading tiles with boundaries, algorithm computes all possible rotations. Example result for 40x40 grid:

About

Image generator project based on tiles with borders rules

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages