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
1026
272
5 months ago 00:21:15 1
Can I Beat Pokemon Red with ONLY Water Types? 🔴 Pokemon Challenges ► NO ITEMS IN BATTLE
5 months ago 00:12:34 1
Ex GW Staff explains WHY so many Age of Sigmar kits are going away #newaos
5 months ago 00:00:33 5
⭐ CHALLENGES! ⭐ Car Dealership Tycoon Update Trailer
5 months ago 00:18:36 1
How to learn ANY language without studying with this LAZY method
5 months ago 00:15:32 1
🔴 Plant Agriculture DESTROYS Our Planet! | Lierre Keith
6 months ago 00:35:24 1
30 MIN FULL BODY KILLER HIIT Workout - With Weights, Burn Calories + Build Strength at home!
6 months ago 00:28:59 1
A day settling into my new Art studio - a fresh start
6 months ago 00:15:22 1
I Challenged AI to Create a Better YouTube Channel Than Me... Here’s What Happened
6 months ago 00:10:28 1
Slightly Offensive Memes v25
6 months ago 00:01:03 2
HURRY! GET THE CUTEST NEW FREE HAIRS & ITEMS IN THIS OBBY! 😍🥰 + CODES (2024)
6 months ago 00:59:12 4
Shaving Your Feet, Dirty Plane Habits & Boeing Flight Down
6 months ago 00:03:25 1
Best VPN Service 🎯 Is ExpressVPN Really The Best
6 months ago 00:08:46 1
ОТРЫЛ СВОЙ ГРИФЕРСКИЙ СЕРВЕР CRYSTALWORLD ! REALLYWORLD
6 months ago 00:09:04 1
How to Fix a Neck Hump and Get a Slim Long Neck|No Standing | Get a Slim Face
6 months ago 00:03:15 1
3MINS EXERCISES TO INCREASE HEIGHT YOU MUST DO EVERY MORNING!
6 months ago 00:28:31 1
25 MINS🔥 FACE LIFTING EXERCISES For Beginners! Reduce Jowls, Laugh Lines (Nasolabial Fold)
6 months ago 00:09:46 1
INCREASE HEIGHT With This Exercise & Stretch! Easy Stretch To Grow Taller You Must Do
6 months ago 01:20:52 1
Nexxus 604 - Alien Planet - Psychedelic trance mix 2024 • (4K AI animated music video)
6 months ago 00:17:35 1
He Got Called Fat, So He Got Shredded in 90 Days
6 months ago 00:03:12 1
Fortnite X Avatar the Last Airbender - All Rewards Unlocked and Full Showcase
6 months ago 01:30:28 1
AlphaGo - The Movie | Full award-winning documentary
6 months ago 00:10:22 1
The Fastest Face Lifting Exercises in 2023🔥for Laugh Lines, Jowls, Eye Bags
6 months ago 00:23:12 1
DAY 2 Back to Basics - 20 MIN CORE & ABS Workout - No Equipment - Beginner Friendly
6 months ago 01:16:35 1
Electronic Music for Focus — Maximize Your Productivity