Wave Function Collapse Algorithm - Overlapping Model Implementation in JavaScript
Coding Train via YouTube
Overview
Syllabus
Introduction
The Nature of Code book!
WFC Resources and References
Extracting tiles from a source image
Calculating adjacency rules for tiles
Checking for overlapping pixel colors
Debugging tile adjacencies
Creating a Cell class
Incorporate code from WFC tile model
Reduce entropy of neighboring tiles
Rendering the center pixel for each tile
Cross checking valid tile options
Recursive entropy reduction
Limit recursion depth
Challenge complete?
Bugs found between Day 1 and Day 2
Starting Day 2
Correcting pixel color if statement
Refactoring redundant code
Running out of tile options
Optimizing the code
Rendering average pixel color of remaining tile options
How to handle redundant tiles?
More tiles with rotations and reflections
Additional performance optimizations
Thanks for watching!
Taught by
The Coding Train