garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/mockups/design-room/README.md

raw


topic: design-room triggers: [design room, library_publish, "server library", "Design here", clean room, white room, Build, render_context_menu, ring of actions, render_edit_dialog, EditDialogState, prim editing, drafts, inventory, inventory_items, model_library.rs, library.rs, library_share, "shared library", Take, "Take copy"] updated: 2026-11-19

A white room to design an object in, and an inventory to keep it in

v4 — the room as an editor, and the AI building in it, proposed 2026-11-19

v4

Asked after the first room was built (docs/notes/design-room.md): a way out that is always in the same place (Back to the map, top left, and Esc), a grid you can read sizes off (coloured axes, a navigation gizmo with Top / Front / Side, dimensions on the selection, a 1.75 m figure), Blender's tools sized for a finger too (G R S, snapping, align, duplicate, mirror, array, measure), groups with an outliner, a Scripts list per design whose running calls light the object they touch, a log of every change by who made it (you, the AI, a script), and the AI building through Midas while the person watches: a Claude session on the Midas page opens the room on the person's own device over the device link and builds with the room's tools; the room shows "Claude is building" with Pause, Take over and Undo its last step, and "Tell Claude…" on a long-pressed part.

It rests on v3's server-side draft (so neither the person nor the AI builds in front of others) and on a group field on the wire. The sheet's table splits what exists today from what is new, and recommends the order: draft, groups, editor tools, AI bar.

v3 — thought through, proposed 2026-10-15

v3

Redrawn around three answers (all of the inventory on the server, drafts included; no isometric or orthographic views; sharing stays open to everyone) and a second pass that changed four more things:

The sheet ends with what each piece is built on (the /api/content/export document, /api/content/import for placing, inventory_items, library_entries) and the questions still open.

v2 — inventory and shared library, proposed 2026-10-15

v2

Answers to v1's questions, agreed 2026-10-15: a design is several ordinary objects placed as a group (no linked-object wire change), drafts stay on the device, and the avatar stands still in the room as a scale figure.

The same answer asked for an inventory, after Second Life's: server-side, per account, in folders — Objects (designs, stored as the {version, prims} document /api/content/export already writes), Drafts (the same document, on this device only), Models (today's inventory_items), Trash, and the shared library under them, read-only. Items are placed by dragging onto the map (desktop) or "Place in front of me" (phone); placed designs come back with Take and Take copy on their ring. The room's left panel gets an Inventory tab to drag models and objects in as parts.

Moving an item to the shared library needs a new permission, library_share, granted to no role at first, so only admins (who hold every permission) have it. That takes something away: today any signed-in account may share an uploaded model whose licence allows it, from the upload dialog.

v1 — the room, proposed 2026-10-15

v1

The Construct from The Matrix as a mode of its own: Design here on the map's ring (beside Build) fades the world to white and leaves the object, your avatar for scale, a metre grid and a faint outline of the spot's kerb and facade. The tools are today's Edit dialog (Basics, Shape, Surface) docked on the right, plus a parts list on the left. Place fades the world back in with the object standing on the spot, sent to the server as one act.

Drawn isometric for legibility: the client has no orthographic camera today (every camera is Projection::Perspective), so the room's Front / Side / Top views are new work.

Note added 2026-10-15: one pin for a person, everywhere

The person pins on the v3 sheet (the disc in the person's colour on a short stem, name underneath; pale and glowing while they design) are to be used everywhere a person's location is shared, not only here. The app already draws this pin for avatars in a chat's World view and on the Friends layer (chat_people::marker). A real GPS location shared with a private chat is still a blue teardrop (place_pins.rs) and should become the same disc pin, kept blue (theme::REAL_LOCATION) so a phone's position stays distinct from an avatar's. Teardrops remain for places: saved places, chat points, posts.