Creating Little Castles with Wave Function Collapse

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น • 67

  • @NakedGeep
    @NakedGeep 11 หลายเดือนก่อน +166

    I’m a simple man. I see a video about wave function collapse, I click it.

    • @CLove511
      @CLove511 10 หลายเดือนก่อน +2

      I'm a simpler man: I see a video, I click.
      Today I learned about wave collapse and that it isn't a surfing term

    • @csx5882
      @csx5882 10 หลายเดือนก่อน +2

      Let me guess, the adjecent videos that could have been clicked would not have been colapsable because the wave function collapse wouldn't have allowed any other video to be clicked, because it wasn't possible in the first place, leaving this video with the only option left to be clicked?

  • @Rafloka
    @Rafloka 9 หลายเดือนก่อน +37

    2:06 oh yes, the good old "lemme quickly write a script for that..."

  • @woudy7
    @woudy7 ปีที่แล้ว +51

    Now I finally understand what wave function collapse is.
    I'm surprised that this doesn't have more views for a video of such high quality. Can't wait to see this channel grow!

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว +4

      Appreciate it! I'll try my best to keep making interesting videos 😊

    • @AdobadoFantastico
      @AdobadoFantastico ปีที่แล้ว +5

      It usually takes a few but I hope he keeps it up.

  • @mgiraldeau
    @mgiraldeau ปีที่แล้ว +6

    Incredible quality for such a small channel! Thank you for the great explanations

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว

      Glad you enjoyed it! Thanks for the kind words ❤

  • @nivmiz0
    @nivmiz0 ปีที่แล้ว +3

    Great video!
    Super high production quality, and really interesting topic! I love it when mathematical algorithms directly apply to game development and WFC is a great example of that.

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว +1

      Thanks man, appreciate it!

  • @goodboiadvsp3297
    @goodboiadvsp3297 11 หลายเดือนก่อน +4

    I wonder if you could wace function collapse an entire house by just using building code and some standard design practices

  • @Soundy777
    @Soundy777 10 หลายเดือนก่อน

    Adore the chill vibes and excellent explanation! Great bit of concentrated knowledge!

  • @ShadedGG
    @ShadedGG ปีที่แล้ว +1

    Great video, I enjoy it and understand what he said. He gave complex information in a simple, understandable way. I love this video and hope to see more

  • @ericfear
    @ericfear ปีที่แล้ว +2

    Major Tom strikes again! Super clear and the quality of the visualisations is great, looking forward to the next one!

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว

      Thanks Eric!

  • @nayzal
    @nayzal ปีที่แล้ว +2

    Woah! Great video, cant believe you're not more popular!

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว +1

      Thanks! Things like this always take time to grow, and I'm just at the beginning so I can't expect too much 😅

    • @nayzal
      @nayzal ปีที่แล้ว +1

      @@TomDevYT Fair enough, can't wait to see where you go next :)

  • @Jejkobbb
    @Jejkobbb ปีที่แล้ว +1

    Great video! Subscribed.

  • @JakubSK
    @JakubSK 9 หลายเดือนก่อน +3

    Wave Function Collapse is just the name given to something I feel like I came up with on my own when I was a teen lol

  • @evali5201
    @evali5201 ปีที่แล้ว +1

    Woooooiiiioooiiioi what a cool video. I love the little sound effects ❤

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว

      Me too 😊

  • @MirceaKitsune
    @MirceaKitsune ปีที่แล้ว +9

    I've done similar experiments with procedural world generation in Godot, and have been thinking about precisely an algorithm like this for generating rooms in a fashion similar to the mazes in SCP Containment Breach. It's weird to realize I've already thought of this exact thing before learning of its official definition just now. At the same time this provides a few details I haven't thought of, like how to go about correctly picking the proper neighbors using a reduction system: I believe my idea was to give each opening on the module piece (window, door, corridor ending, etc) a tag represented as a position / rotation / name then randomly pick another module that has an identical tag connecting to it and position / rotate it accordingly... this would have supported tiles of multiple sizes (powers of 2) unlike a fixed tile size, but that's a much bigger pain to deal with so I'm glad I didn't go there.

  • @touie7220
    @touie7220 ปีที่แล้ว

    giving heavy sabastian vibes and im loving it keep it up

  • @unrealopenworld
    @unrealopenworld ปีที่แล้ว +4

    Well explained! A video of exactly how you did it in the UE would be great. The popping, the noises... the best way to create the meshes. If you were the only one who would explain it like that, your channel would definitely push it.

    • @unrealopenworld
      @unrealopenworld 2 หลายเดือนก่อน

      @@dotcom4389 I've taken a number of courses, both free and paid. I know the basics. Unfortunately, there wasn't anything like pop-up. Do you have any tips on where to find a tutorial like that?!

  • @christian5256
    @christian5256 3 หลายเดือนก่อน +2

    I vote we stop calling this thing wave function collapse and start calling it what it really is, the Sudoku Algorithm 😂

  • @Kayotesden
    @Kayotesden ปีที่แล้ว

    Wonderful video. Subscribed, please more of these!

  • @simplygreen5832
    @simplygreen5832 ปีที่แล้ว +1

    Been watching a bunch of WFC vids and this has been really useful but what I'm looking for is how to set more complex constraints on map gen. For instance a thought that comes to mind is to have path start/end (attaches to building/location and regular path) and intersection tile, keep a count on path length and allow a termination or intersection to appear after x path length.

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว

      Those are interesting use cases, I've seen Oskar stalberg expand on wave function collapse in his game "Bad North" to add additional checks to ensure the map is playable.
      I think what you are suggesting could work though there may be other solutions that are better suited to path generation rather than trying to bend the WFC algorithm to fit that particular problem. For instance you could use WFC to generate your map with buildings then do a separate pass to connect them up with paths.
      In my experience I've found adding too much to one system can add a lot of complexity when it may be better to separate it into more specific pieces.

    • @simplygreen5832
      @simplygreen5832 ปีที่แล้ว +1

      @@TomDevYT It was more a musing than a functional use case, my initial thought was to pre-pass the map with location foundations and connect them with paths, in effect pre-culling the available tiles per coordinate. As you point out other algorithms are better suited to the purpose. I just thought it might be an interesting experiment to try forward generation with constraints. The Path comes to mind.
      Edit: Looked into Bad North, saw an article that mentioned Caves of Qud using regions. I'm thinking of taking a similar approach, say using random distribution to tag a forest region and switching tilesets rather than using transition tiles directly. A similar approach can be taken for different locations/tilesets and usefully I can separate roads/paths into their own tileset.

  • @Aournox
    @Aournox 4 หลายเดือนก่อน

    Can you make the assets open source so I can test my project?

  • @albertkim2096
    @albertkim2096 2 หลายเดือนก่อน

    Hi Tom, thanks for sharing. I wanted to learn WFC and finally got the whole concept. I'm trying to build something similar to what you did in the video. Can you share the castle models in the video?

  • @perftaco
    @perftaco ปีที่แล้ว

    Really great quality on the video!

  • @lolaswift111
    @lolaswift111 ปีที่แล้ว +1

    hi tom, you've made the best video for people to understand what wfc is

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว

      Thanks so much! Your kind words mean a lot :)

  • @giantneuralnetwork
    @giantneuralnetwork 10 หลายเดือนก่อน

    Awesome! Instead of automating what can connect with what perhaps an easier approach is to just build some example structures with the grid pieces manually and have a script keep note of what is allowed to neighbor what. Though downside is you then limit generations to variations of what you’ve manually constructed but I bet some cool results would still pop up.

  • @calebmichael6433
    @calebmichael6433 ปีที่แล้ว

    Cute, informative, and inspiring!!!

  • @ThomasStewartDev
    @ThomasStewartDev ปีที่แล้ว

    Good stuff man

  • @Raccoon0710
    @Raccoon0710 7 หลายเดือนก่อน +2

    could you please share code?

    • @fukkenPavlo
      @fukkenPavlo 3 หลายเดือนก่อน

      Pretty pwease 🥺

  • @robosklegs
    @robosklegs 10 หลายเดือนก่อน

    Great video! ...I'd kinda love to see a video about how you made the graphics for this video😅

  • @Raccoon0710
    @Raccoon0710 7 หลายเดือนก่อน

    I made simple wfc algorithm, but who can tell, how to make meaningful buildings? I understands that there should be some constrains, but how and what to do?

  • @VoxelGarage
    @VoxelGarage 3 หลายเดือนก่อน

    The castle model looks nice. Did you build them yourself?

  • @Spedley_2142
    @Spedley_2142 ปีที่แล้ว +1

    Is there a bug there which makes all the walls the same height? There seems to be a tile to go up and down on the wall but it is never used.

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว +1

      That tile is just a top cap so it's just placed on the highest level, it's not used to transition between a higher and lower level. Though an implementation like that could certainly be possible!

  • @Zero-4793
    @Zero-4793 11 หลายเดือนก่อน

    That sound effect is from townscaper ;)

  • @sleepyinterface8819
    @sleepyinterface8819 6 หลายเดือนก่อน

    I almost thought this is Tiny Glade

  • @Yes-dp4ie
    @Yes-dp4ie 2 หลายเดือนก่อน

    If u try to predict where a tornado will go depending on its speed and direction you can only predict with a similar level of certainty where it will be detected at a future time. In quantum physics they are tiny spherical vortexes not particles. Moving inside a lattice made of Planck sized elastic tubes/strings. That's how EMR moves, through quamtum wires.
    When trying to get particle physicists to understand the wave equation is describing a wave detected at single points not a particle, it's like talking to high tech voodoo madmen, they say energy is a particle but has a wave function which isn't actually a wave! it's like particle physicists seeing people in a boat and saying "Oh look those people are moving mysteriously across the water" then we say "no but they're in a boat" to which they say "no there's no boat that's just a boat function that gives the illusion of a boat, we build nuclear bombs, computers to give corporations more control over everything and everyone, we control all physics taught in Universities and peer review journals, we have ai controlling drones killing people in Afghanistan, Pakistan, Yemen and other places with no human 2nd opinion. So trust us we are smarter than you there is no boat, the Universe has no fixed laws at the quantum level, it's not that we can't explain them using the particle model, it's just bizarre and those people move mysteriously across the water in a boat function."
    The Theory of Everything has been around for 5 years with 2 math proofs to Goldbachs conjecture and proof a 2nd loop is impossible in the Collatz Conjecture but the Big bang particle industry have kept it suppressed time and time again, with hysterical particle physicists unable to bear to look or listen to any evidence that for a split second says they are wrong, who keep taking down this guys channel, and refusing to acknowledge his math proofs it's looking more like more doom every day for humanity, the TOE and experiments to prove it are on channel "Breaking physics (beyond the SMOPP)" most experiments and the 2 math proofs are in 1 minute shorts.
    There is no collapse there is only a change of focus on the wave, what changes the focus is the real mystery but this channel has experiments to test for what it is.

  • @Sultschiem
    @Sultschiem 7 หลายเดือนก่อน

    How do you prevent them from getting too large/weird looking?
    Or is this based on the surroundings? e.g. clear constraints to the grid?

  • @fletchthebirb
    @fletchthebirb 11 หลายเดือนก่อน

    Question: How do you go about creating pieces of 3D geometry that ensure the socket vertexes match up perfectly? In my mind it seems like it would be really tedious to do.

  • @Novallovesgames
    @Novallovesgames ปีที่แล้ว +1

    two questionss plz, did you do this in python? and did you use unreal engine for this?

    • @TomDevYT
      @TomDevYT  11 หลายเดือนก่อน

      Hey sorry for the slow response - I used python for setting up the data in blender automatically - but the implementation of the algorithm was done inside unreal engine using blueprints.

  • @acronym5231
    @acronym5231 ปีที่แล้ว

    Where can i get those 3d assets? or can you share the unity project?

    • @TomDevYT
      @TomDevYT  ปีที่แล้ว

      It's in unreal engine!

    • @acronym5231
      @acronym5231 ปีที่แล้ว

      @@TomDevYT ah, thanks i'll search for it.

    • @Sanchayan-d7r
      @Sanchayan-d7r 2 หลายเดือนก่อน

      @@acronym5231 Can you sent a link, i also need those assets

  • @toastyPredicament
    @toastyPredicament ปีที่แล้ว

    More ._.

  • @taureanwooley
    @taureanwooley 10 หลายเดือนก่อน +1

    Sadly they've done the same thing with large language models and image generation

  • @itryen7632
    @itryen7632 10 หลายเดือนก่อน +1

    Wave function P R O L A P S E OwO

  • @AMTunLimited
    @AMTunLimited 11 หลายเดือนก่อน

    Why spend an hour labelling things by hand when you can spend 8 or 9 hours making a program to do it for you!
    The pain is real...

  • @alextravine9422
    @alextravine9422 หลายเดือนก่อน

    Hello. Are you still messing with wave function collapse in unity nowadays? I have this idea i want to implement that would help with the tedious process of setting rules for neighbors, but im not sure the best way to implement it. Would you like to help? Its fairly straightforward and can be useful to all of us.

  • @googleyoutubechannel8554
    @googleyoutubechannel8554 3 หลายเดือนก่อน

    Yep, it's a bunch of squirrley nonsense that does indeed connect, another WFC implementation.