Skip to content

Simple wave function collapse texture generator which creates larger textures from simple tiles and constraints

Notifications You must be signed in to change notification settings

vesas/simple-wfc

Repository files navigation

Simple WFC

Simple wave function collapse test project implemented in Java. Creates output texture from simple tiles based on constraints defined in code, rather than the usual image based input.

Implemented:

  • Rotations in 2d
  • Output texture tileability

TODO:

  • Backtracking
  • 3D
  • Symmetries
  • ...

Test output:

Circuits

Input tiles:

input 1 input 2 input 3 input 4 input 5 input 6 input 7 input 8

Output:

example image

Test:

Input tiles:

input 1 input 2 input 3 input 4 input 5 input 6 input 7 input 8 input 9 input 10 input 11 input 12

Output:

example image

Cross:

Input tiles:

input 1 input 2 input 3 input 4

Output:

example image

Some fun:

example image

Dependencies

Displaying is done using LibGDX

About

Simple wave function collapse texture generator which creates larger textures from simple tiles and constraints

Topics

Resources

Stars

Watchers

Forks