The Algorithm That Generates Infinite Worlds @WawaSensei
The Algorithm That Generates Infinite Worlds  @WawaSensei
Uploaded November 2026 | Updated November 2026, 3 days ago
Welcome to the Wawa School of Magic ✨ A cozy castle builder where every castle is unique, powered by Wave Function Collapse, the algorithm behind countless procedural games.

In this video, you'll learn how it works by building it: modules, sockets, superposition, entropy, propagation and contradictions, plus a few gamedev tricks to make it feel alive, like baked lighting and interior mapping.

Because you can't prompt what you can't name.

🎮 Play the demo: magic-school.wawasensei.dev
💻 Source code (fork it!): github.com/wass08/wfc-magic-school

🧰 Tools used
Node Banana (image generation workflow): nodebanana.app
Open Design (UI prototyping): open-design.ai

📚 Learn more about lighting & post-processing: youtu.be/aVo3M2IEw9o
🚀 Learn React Three Fiber with the Ultimate Guide to 3D Web Development ✨
https://wawasensei.dev/courses/react-three-fiber/

#threejs #creativecoding #wavefunctioncollapse



▬▬▬▬▬▬ 📚 RESOURCES ▬▬▬▬▬▬

Threejs
threejs.org

React Three Fiber
https://r3f.docs.pmnd.rs/getting-started/introduction


▬▬▬▬▬▬ Support the channel 🙏 ▬▬▬▬▬▬

Become a member to get access to awesome perks:
youtube.com/channel/UCBH-5ctALmmOrm4kczL3urQ/join

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬

💻 The Discord Community
discord.gg/2wBhwchcWu

📸 Instagram :
instagram.com/wawa.sensei

🎎 Facebook :
facebook.com/wawasenseiyt

🐦Twitter :
twitter.com/wawasensei

🐦TikTok :
tiktok.com/@wawasensei08


▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬

0:00 Welcome to the School of Magic
0:35 What is Wave Function Collapse?
3:05 Generating references with Node Banana
3:53 First prototype
4:15 New UI with Open Design
4:37 The museum
5:22 Baked lighting
5:50 Interior mapping
6:32 Broom mode
6:44 Conclusion
The Algorithm That Generates Infinite WorldsReact Three Fiber Black Friday 3D Escape GameHow to create animated shaders with three.jsCreate and mint a 3D NFT collection (Complete guide)Why I Build Messy Code on PurposeLip Sync - React Three Fiber TutorialFrom Blender to Three.js: The Complete Baking Guide (AO, PBR, High→Low Poly)5 Soft Skill Areas Every Developer Should MasterCoastal World Aesthetics | 3D SnippetThreejs & React Avatar Builder Tutorial - Part 1: SetupEasily add VFX to React Three Fiber - Mini Game TutorialReact Tailwind CSS Tutorial - Introduction, Basics & Responsive Design
Wawa Sensei |

The Algorithm That Generates Infinite Worlds

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER