Skip to content
Proyek

CodingTrain/Wave-Function-Collapse

Lihat di GitHub

Tentang

Straight out of quantum mechanics, Wave Function Collapse (WFC) is an algorithm for procedural generation of images. This repository features two approaches to the WFC: the Tiled Model (Coding Challenge 171) and the Overlapping Model (Coding Challenge #186). Both implementations are available in JavaScript (p5.js) and ported to Processing (Java).

Alat pengembangan

Cara angka ini diukur

Yang dapat Anda lakukan

  • Additional edge cases for tiles 4 and 5 (Tiled Model).
  • Computed Property Names (Tiled Model) Issue #35
  • Backtracking for conflict resolution.

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Wave-Function-Collapse

Straight out of quantum mechanics, Wave Function Collapse (WFC) is an algorithm for procedural generation of images. This repository features two approaches to the WFC: the Tiled Model (Coding Challenge 171) and the Overlapping Model (Coding Challenge #186). Both implementations are available in JavaScript (p5.js) and ported to Processing (Java).

GIF animation of the tiled WFC algorithm GIF animation of the overlapping WFC algorithm

Coding Challenges

Archived Raw Footage

Overview

Wave Function Collapse is a constraint-satisfaction algorithm inspired by quantum mechanics. At a high level, you have:

  1. Tiles (or “patterns”) that can appear in each cell.
  2. Adjacency rules describing which tiles can appear next to each other.
  3. Entropy that helps decide which cell to collapse (choose a tile for) next.
  4. Propagation to eliminate invalid tiles from neighbors as constraints tighten.

Completed

  • Implementation of Tile Model (Challenge 171)
  • Implementation of Overlapping Model (Challenge 186)
  • Processing (Java) ports for both models

Corrections / Additional Features

  • Additional edge cases for tiles 4 and 5 (Tiled Model).
  • Computed Property Names (Tiled Model) Issue #35
  • Backtracking for conflict resolution.

Community Contributions and Improvements

Key Resources

Jelajahi proyek terkait

Memuat…