awesome-repositories.comBlog
© 2026 Bringes Technology SRL·VAT RO45896025·hello@bringes.io
MCPBlogSitemapPrivacyTerms
WaveFunctionCollapse | Awesome Repository
← All repositories

mxgmn/WaveFunctionCollapse

0
View on GitHub↗
24,697 stars·1,319 forks·C#·other·0 views

WaveFunctionCollapse

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Let's find more awesome repositories

Features

  • Procedural Generation Engines - A procedural generation engine that creates complex patterns by iteratively resolving local adjacency rules across a grid until a consistent state emerges.
  • Constraint-Based Synthesis Engines - Solving complex spatial arrangement problems by ensuring every element placed in a grid satisfies specific adjacency requirements with its neighbors.
  • Procedural Content Generation - Creates complex, non-repeating game levels or textures automatically by following logical rules.
  • Procedural Level Generators - Generates diverse and coherent game environments that maintain structural integrity.
  • Probabilistic Solvers - A probabilistic algorithm that derives output structures from input examples by treating generation as a constraint satisfaction problem with local dependencies.
  • Entropy-Based Solvers - The algorithm selects the cell with the fewest remaining possibilities and forces a choice to trigger a cascade of logical updates.
  • Example-Based Synthesis - Creates complex visual patterns by iteratively collapsing grids based on adjacency constraints from input examples.
  • Tiling Systems - A grid-based layout tool that constructs coherent two-dimensional arrangements by matching edge constraints between a predefined set of modular tiles.
  • Constraint Propagation Engines - The system maintains a grid of possible states and iteratively prunes invalid options by propagating local adjacency rules across the entire field.
  • Tiled Pattern Generators - Constructs two-dimensional grid patterns by placing tiles according to local adjacency rules.
  • Texture Synthesis - Produces large, seamless, and visually consistent patterns by replicating local pixel relationships.
  • Backtracking Algorithms - The solver explores potential configurations by reverting to previous states whenever a local choice leads to a logical contradiction or dead end.
  • Constraint Satisfaction Solvers - Decomposes input data into local constraints that dictate valid side-by-side tile placements.
  • WaveFunctionCollapse is a procedural generation engine that creates complex, non-repeating patterns by treating spatial arrangement as a constraint satisfaction problem. It functions as a stochastic solver that derives output structures from a single input example, ensuring that every element placed within a grid satisfies specific adjacency requirements relative to its neighbors.

    The system distinguishes itself by using an entropy-driven approach to grid collapse, where it iteratively selects the cell with the fewest remaining possibilities to trigger a cascade of logical updates. By decomposing input data into local adjacency rules, the engine can synthesize coherent textures or construct structured game environments that maintain visual and logical consistency. When the algorithm encounters a contradiction, it employs a backtracking search mechanism to revert to previous states and explore alternative configurations.

    This tool supports both pixel-based texture synthesis and modular tile-based layout generation. It manages the state of the grid through continuous propagation of constraints, ensuring that all generated content adheres to the patterns observed in the source sample.