Hacker GitHub

← All repos

mxgmn/WaveFunctionCollapse

View on GitHub ↗ ★ 25,471 C#

Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics

63 mentions on Hacker News by 55 people: 12 stories, 51 comments · first 2016-09-30 · latest 2026-08-04

Mentions per year 63 mentions · busiest year 2018 (13)
20082026
  1. No I just meant WFC as an algorithm for solving problems. https://github.com/mxgmn/WaveFunctionCollapse It's one of the coolest things I've ever seen. I guess I've been pronouncing it wrong though. It's wave function collapse, not…
  2. ▲ 83
    Bitmap and tilemap generation from a single example
    story by futurecat · 2026-04-30 · 14 comments
  3. ▲ 4
    Wave Function Collapse Algorithm
    story by karmakurtisaani · 2026-04-19 · 1 comment
  4. …(e.g. forward checking). [0] https://www.cs.cornell.edu/courses/cs4700/2011fa/lectures/05... [1] https://github.com/mxgmn/WaveFunctionCollapse
  5. This is not Wave Function Collapse. This is a constraint solver. The goal of the original algorithm ( https://github.com/mxgmn/WaveFunctionCollapse ) is to infer the constraints from a sample, and then run a constraint solver. Hard-coding…
  6. …I wonder how well it could be combined with Wave Function Collapse (or the Nested variant) [1] https://github.com/mxgmn/WaveFunctionCollapse [2] https://nyh-dolphin.github.io/en/research/n_wfc/
    comment by jasonjmcghee · 2025-12-03 · in GSWT: Gaussian Splatting Wang Tiles
  7. Did they reinvent "wave function collapse" ( https://github.com/mxgmn/WaveFunctionCollapse )?
    comment by theknarf · 2025-10-27 · in WorldGrow: Generating Infinite 3D World
  8. …[1] https://www.boristhebrave.com/2021/10/26/model-synthesis-and... [2] https://github.com/mxgmn/WaveFunctionCollapse [3] https://github.com/mxgmn/WaveFunctionCollapse?tab=readme-ov-... [4] https://zzyzek.github.io/PunchOutModelSy
  9. …repository (and the simplicity of implementation for arbitrary bitmaps), not so much the name. https://github.com/mxgmn/WaveFunctionCollapse As for global repetition, the original repo did have this to say, that selecting tiles is…
  10. …sudoku solvers. https://escholarship.org/content/qt3rm1w0mn/qt3rm1w0mn_noSpl... Maxim Gumin's work: https://github.com/mxgmn/WaveFunctionCollapse Paul Merrell's work: https://paulmerrell.org/model-synthesis/…
  11. …part comes from the original algorithm which inferred the constraints from a sample image : https://github.com/mxgmn/WaveFunctionCollapse Still a misnomer in my opinion, but I noticed that this part of the algorithm was missing from all…
  12. …also a demo of tile rule inference idea here: https://zzyzek.github.io/TileRuleHighlighter/ [0] https://github.com/mxgmn/WaveFunctionCollapse [1] https://github.com/merrell42/model-synthesis
  13. …algorithm[1] be used for this, ie. generating tiles that are similar to a certain base pattern? [1] https://github.com/mxgmn/WaveFunctionCollapse
  14. Related: https://github.com/mxgmn/WaveFunctionCollapse
  15. Thank you! And yes, I agree. I was looking at uh https://github.com/mxgmn/WaveFunctionCollapse and wondering if that were applicable here :) Have a good day!
    comment by SeanAnderson · 2023-09-23 · in It's okay to make something nobody wants
  16. …sudoku solvers. https://escholarship.org/content/qt3rm1w0mn/qt3rm1w0mn_noSpl... Maxim Gumin's work: https://github.com/mxgmn/WaveFunctionCollapse Paul Merrell's work: https://paulmerrell.org/model-synthesis/…
  17. ▲ 2
    The Wavefunction Collapse Algorithm
    story by indigoabstract · 2023-09-01 · 0 comments
  18. …to the observed distribution from an example image. [0] https://arxiv.org/pdf/1905.05077.pdf [1] https://github.com/mxgmn/WaveFunctionCollapse
    comment by abetusk · 2023-08-22 · in Kullback–Leibler divergence
  19. …to generalize quite well. Here’s a little demo: https://oskarstalberg.com/game/wave/wave.html [1] https://github.com/mxgmn/WaveFunctionCollapse
  20. …sudoku solvers. https://escholarship.org/content/qt3rm1w0mn/qt3rm1w0mn_noSpl... Maxim Gumin's work: https://github.com/mxgmn/WaveFunctionCollapse Paul Merrell's work: https://paulmerrell.org/model-synthesis/…
    comment by DonHopkins · 2023-01-28 · in Making Sandspiel
  21. …sudoku solvers. https://escholarship.org/content/qt3rm1w0mn/qt3rm1w0mn_noSpl... Maxim Gumin's work: https://github.com/mxgmn/WaveFunctionCollapse Paul Merrell's work: https://paulmerrell.org/model-synthesis/…
  22. …generation before, so I was excited to explore how it fared in this context. The GitHub page ( https://github.com/mxgmn/WaveFunctionCollapse ) explains it well--in short, the algorithm starts with a blank canvas as an output, called a…
  23. Also, a relevant project Wave Function Collapse[0] [0]: https://github.com/mxgmn/WaveFunctionCollapse
    comment by max_ · 2022-07-18 · in Practical Real-Time Hex Tiling
  24. There's https://github.com/mxgmn/WaveFunctionCollapse which works pretty well. (See eg https://www.youtube.com/watch?v=mgWftkTq1XU ).
  25. …of the algorithm running through examples. [2] Past stories about Wave Function Collapse [3] [1] https://github.com/mxgmn/WaveFunctionCollapse Youtube videos of WFC https://www.youtube.com/results?search_query=wave+function+c... [2]…
  26. So, about the name, the first time I've heard about WFC was when this post was released https://github.com/mxgmn/WaveFunctionCollapse I did not included it on my readme because I did not used or even looked at their code, but that's the…
    comment by atum47 · 2022-05-17 · in Show HN: Simple Wave Function Collapse
  27. You should message the creator and let him know your thoughts https://github.com/mxgmn/WaveFunctionCollapse
    comment by platz · 2022-05-17 · in Show HN: Simple Wave Function Collapse
  28. …This is referring to a Procedural Generation algorithm named the Wave Function Collapse algorithm: https://github.com/mxgmn/WaveFunctionCollapse
    comment by dljsjr · 2022-05-17 · in Show HN: Simple Wave Function Collapse
  29. This looks like Wave Function Collapse https://github.com/mxgmn/WaveFunctionCollapse It's cool, but I agree with some other commenters that it's not a very good way to generate an entire world, but it is a cool way to generate part of a…
    comment by everyone · 2022-01-10 · in Procedural Worlds from Simple Tiles
  30. The original implementation[0] has a comprehensive description in the README file. [0] https://github.com/mxgmn/WaveFunctionCollapse
  31. …ABCDE, and the network would learn to predict C from A,B,D,E. Similar idea without neural networks: https://github.com/mxgmn/WaveFunctionCollapse I'm surprised no one applied this idea to Minecraft yet. There's even a 3D version:…
  32. …for it as I always hated it being called "wave function collapse" when that is a physics thing. [0] https://github.com/mxgmn/WaveFunctionCollapse
    comment by t8y · 2021-12-02 · in Townscaper Running in the Browser
  33. …Function Collapse[1] utility or similar that could take these wallpaper fragments as seeds? [1] https://github.com/mxgmn/WaveFunctionCollapse
  34. ▲ 281
    WaveFunctionCollapse: Generates bitmaps that are locally similar to the input
    story by lnyan · 2021-07-16 · 39 comments
  35. …quite nicely when parametrized with artistic care - this is a "simpler" example of the concept. https://github.com/mxgmn/WaveFunctionCollapse 2. Fairly good understanding how to synthesize terrain. Terragen is a good example of this…
    comment by fsloth · 2021-06-25 · in Nvidia Canvas
  36. …algorithm [0]. It "generates bitmaps that are locally similar to the input bitmap." Very cool! [0]: https://github.com/mxgmn/WaveFunctionCollapse
  37. ▲ 1
    Generation from a single example with the help of ideas from quantum mechanics
    story by csm-yujinkim · 2020-10-25 · 0 comments
  38. …I recall correctly) to select fitting tiles when the player clicks on the map to build something. https://github.com/mxgmn/WaveFunctionCollapse In the section about notable forks, ports and spin-offs there are some links to Oskar…
  39. Reminds me of the Wave Function Collapse algorithm, although doesn't look to be that. https://github.com/mxgmn/WaveFunctionCollapse What algorithm is this using? Got a GitHub link?
    comment by winrid · 2020-06-21 · in Show HN: Random Roads
  40. Check this out https://github.com/mxgmn/WaveFunctionCollapse
  41. ▲ 1
    WaveFunctionCollapse: Bitmap and tilemap generation from a single example
    story by anchpop · 2019-09-14 · 0 comments
  42. ▲ 3
    Program generates bitmaps that are locally similar to the input bitmap
    story by flancian · 2019-08-24 · 0 comments
  43. ▲ 3
    Wave Function Collapse Algorithm
    story by doppp · 2019-06-23 · 0 comments
  44. ▲ 1
    WaveFunctionCollapse
    story by m0th87 · 2019-06-20 · 0 comments
  45. ▲ 4
    Wave function collapse inspires bitmap generation ML algo
    story by youlweb · 2019-06-12 · 0 comments
  46. I'd start with https://github.com/mxgmn/WaveFunctionCollapse
  47. …neural techniques. Results tend to have fewer artefacts, better long range order ;) Original repo: https://github.com/mxgmn/WaveFunctionCollapse
  48. i wonder if you can just chop up 50 fingerprints an feed them to https://github.com/mxgmn/WaveFunctionCollapse
  49. …on wave-function collapse, what does it do when it hits an impossible/contradictory state? (See https://github.com/mxgmn/WaveFunctionCollapse where it mentions "It may happen that during propagation all the coefficients for a certain pixel…
  50. …Unity) https://github.com/marian42/wavefunctioncollapse Original Wave Function Collapse Algorithm https://github.com/mxgmn/WaveFunctionCollapse