PROJECT 05 / AI / BUILDING BY DEMONSTRATION
Pocket
City.
A model table in WebXR with one gold lot. You stack cubes on it with the controller beam, in four materials, and that building is your demonstration. GROW CITY sends it to an AI, which returns four related buildings for the blue lots as block data, checked before anything is drawn. ENTER CITY redraws the same data at human scale around you. A first draft, built to find out what an AI production assistant can and cannot do.
How the scene works
- Every building is a list of blocks: a cell on a 3×3 lot, a layer, a material. Pointing and pressing adds one to the example.
- The list goes to the AI inside a prompt that states the vocabulary and the exact reply format. The reply is validated block by block.
- The validated lists are drawn as cubes, once on the table and once at street scale; the two views are the same data.
INTERACTIVE STUDY
Interactive study
01—05Teaching an AI by building, in five levels
A step-by-step course that runs the scene's own code in the browser: blocks as data, picking with a beam, the prompt, checking the reply, and one list drawn as a table and as a street.
The grid, the lots, four materials, six layers: a closed vocabulary that both you and the AI must speak.
02Picking a cell with a beam↗Which box does the beam enter first? The ray–box test, and why "closest point" is not enough for a crowd of cubes.
03The prompt↗What the AI actually receives: your example as text, the rules of the vocabulary, and the exact shape of the reply.
04Checking the reply↗Out of bounds, duplicated, floating, too many, too few: every rule the validator enforces, and what "discarded" measures.
05Table and street↗One list drawn twice, zooming around a fixed corner, and what the scene shows while the AI is still thinking.
This page cannot call the AI: it has no server and no key. Where a reply is needed, it uses one saved in the exact format the AI returns, and says so. The code shown is a snapshot of the scene in /source/.