WaveFunctionCollapse
WaveFunctionCollapse is an open-source program that generates bitmaps and tilemaps from a single example, utilizing ideas from quantum mechanics. The program achieves local similarity between the input and output bitmaps, meaning the output contains only patterns of pixels present in the input, and the distribution of these patterns is similar to the input. The program initializes the output bitmap in a completely unobserved state, where each pixel value is in a superposition of colors from the input bitmap. It then observes the pixels one by one, collapsing the superposition into a single color. This process is inspired by quantum mechanics, but it does not perform actual quantum computations. The program is written in C# and has various features, including support for non-periodic inputs, infinite WFC, and tilepath links. It also includes examples and a README file with instructions on how to use the program. The WaveFunctionCollapse program has a wide range of applications, including procedural generation, game development, and data analysis. The program's ability to generate locally similar bitmaps makes it a useful tool for creating realistic and diverse outputs. The program's code is well-structured and easy to follow, making it a great resource for developers and researchers. The WaveFunctionCollapse program is a unique and innovative tool that combines ideas from quantum mechanics and computer science to generate interesting and useful outputs. The program's features and applications make it a valuable resource for anyone interested in procedural generation, game development, or data analysis. The program's code and examples are well-documented, making it easy to understand and use. Overall, the WaveFunctionCollapse program is a powerful and versatile tool that has a wide range of applications and uses.
- Category
- Code
- Pricing
- Open Source
Problem solved
The problem that WaveFunctionCollapse solves is the generation of bitmaps and tilemaps that are locally similar to a given input. This is a challenging problem because it requires the program to analyze the input and generate an output that contains only patterns of pixels present in the input, while also maintaining a similar distribution of these patterns. The program solves this problem by utilizing ideas from quantum mechanics, such as superposition and observation, to generate the output bitmap. This approach allows the program to create realistic and diverse outputs that are similar to the input, making it a useful tool for procedural generation, game development, and data analysis.
Use cases
- Procedural generation
- Game development
- Data analysis
- Tilemap generation
- Bitmap generation
Audience
- Developers
- Data Scientists
- Researchers
Pros
- Generates locally similar bitmaps
- Utilizes ideas from quantum mechanics
- Supports non-periodic inputs
- Infinite WFC
- Tilepath links
Cons
- Limited to generating bitmaps and tilemaps
- Does not perform actual quantum computations
- May require significant computational resources
Official website: https://github.com/mxgmn/WaveFunctionCollapse
Canonical LambdaBase page: https://www.lambdabase.com/tools/wavefunctioncollapse