Giter Site home page Giter Site logo

boyquotes / wave-function-collapse-godot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pragma-strict/wave-function-collapse-godot

0.0 0.0 0.0 1.84 MB

Testing out one of the coolest procedural generation algorithms ever!

License: MIT License

GDScript 100.00%

wave-function-collapse-godot's Introduction

Wave-Function-Collapse-Godot

Testing out one of the coolest procedural generation algorithms ever!

Screenshot

A quick summary of the wavefunction collapse algorithm.

Entropy is the number of possible options for a given cell. The output grid starts with maximum entropy (all options are available) and throughout the execution of the algorithm each cell is reduced to an entropy of 1 i.e. its type is chosen. This is accomplished by:

  1. Pick a location in the output grid to "collapse" (choose its state and reduce its entropy to 1)
  2. Propogate effects of the collapse throughout the rest of the grid. Since cells are constrained by the states of their neighbors, the entropy of some neighboring cells will also be reduced.
  3. Choose a cell with the lowest entropy as the next cell to collapse. It is possible for the algorithm to fail if two incompatible cell types are forced to be neighbors. Choosing cells with low entropy on this step helps to prevent this failure.

wave-function-collapse-godot's People

Contributors

pragma-strict avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.