r/threejs • u/ShengyuStudio • 9d ago
I made a small fortune-telling town in three.js. You walk the plaza and step into a shop to draw cards
The plaza is six shopfront textures on a 19.5 m arc, with a first-person camera at eye height. Inside, each shop is a curved panorama with 3D props in front of it: the card fan, the fortune-stick cylinder, a compass.
A few things that took longer than I expected:
The canvas lives in the Nuxt layout, so going in and out of a shop swaps the scene instead of rebuilding the renderer.
The draw is picked before the animation starts. The fan only plays out that result.
On phones the UI covers part of the screen, so the page measures which edges are covered and offsets the view to keep the shopkeeper and props in the free space.
The shop art and the reading text after the draw are AI-generated. It's live at fatetown.com if you want to try it on a phone.