This program generates bitmaps that are locally similar to the input bitmap. WFC initializes output bitmap in a completely unobserved state, where each pixel value is in superposition of colors of the input bitmap (so if the input was black & white then the unobserved states are shown in different shades of grey). The coefficients in these superpositions are real numbers, not complex numbers, so it doesn't do the actual quantum mechanics, but it was inspired by QM. Then the program goes into the observation-propagation cycle. It may happen that during propagation all the coefficients for a certain pixel become zero. That means that the algorithm has run into a contradiction and can not continue. The problem of determining whether a certain bitmap allows other nontrivial bitmaps satisfying condition (C1) is NP-hard, so it's impossible to create a fast solution that always finishes. In practice, however, the algorithm runs into contradictions surprisingly rarely.

Features

  • Create an array with the dimensions of the output
  • Tilemap generation
  • Documentation available
  • Higher dimensions
  • Constrained synthesis
  • WFC is a console application that depends only on the standard library

Project Samples

Project Activity

See All Activity >

Categories

Machine Learning

License

MIT License

Follow WaveFunctionCollapse

WaveFunctionCollapse Web Site

Other Useful Business Software
Managed Cybersecurity Platform Built for MSPs Icon
Managed Cybersecurity Platform Built for MSPs

Discover the cyber platform that secures and insures SMEs

In a world that lives and breathes all things digital, every business is at risk. Cybersecurity has become a major problem for small and growing businesses due to limited budgets, resources, time, and training. Hackers are leveraging these vulnerabilities, and most of the existing cybersecurity solutions on the market are too cumbersome, too complicated, and far too costly.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of WaveFunctionCollapse!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C++

Related Categories

C++ Machine Learning Software

Registered

2024-07-30