Klitsch Galerie
Three.js · WebGL · PHP · 2026
Klitsch Galerie (glitch + kitsch) is an ongoing interactive 3D virtual exhibition space project. It's live at soundisspirit.com/klitsch-galerie/.
This page covers the engineering side. The works on the walls belong to my art practice at soundisspirit.com.
How it works
Real scale: One scene unit is one metre. The prints hang at their actual sheet size, the camera sits at eye height (1.6 m) and you walk at a normal gallery pace, so a work reads the way it would in a physical room.
Data driven: The works come from a single works.json file that PHP embeds into the page. Adding a print means adding an entry, not touching the scene code.
No build step, no CDN: Three.js is vendored as an ES module and served from the same origin, which keeps the strict Content Security Policy intact. Wall texts are drawn into canvas textures once, after the web font has loaded.
Desktop and touch: Keyboard and mouse on desktop, tap to walk on phones. Visitors who ask for reduced motion get it, and browsers without WebGL get a fallback instead of a blank canvas.
Guestbook: A small PHP endpoint on SQLite with length limits, paging and rate limiting per hashed IP address.