Straight out of quantum mechanics, Wave Function Collapse is an algorithm for procedural generation of images. In this video (recorded over 3 live streams) I attempt the tiled model and explore a variety of solutions to the algorithm in JavaScript with . Also, check out WFC’s predecessor: Model Synthesis (more info below). Code:
🚀 Watch this video ad-free on Nebula
💻 Github Repo:
🕹️ Web Editor Sketch:
🎥 Previous:
🎥 Next:
🎥 All:
References:
💡 WFC Challenge Suggestion:
🗄 Wave Function Collapse Algorithm:
🗄 Model Synthesis:
📣 Wave Collapse Function algorithm in Processing:
🗄 ():
🐞 Encoding tiles symmetry and rotation #14:
🐞 The issue with asymmetric tiles and an easy solution #16:
🗄 ():
Creative Works Featured:
🎨 Oisín: Wave Function Collapse for poetry:
🎨 Townscaper:
🎨 unity-wave-function-collapse:
🎨 Zelda WFC: @makio135/zelda-wfc
🎨 Wave Function Collapse Demonstration:
🎨 Infinite procedurally generated city:
🎨 Generating stairy scenes:
Live Stream Archives:
🔴 Day 1:
🔴 Day 2:
🔴 Day 3:
Videos:
🎥 Solving Wordle with Information Theory:
🎥 Pixel Array:
🎥 Arrow Function:
🎥 Higher Order Array Functions:
🚂 Matrix Transformations:
🎥 Oskar Stalberg - Wave Function Collapse in Bad North:
Related Coding Challenges:
🚂 10 Maze Generator:
🚂 162 Self Avoiding Walk:
🚂 165 Slide Puzzle:
Timestamps:
0:00 Day 1! Wave Function Collapse!
2:00 Entropy in Sudoku.
5:41 Comparing Sudoku to WFC
9:24 Starting to code.
11:05 Collapsing cells.
13:30 Evaluating entropy.
18:47 Updating entropy after collapse.
22:45 Data structure for rules.
24:50 Implementing rules for next collapse.
36:28 Explaining the rules.
38:45 Day 2! Refactoring the code.
39:26 Create a Tile class
44:57 Generate the rules from Tile objects.
55:40 Using new circuit board tileset.
1:00:40 Day 3! Dealing with asymmetrical tiles
1:01:56 Assigning index values to edges.
1:06:53 Incorporating edges into code.
1:10:05 Change adjacency for assymetry
1:12:06 First assymetric WFC image!
1:12:40 Restart if no valid cell found.
1:15:48 Next steps!
1:18:05 Thanks for watching!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website:
👾 Share Your Creation!
🚩 Suggest Topics:
💡 GitHub:
💬 Discord:
💖 Membership:
🛒 Store:
🖋️ Twitter:
📸 Instagram:
🎥 Coding Challenges:
🎥 Intro to Programming:
🔗 :
🔗 Web Editor:
🔗 Processing:
📄 Code of Conduct:
This description was auto-generated. If you see a problem, please open an issue:
#wavefunctioncollapse #generativeart #p5js #javascript
1 view
1310
354
4 weeks ago 00:13:35 1
Russia’s DONE With G7 Gold - BRICS Precious Metals Exchange Threatens The U.S. & UK
1 month ago 00:03:52 36
Расследуй убийство с SQL. Игры, которые реально учат писать код.
1 month ago 00:08:05 1
Slightly Offensive Funny Memes
1 month ago 00:00:21 1
New Ronin Mask with Thermal Build (Drip Kit)
1 month ago 02:25:01 1
Sonic X Shadow Generations OST - Full Original Soundtrack (Full Album OST)
1 month ago 00:44:31 1
Vatican Secrets Revealed - Forbidden History - S04 EP02 - History Documentary
1 month ago 00:00:17 4
Fortnite Hugo Hilaire What You Want Emote
1 month ago 00:05:00 1
Nocturnal Owl, 3D Metal Model | Magnetic Games
1 month ago 00:50:53 1
We Spent the Day in Full Plate Medieval Armour...
1 month ago 00:29:44 2
2 Minecraft Speedrunners VS TITAN
1 month ago 01:15:34 1
Andrew Johnson – 17th President of the United States (1865–1869)
1 month ago 00:00:28 1
100 Ergo SAG AK-545
1 month ago 00:05:01 1
NFT Game | Play to Earn Games | Crypto Games Earn Money
1 month ago 00:30:53 1
Fall Challenge Day 9: 30-Minute Full Body Supersets
1 month ago 00:38:50 4
Get It Together, Intel: Core Ultra 9 285K CPU Review & Benchmarks vs. 7800X3D, 9950X, More
1 month ago 01:22:00 1
The Skinny Confidential | Club Random with Bill Maher
1 month ago 00:45:04 1
The Return of the Anunnaki Movie | Ancient Gods Return
1 month ago 00:04:43 1
Let’s GROW Annual Challenge Day 298! Moral Code, Code Of Conduct, And Communication Growth? Do One
1 month ago 00:08:13 1
Ferrari F80 Hypercar Dynamic Launch - Finali Mondiali 2024
1 month ago 00:13:02 1
As BRICS Confirms Anti-SWIFT Financial System, Major Bank Declares US Stocks Are Done
1 month ago 00:03:50 1
London Belly Dance Course | Habibi Ya Einy by Nourhanne | Beginner’s Class
1 month ago 00:29:23 1
I Sculpted a Haunted House from Polymer Clay & Cardboard!
1 month ago 00:13:43 1
THIS IS WHAT WINNERS QUE LOOKS LIKE
1 month ago 01:03:06 1
Empire Of The Ants NEW Gameplay Demo 4K (New Photorealistic Ant Simulator Game 2024)