--- name: walkthrough description: "Turn a hosted 3D model of a home into a walkable first-person tour in the browser, like a computer game: room names and sizes, a tape measure for furniture shopping and a top view, as one public link that opens on a computer or phone with no account. Use when the user asks to walk through the home, a virtual tour to explore, measurements to buy furniture by, or a link to send a buyer or family." --- # Walkthrough A walkable tour of a home built with `3d-model` (or `continuous-tour`), delivered as a link. Offer it only when the user asks for it; it is free. ## What the user gets - Walking with keys and mouse on a computer, a thumb stick and drag on a phone (iOS 16.4+, current Android Chrome). - Room names with wall-to-wall sizes, a tape measure between any two points, and a top view where a tap jumps to that spot. - A link on app.bullestate.co that anyone opens without an account, from Claude, ChatGPT or a plain browser. Anyone with the link can enter: keep names and the address out of it. ## Steps 1. **A committed model.** Use the latest approved revision. If there is none, build it first with `3d-model`. 2. **Inspect it** with `run_3d_python` (`commit: false`): room extents, wall, floor and ceiling object names, door and window openings, terrace and balcony slabs, floor heights. Print numbers; do not guess. - Walls must be `ENV_wall...`, floors `ENV_floor...`, ceilings `ENV_ceiling...` (or `G__walls__`, `G__floor__`, `G__roof__`). Walls give collision and size readings; the ceiling hides in the top view. - A slab step of a few centimetres at a terrace door can make the terrace unreachable: close it in the model (a threshold strip) before exporting. 3. **Write `house`** (the `export_walkthrough` schema): - `plan`: `metresPerPixel: 0.01`, `origin: [0, 0]` means plan units are centimetres of Blender X and -Y (x = X·100, y = -Y·100). - `rooms`: one rectangle per room, in the user's language, the entrance or living room first. `jump` is a free spot to stand, never inside furniture. - `doors`: every walkable glazed exit (terrace, balcony), otherwise it is sealed. `panes`: glass in openings that have no glass object; panes also block walking. - `floors[].measureHeight`: above door and window heads, below low partitions. - `title` and `heading` generic, e.g. "Apartment tour"; never the family name or the address. 4. **Optional realism** (only when asked, and say what changes first): a dressed copy of the model with textured furniture, an outside view on a cylinder around the flat, and light baked into walls, floor and ceiling with Cycles (sun + sky + bounce), exported as a GLB from `run_3d_python` and set as `glb_url`. Pack recoloured images before baking: Cycles reloads unsaved images from disk. Do not commit these changes to the design model. 5. **Export**: `export_walkthrough({ model_id, house, glb_url? })`. Give the user the link, say it is public to whoever has it, and that the sizes come from the model and do not replace measuring on site. 6. **A change** is a new export with a new link. ## Checks before giving the link - Every room reachable and reachable back; the terrace included. - Sizes match the plan's room table within a few centimetres; report differences with numbers. - Nothing in the title, room names or model shows the owner's name or the street address.