Cat Tree Generator

2021-08-17 / blinry / CC BY-SA 4.0 / art, software, generator

I spent a one-week “mini batch” at the Recurse Center in 2021. I wanted to learn how to do 3D things in the browser, and how the wave function collapse algorithm works!

What I built is a “cat tree generator”! I modelled the tiles in Blender, and wrote an algorithm that makes sure that the final structure will be consistent. For example, a ladder will only be placed if:

Check it out here! Each time you refresh the page, you’ll get a new cat tree!

You can find the source code on GitHub. I use THREE.js for 3D rendering.


Send a tweet to or drop me a mail at Also, you can support me on Patreon or subscribe to my newsletter !