Tibetan Architecture in Code
Nine Tibetan buildings and a whole monastery town, generated entirely from Python in Blender.
A kit of Tibetan architecture built entirely from Python in Blender, with no hand modelling and no downloaded models or textures. Each building is a script with a seed: battered whitewashed walls that lean inward, black trapezoid window surrounds, the maroon penbe frieze, gilded roofs and prayer flags.
The kit assembles the buildings into a monastery town on a hillside and bakes them into game-ready GLB files that keep draw calls low. It also feeds more than two hundred building, interior and prop types, with levels of detail and collision, into the Godot game Dungkardo.
The hard part was making buildings that look hand-built from nothing but code. The walls are real meshes that lean inward and bulge like rubble under lime, windows are cut with booleans, and every material is a procedural shader, from whitewash streaks to the fibrous penbe frieze, each with a flat fallback colour so the same building can run in a game.
You can walk the town yourself in the browser: the three.js walk-through has orbit, walk and fly modes, stair climbing and wall collision.





