diff --git a/.agents/skills/formshot-rendering/references/tools.md b/.agents/skills/formshot-rendering/references/tools.md index 06675170..0aca3a33 100644 --- a/.agents/skills/formshot-rendering/references/tools.md +++ b/.agents/skills/formshot-rendering/references/tools.md @@ -1,6 +1,6 @@ # formshot tools -Generated from the engine's command catalogue (formshot 0.14.0) by `./formshot agents sync`; do not edit by hand. +Generated from the engine's command catalogue (formshot 0.15.0) by `./formshot agents sync`; do not edit by hand. ## Contents diff --git a/.claude/skills/formshot-harness/SKILL.md b/.claude/skills/formshot-harness/SKILL.md index a9d72c6a..120ee34c 100644 --- a/.claude/skills/formshot-harness/SKILL.md +++ b/.claude/skills/formshot-harness/SKILL.md @@ -4,12 +4,12 @@ description: "Guides work on formshot, the Form-family 3D product renderer by no license: Apache-2.0 metadata: nodemode.author: nodemode-ai - nodemode.pack-version: "0.14.0" + nodemode.pack-version: "0.15.0" --- # Formshot Harness -formshot is the Form family's 3D product renderer by nodemode-ai (Apache-2.0): open a model, drag materials onto parts, light it, watch a physically based picture converge, then render stills, animations and variants. It is modeled on its siblings formsurface (shell and service), formsculpt (launcher, setup and engine bridge) and formvis (the shared dock). Current state: v0.2.0, unreleased. The shell, the document and project file, the CPU path tracer and the command line render exist; everything else is planned with the version the plan gives it, and the sub-skills mark it planned. Since then the GPU path tracer (fsh-render-gpu, held to the CPU picture), device choice with a fallback to the CPU, the live viewport (WebGL2 raster modes, picking, gizmo, interaction regimes, an optional WebAssembly engine on WebGPU with a streamed fallback) and the engine-driven crash journal have landed. GPU work has run only on software drivers (lavapipe, SwiftShader, llvmpipe), and the path tracer in the window has not drawn a frame yet. After that came import (3MF, FBX, background jobs, reimport, embedded textures), STEP and IGES through FormCAD's kernel worker (fsh-cad), family hand-offs, material types, texture slots, graphs compiled to a material program, and the material library; both path tracers run material programs with textures (loaded by `fsh-commands/src/textures.rs`), image labels, thin film and dispersion. Then lighting (light spread, edge softness, IES profiles, light and shadow links, the Hosek-Wilkie physical sky, studio presets; pins, finite dome, backplate and background image are in the document but still being rendered), cameras (six projections, bladed and anamorphic apertures, pick focus), the image (grade, effects, AgX, ACES 1.3, OpenColorIO through fsh-ocio), 23 render passes with Cryptomatte, image writers in fsh-io, the render queue, and the denoisers (fsh-denoise, optional Open Image Denoise through fsh-oidn) landed; the GPU port of the denoiser is still being merged. At 0.9.0 shots, material variants and model sets, the configurator with rules, material templates and measurements (document blocks in fsh-scene with groups in fsh-commands), keyed animation with rigs, motion blur on the CPU (the GPU refuses moving scenes), and frame sequences and movies through a separate ffmpeg program landed, with their window pages and the timeline. At 0.10.0 advanced light transport landed on the CPU (nested media, volumes, subsurface, spectral rendering with dispersion, photon caustics, cutaways with caps, rounded edges, fibres) and the GPU ports of media, motion blur, spectral, cutaways and rounded edges; the GPU still refuses caustics, fibres, more than 4 overlapping media and more than 32 cutaways, and `transport.features` says which engine renders what. P16 (0.11.0) brought the editors: node editor preview and setups, the UV editor over fsh-uv, label placement, one Preferences table, shortcuts, workspaces, presentation mode and menus that fit under the bar. P17 (0.12.0) brought exchange: one export scene for GLB, OBJ, STL, PLY, USD and USDZ with fsh-bake for what a format cannot carry, web configurator and spin viewer folders, 3DM, IFC and USD import, and MaterialX and texture set import. P18 (0.13.0) brought agents: a headless service with its own consent and folder rules, MCP profiles with curated `formshot_*` tools, the agent guide in the engine (`help.guide`), a local scripting channel with a Python client, plugins run as processes, live links (`link.*`) with a Blender add-on, Keep in sync for hand-offs, a console in the window, and render setups and a self-test in `formshot-engine`. P19 (0.14.0) brought the render farm: the crate `fsh-farm` (token, sealed wire, bundles, worker, dispatcher; native only, no engine), the `farm.*` commands, `formshot-engine worker` and `farm`, and the Render Farm window; it has run as processes on loopback addresses, not yet on two separate machines in the builders' logs. Read the code before trusting a claim here. +formshot is the Form family's 3D product renderer by nodemode-ai (Apache-2.0): open a model, drag materials onto parts, light it, watch a physically based picture converge, then render stills, animations and variants. It is modeled on its siblings formsurface (shell and service), formsculpt (launcher, setup and engine bridge) and formvis (the shared dock). Current state: v0.2.0, unreleased. The shell, the document and project file, the CPU path tracer and the command line render exist; everything else is planned with the version the plan gives it, and the sub-skills mark it planned. Since then the GPU path tracer (fsh-render-gpu, held to the CPU picture), device choice with a fallback to the CPU, the live viewport (WebGL2 raster modes, picking, gizmo, interaction regimes, an optional WebAssembly engine on WebGPU with a streamed fallback) and the engine-driven crash journal have landed. GPU work has run only on software drivers (lavapipe, SwiftShader, llvmpipe), and the path tracer in the window has not drawn a frame yet. After that came import (3MF, FBX, background jobs, reimport, embedded textures), STEP and IGES through FormCAD's kernel worker (fsh-cad), family hand-offs, material types, texture slots, graphs compiled to a material program, and the material library; both path tracers run material programs with textures (loaded by `fsh-commands/src/textures.rs`), image labels, thin film and dispersion. Then lighting (light spread, edge softness, IES profiles, light and shadow links, the Hosek-Wilkie physical sky, studio presets; pins, finite dome, backplate and background image are in the document but still being rendered), cameras (six projections, bladed and anamorphic apertures, pick focus), the image (grade, effects, AgX, ACES 1.3, OpenColorIO through fsh-ocio), 23 render passes with Cryptomatte, image writers in fsh-io, the render queue, and the denoisers (fsh-denoise, optional Open Image Denoise through fsh-oidn) landed; the GPU port of the denoiser is still being merged. At 0.9.0 shots, material variants and model sets, the configurator with rules, material templates and measurements (document blocks in fsh-scene with groups in fsh-commands), keyed animation with rigs, motion blur on the CPU (the GPU refuses moving scenes), and frame sequences and movies through a separate ffmpeg program landed, with their window pages and the timeline. At 0.10.0 advanced light transport landed on the CPU (nested media, volumes, subsurface, spectral rendering with dispersion, photon caustics, cutaways with caps, rounded edges, fibres) and the GPU ports of media, motion blur, spectral, cutaways and rounded edges; the GPU still refuses caustics, fibres, more than 4 overlapping media and more than 32 cutaways, and `transport.features` says which engine renders what. P16 (0.11.0) brought the editors: node editor preview and setups, the UV editor over fsh-uv, label placement, one Preferences table, shortcuts, workspaces, presentation mode and menus that fit under the bar. P17 (0.12.0) brought exchange: one export scene for GLB, OBJ, STL, PLY, USD and USDZ with fsh-bake for what a format cannot carry, web configurator and spin viewer folders, 3DM, IFC and USD import, and MaterialX and texture set import. P18 (0.13.0) brought agents: a headless service with its own consent and folder rules, MCP profiles with curated `formshot_*` tools, the agent guide in the engine (`help.guide`), a local scripting channel with a Python client, plugins run as processes, live links (`link.*`) with a Blender add-on, Keep in sync for hand-offs, a console in the window, and render setups and a self-test in `formshot-engine`. P19 (0.14.0) brought the render farm: the crate `fsh-farm` (token, sealed wire, bundles, worker, dispatcher; native only, no engine), the `farm.*` commands, `formshot-engine worker` and `farm`, and the Render Farm window; it has run as processes on loopback addresses, not yet on two separate machines in the builders' logs. 0.15.0 was a showcase pass with no engine change: five demo projects in `assets/demos` replace Home's templates (the four built-in templates stay behind New project, imports and `file.new`), the README took the Form family layout with screenshots and renders (the full feature list and the limits are in `docs/FEATURES.md`), and the app wears the owner's two-bottle icon. Read the code before trusting a claim here. This pack exists so that an agent entering the repo cold edits the right layer, in the right order, under the project laws, and proves the result. @@ -32,7 +32,7 @@ Sub-skill paths resolve as `sub-skills/[skill-name]/SUB-SKILL.md` from this fold | Area | Location | Role | | --- | --- | --- | -| Rust engine | `native/` (one Cargo workspace, edition 2021, all crates 0.14.0) | everything that knows about scenes, rays and pixels | +| Rust engine | `native/` (one Cargo workspace, edition 2021, all crates 0.15.0) | everything that knows about scenes, rays and pixels | | fsh-core | `native/crates/fsh-core` | maths, Transform, Ray, Aabb, Rgb in ACEScg, typed ids and document keys, units, the deterministic sampler, warps and MIS heuristics; std only | | fsh-scene | `native/crates/fsh-scene` | the document, the command enum and its table, undo and redo with merge and groups, change levels, selection, `flatten()` to `RenderSnapshot`; the 18 material types, texture slots, material graphs, the compiler to programs and the preview bake; `lighting/` (IES table, link masks, pins, dome, pictures, reference evaluation, studio presets), camera lens fields, the image style, passes and `denoise_settings.rs`; the document blocks `shots`, `variants` (with model sets), `configurator`, `measure` and `animation` (tracks, keys, rigs), and `motion.rs` (motion blur settings and the shutter flatten); `mesh_replace.rs` (`mesh.replace`, a mesh's data replaced under the same key, the UV editor's one write) | | fsh-accel | `native/crates/fsh-accel` | two-level binned-SAH BVH, watertight triangle test, `Intersector` | @@ -56,6 +56,7 @@ Sub-skill paths resolve as `sub-skills/[skill-name]/SUB-SKILL.md` from this fold | Python client and plugins | `python/formshot/`, `plugins/`, `python/examples/` | `client.py` (discovery, connect, commands made from the catalogue, batches, events, link helpers), `plugin.py` (the author API) and `plugin_host.py` (the process that runs one plugin), `commands.md` (generated by `agents sync`, never edited by hand); `plugins/template/` and five example plugins; standard library only | | Blender add-on | `integrations/blender/formshot_link/` | the live link client for Blender 4.2 and later (`channel.py` and `sync.py` use the standard library only, `blender.py` is the one module that imports `bpy`); Apache-2.0 | | Material presets | `assets/library/` | 249 preset JSON files and the generated `materials/index.json`, and seven studio presets in `studios/`, bundled as a Tauri resource | +| Demo projects | `assets/demos/` | five `.fshot` projects with `thumb.webp` previews and `index.json` (order, names, tags, credits), Home's templates since 0.15.0 through `backend/app/project_library.py` (`demos`, `demo:[id]` templates copied on create); credits in `assets/demos/README.md` and NOTICE.md; bundled as the Tauri resource `demos` | | Sidecar entry | `backend/formshot_engine.py` | PyInstaller entry, frozen as `formshot-engine-backend` | | Desktop | `src-tauri/` (Tauri 2) | splash, sidecar start, window key, main window, `.fshot` association, updater | | Dispatcher | `./formshot`, `./build_app` and `setup/` | one script per task; `serve --headless`, `mcp` (`mcp/server.py`, `setup/mcp_stdio.py`), `script` (`setup/script.py`), `agents` (`setup/agents.py` with `agents_guide.py` and `agents_python.py`) | diff --git a/.claude/skills/formshot-rendering/references/tools.md b/.claude/skills/formshot-rendering/references/tools.md index 06675170..0aca3a33 100644 --- a/.claude/skills/formshot-rendering/references/tools.md +++ b/.claude/skills/formshot-rendering/references/tools.md @@ -1,6 +1,6 @@ # formshot tools -Generated from the engine's command catalogue (formshot 0.14.0) by `./formshot agents sync`; do not edit by hand. +Generated from the engine's command catalogue (formshot 0.15.0) by `./formshot agents sync`; do not edit by hand. ## Contents diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d81f47d..00588501 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,28 @@ Versions follow `v*.*.*` with dots. Dates are US Eastern time; entries before 0.9.0 give the UTC date. FormShot has not been released; these versions exist in the repository only. +## 0.15.0 · 2026-12-05 + +Showcase: five demo projects replace Home's templates, the README takes the Form family layout with screenshots and renders of the demos, and the app wears the owner's new icon. + +### Added + +- Five demo projects in `assets/demos/`: Headphones and a Racing helmet (our own models, Apache-2.0), the chess set "A Beautiful Game" (the MaterialX Project and Ed Mackey, CC BY 4.0), the "Materials Variants Shoe" (Shopify, CC BY 4.0) and the "Toy Car" (Guido Odendahl and Eric Chadwick, CC0), the last three from the Khronos Group's glTF Sample Assets with the chess set's and the shoe's textures reduced to 1024 px. Each keeps an On black and an On white shot over one set of lights; the headphones keep a Finish variant set (Black, Silver) and the shoe a Colourway set (Midnight, Beach, Street). Credits in `assets/demos/README.md` and NOTICE.md. +- The service lists the demos as templates (`demo:`, category Demo, with a credit line), serves their previews at `/api/project-templates/demo/{demo}/thumb`, and creating a project from one copies the demo into the library as a saved project of your own. The desktop bundle carries the demos beside the material library. +- `docs/FEATURES.md`: the full feature list, rendering on a device and the known limits, moved out of the README. + +### Changed + +- Home's Templates show the five demos with their rendered previews instead of the four built-in templates, which stay behind New project, model imports and `file.new`. Choosing a demo shows its credit and opens the copy. +- The README follows the Form family layout: a hero screenshot, a Features table of four screenshots, a gallery of every demo On black and On white, and credits for the demo models. +- The owner's new icon, a chrome flask and a black square bottle, replaces the aperture in the desktop app's icon set, the window's mark and the README. + +### Checked + +- tsc and vite build; the backend's demo listing, copying and refusals against a temporary library; Home in headless Chrome with the CPU throttled 4 times and a slow network: the window revealed once, every demo preview in its reserved 16:9 box, layout shift 0. The helmet, headphones, shoe and chess demos opened from Home and settled in the window's viewport, and both shots of all five applied and rendered as intended in the engine; `formshot-engine render --all-shots` rendered a demo's two shots. +- Every new string translated into the 25 languages, with regional words for es-MX and fr-CA. +- Not yet: the desktop app with the bundled demos, Windows and macOS. + ## 0.14.0 · 2026-12-05 Render farm: other machines render a project's shots, configurations or frames for this one, over connections that only machines sharing one farm token can open, and every picture equals what this machine would have rendered. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ef8c635a..b48ac88e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Thank you for helping. FormShot is the Form family's 3D product renderer: open a model, dress its parts in materials, light it and render it in one window, with no account, -running on your own computer, and open to agents over MCP. It is at 0.14.0 and not +running on your own computer, and open to agents over MCP. It is at 0.15.0 and not released yet, so the most useful help now is careful use and clear reports. ## Where to start diff --git a/NOTICE.md b/NOTICE.md index b7da3b27..a317ad61 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -4,7 +4,7 @@ FormShot is licensed under the Apache License 2.0 (see `LICENSE`). Copyright 202 This file is the human list: what each component is and why it is there. `THIRD-PARTY-NOTICES.txt` lists every package that ships with its version and licence; `./formshot notices` replaces it with the full licence texts (copyright lines, conditions and disclaimers) from the installed Python packages, `frontend/package-lock.json`, `native/Cargo.lock`, `src-tauri/Cargo.lock` and the cargo registry, and `./formshot notices --check` checks it covers what ships. It ships in every installer beside this file, is frozen into the service, and is shown in Preferences under About. -FormShot 0.14.0 is unreleased. Licences marked "to confirm" below were not read from package metadata on the machine that wrote this file, and are confirmed when the lock files are complete and `./formshot notices` runs. +FormShot 0.15.0 is unreleased. Licences marked "to confirm" below were not read from package metadata on the machine that wrote this file, and are confirmed when the lock files are complete and `./formshot notices` runs. ## Included in this repository @@ -86,6 +86,17 @@ The presets in `assets/library/` are our own work under Apache-2.0. Their number | USDA AMS Sucrose Conversion Table (Appendix XV) | US government work | refractive index of sugar solutions | | MFA Boston CAMEO gemstone table, GIA Gem Encyclopedia, LibreTexts Gemology, orders of magnitude of luminance | facts cited, no text or tables copied | gem indices and dispersion, lamp and display luminance | +## Demo projects + +The five projects in `assets/demos/` ship with the app and open from Home. Three are made from models in the Khronos Group's glTF Sample Assets; `assets/demos/README.md` says what was changed in each. + +| Work | License | Where | +| --- | --- | --- | +| "A Beautiful Game", the MaterialX Project, ASWF (2020), converted to glTF by Ed Mackey (2022); textures reduced to 1024 px | CC BY 4.0 | `assets/demos/chess/` | +| "Materials Variants Shoe", Shopify (2021); textures reduced to 1024 px | CC BY 4.0 | `assets/demos/shoe/` | +| "Toy Car", Guido Odendahl and Eric Chadwick (2020) | CC0 1.0 | `assets/demos/toycar/` | +| Headphones and racing helmet, original models (nodemode-ai) | Apache-2.0, our own work | `assets/demos/headphones/`, `assets/demos/helmet/` | + ## Published data and specifications used by the engine | Source | License or status | Used for | diff --git a/README.md b/README.md index 7bc281e5..e07f66b0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- FormShot icon: a lens ring around a six-blade aperture in orange, pink, violet and blue on a dark rounded square + FormShot icon: a chrome flask and a black square bottle with a chrome cap on a reflecting floor in a dark rounded square

FormShot

@@ -11,7 +11,7 @@

- version 0.14.0 + version 0.15.0 Rust TypeScript macOS, Windows, Linux @@ -20,17 +20,19 @@

- Run it from source + Run FormShot from source · + See what it renders

-
-

- Screenshots arrive with the first release. + FormShot's workspace with the Racing helmet demo settled in the viewport: a white open-face helmet with an orange stripe, aviator goggles strapped round it and a brown leather chin strap, on the dark hero studio, with the material library on the left and the scene tree of the helmet's parts on the right +
+ The Racing helmet demo opened from Home: the path-traced viewport settled on the On black shot, the material library on the left and the helmet's parts in the scene tree.

Features · + Renders · In the box · Agents · Under the hood · @@ -38,8 +40,6 @@ Run from source

-
-
@@ -61,102 +61,75 @@
-
- ## Features -FormShot is at 0.14.0 and has not been released. This is what exists in the repository today: - -- **The window.** Home with recent projects, four starting templates and a Trash you can restore from; the workspace with the live viewport, a material library panel, an inspector (Scene, Camera, Environment, Image and more) and a status bar; menus, a command palette, Preferences built from one searchable table, a shortcut editor with key maps, workspaces, 29 themes and the interface in English and 23 more languages. -- **The live viewport.** Rendered, Material preview, Solid and Wireframe modes (the last three drawn in the window with WebGL2); click and box selection with a selection outline; a move, rotate and scale gizmo in world or local space with snapping; navigation presets for mouse, trackpad and touch; Frame Selection, Frame All, the six views and composition guides; light and camera outlines. While you move the camera the path tracer drops to fast low-resolution passes and climbs back to full resolution when you stop. A chip says what is drawing, on which device, and why the window is not drawing itself when it is not; the island menu picks the device, the viewport quality and adaptive sampling. -- **The document.** A scene of groups, parts, lights and cutaways over shared meshes and materials, edited only through named commands, each one undoable, with merging for drags and grouping for multi-step edits. -- **The project file.** `.fshot` projects saved as a stored ZIP, written the same way byte for byte each time. The engine keeps a command journal with rotating snapshots while you work, and `file.recover_list` and `file.recover` bring a session back after a crash (from the palette, MCP or the command line; there is no recovery dialog yet). -- **The CPU path tracer.** The reference renderer: a deterministic sampler, a two-level BVH, next-event estimation with multiple importance sampling, environment importance sampling, the layered surface model, a procedural sky and a physical (Hosek-Wilkie) sky with its sun, a studio sweep, a shadow-catcher floor, every lens of the Camera page, the develop step and its own a-trous denoiser. -- **The GPU path tracer.** The same picture as the CPU path tracer, written for Vulkan, Metal, Direct3D 12 and OpenGL, with its own BVH traversal and hardware ray queries where the device offers them. Adaptive sampling and reduced-resolution passes work on both engines. When the graphics card cannot render a scene, or fails while rendering, the processor takes over and a note says why. See [`docs/GPU-ENGINE.md`](docs/GPU-ENGINE.md). -- **The engine in the window.** `./formshot engine wasm` builds the engine as WebAssembly so the window can path-trace through WebGPU itself, with a start-up guard that falls back to streamed frames from the service and a self-check that compares a small view from the graphics card with the processor's and turns WebGPU off on a machine where they disagree. It develops the picture on the graphics card the way the processor does. See [`docs/VIEWPORT.md`](docs/VIEWPORT.md) and the limits below. -- **Import.** Readers for glTF and GLB, OBJ with MTL, STL, PLY, 3MF and FBX (FBX in the desktop engine) with a clean-up pass (weld, normals, tangents, repeated parts also when rotated or mirrored, units with a guess you can check, up axis, standing on the floor). An import sheet shows what a file holds before anything changes, imports run in the background with progress and a Cancel that leaves the document untouched, and each import is one undo step. Texture maps arrive as material texture slots and PNG, JPEG, HDR and EXR images are kept inside the project. File > Reimport reads changed files again and keeps each part's material and identity. Drop files on the viewport or on Home. See [`docs/IMPORT.md`](docs/IMPORT.md). -- **STEP and IGES.** Opened by FormCAD's kernel worker, a separate program FormShot downloads on request and checks file by file (`./formshot cad fetch`, or Preferences > CAD Import). Assemblies, colours and shared parts come in at a quality you choose, the file is kept in the project, and Scene > Re-tessellate CAD Parts rebuilds parts at another quality without losing their materials. -- **Hand-offs from the Form apps.** What FormSculpt and FormFabric send through their GoF folder, FormSurface's painted maps and FormCAD's models are picked up while the window is open and offered for your yes first (decline, open once, always allow that app). -- **Materials.** One layered surface model with 18 types (plastics, metals with ten measured colours, paints, glass, liquids, gems, rubber, fabric, ceramic, emissive, wood, stone and more), texture slots with projections and transforms, and a node graph editor with image, maths, ramp, normal map and bump nodes and ten anti-aliased procedural patterns, image labels projected onto parts and placed with a click, thin-film iridescence (soap bubbles, anodised metals) and dispersion in glass and gems. Both path tracers render all of it, with PNG, JPEG, HDR and EXR textures filtered by the pixel's footprint; an image you choose is stored inside the project, and editing a material refreshes only the parts that wear it on either tracer. The Material page in the inspector edits them. See [`docs/MATERIALS.md`](docs/MATERIALS.md). -- **The material library.** 249 presets in twelve categories made from measured optical data and published tables, each citing its sources; search, favourites, recent and your own saved presets; thumbnails rendered by FormShot's own path tracer; apply by double-click or by dragging onto a part, to a part, its group or every part with the same material, as one undo step. See [`docs/LIBRARY.md`](docs/LIBRARY.md). -- **The node editor.** A window for a material's graph: a node browser whose search reaches the operations inside nodes, wires that dim what cannot connect and offer only the nodes that fit when dropped on empty canvas, nodes inserted onto a wire, six node setups and your own, Tidy, and a live preview of the material on a ball under the studio or the scene's light, rendered on its own worker so the viewport never waits. Every finished gesture is one undo step. See [`docs/GRAPH-EDITOR.md`](docs/GRAPH-EDITOR.md). -- **The UV editor.** Unwrap, relax, pack and arrange a mesh's UV sets with FormShot's own UV engine (`fsh-uv`), see seams, stretch and texel density in millimetres, move, scale and turn charts, mark seams, and export the layout as SVG or PNG. The layout is written back through one undoable command, `mesh.replace`. See [`docs/UV-EDITOR.md`](docs/UV-EDITOR.md). -- **Label placement.** Labels are placed by dragging their footprint over the part in the viewport (slide, scale, rotate, snap), and an image dropped on a part prints there as a label. See [`docs/LABELS.md`](docs/LABELS.md). -- **Preferences, shortcuts and workspaces.** Every preference is one row of one table with a help text, a default and a reset, a search, and an export and import file; the shortcut editor rebinds any command with a prompt on conflicts, ships three key maps and exports yours as a file; five workspaces and your own, Full View, and a draggable order of inspector sections. See [`docs/PREFERENCES.md`](docs/PREFERENCES.md), [`docs/SHORTCUTS.md`](docs/SHORTCUTS.md) and [`docs/WORKSPACES.md`](docs/WORKSPACES.md). -- **Lighting.** Point, sphere, spot, rect, disc and sun lights with spread, edge softness, IES profiles and light and shadow linking; an environment with pins, a finite dome, a backplate and a background image; the procedural and physical skies; seven studio presets of FormShot's own and your saved ones, applied around the product at its size in one undo step. The Lighting and Environment pages edit them. See [`docs/LIGHTING.md`](docs/LIGHTING.md). -- **Cameras.** Saved cameras; perspective, shifted perspective, orthographic, fisheye up to 360 degrees and equirectangular and cylindrical panoramas; depth of field with bladed apertures and an anamorphic squeeze; Pick focus with a click in the viewport. The Camera page edits them. -- **The picture.** The develop step grades (exposure, white balance, highlights, shadows, whites, blacks, contrast, saturation), adds chromatic aberration, vignetting, bloom and sharpening, and shows the result through PBR Neutral, AgX, ACES 1.3, sRGB, raw or an OpenColorIO config's display, view and looks, read by FormShot's own OpenColorIO reader. Changing any of it keeps every sample. The Image page edits it. See [`docs/IMAGE.md`](docs/IMAGE.md). -- **Pictures.** PNG and Radiance HDR read and written, OpenEXR read (scanline, uncompressed or RLE, ZIP, PIZ and PXR24), JPEG read; final pictures written by FormShot's own writers as PNG (8 and 16 bit), JPEG, TIFF (8, 16 and 32-bit float), multi-layer OpenEXR (half or float; ZIP, ZIPS or PIZ) and layered PSD (8 or 16 bit). -- **Render passes and the queue.** 23 passes on both path tracers: nine light passes that add up to the beauty, depth, normal, position, albedo, roughness, uv, object and material ids, alpha, sample count, shadow, ambient occlusion, the catcher's shadow and reflection, and Cryptomatte object and material mattes. The Final Render window puts the output size first, then samples, camera, passes, format, file name template, folder and denoiser; the render queue renders jobs one after another in the background while the viewport keeps working, and writes each through a part file so a cancelled job leaves nothing half-written. See [`docs/OUTPUT.md`](docs/OUTPUT.md). -- **Denoising.** FormShot's own edge-aware denoiser (Fast, Balanced and High, guided by the film's albedo, normal, depth and variance) on the processor and, for the viewport, on the graphics card; Intel Open Image Denoise downloaded on request, checked against its pinned SHA-256 and loaded at run time, with the own denoiser standing in and saying why when it is missing. See [`docs/DENOISE.md`](docs/DENOISE.md). -- **Shots.** Named views kept in the project: each keeps the camera, the image style, the environment and ground, the render settings, the lights, what is shown and the chosen variants, with flags for what applying it restores. Apply one in one undo step, see which no longer match the document, and render all of them through the queue with the shot's name in the file name. The Shots page edits them. See [`docs/SHOTS.md`](docs/SHOTS.md). -- **Material variants and model sets.** Variant sets capture the materials of chosen parts (black, white, walnut), and model sets show one group of parts and hide the others (with stand, without); choosing either is one undo step, and each shot remembers its choices. -- **The configurator.** Options with choices (colour, trim, accessories) whose actions put materials on parts, show or hide parts, choose variants and model sets or apply a shot, with requires and excludes rules between options. It lists every valid configuration, moves other options to the nearest valid one when a choice breaks a rule, checks itself for impossible choices, and renders every configuration from one command, `config.render_all`, with `{config}` and `{variant}` in the file names. See [`docs/CONFIGURATOR.md`](docs/CONFIGURATOR.md). -- **Material templates.** Saved rules that dress imported parts by material name, part name or file path, applied after an import or during it, previewed before they change anything, and captured from a dressed document; two of FormShot's own match engineering material names and colour words. See [`docs/TEMPLATES.md`](docs/TEMPLATES.md). -- **Measurements.** Distances (direct or along an axis), size boxes in world or local axes and angles, pinned to parts so they follow them, listed in the document's display unit, drawn over the viewport with vertex snapping and, when asked, into final renders. See [`docs/MEASURE.md`](docs/MEASURE.md). -- **Animation.** A timeline with keys on part placement, camera position, target, lens and focus, material parameters and light power, colour and temperature, with step, linear, smooth and ease interpolation; turntables, camera orbits and camera paths as rigs; the timeline panel with key lanes, curves, scrubbing and playback in the viewport. See [`docs/ANIMATION.md`](docs/ANIMATION.md). -- **Motion blur.** Parts and the camera move while the shutter is open, set as a fraction of a frame or a shutter angle and centred on, opening at or closing at the frame; both path tracers render it. -- **Light transport.** Liquids, glass and gems absorb light by their depth, parts nest by medium priority (a drink in a glass), volumes scatter (smoke, fog) and subsurface parts glow from within by a random walk (wax, marble, milk); spectral rendering follows wavelengths for dispersion in prisms and gems; photon caustics focus light through glass and off metal onto surfaces; cutaways open parts with caps in the part's material or a flat colour; rounded edges give sharp CAD corners a small radius at render time; fibres grow on velvet, felt, carpet and fur. `transport.features` says which engine renders each: the GPU renders media, spectral, cutaways and rounded edges, and hands caustics and fibres to the CPU with a note. See [`docs/TRANSPORT.md`](docs/TRANSPORT.md) and [`docs/MATERIALS.md`](docs/MATERIALS.md). -- **Frame sequences and movies.** Render Animation renders every frame (or a range and a step) through the render queue as PNG, JPEG, TIFF, OpenEXR or PSD and encodes MP4, WebM, MOV (ProRes) or GIF with ffmpeg, run as a separate program: one the person set, the Form family's shared download (fetched on request and checked against pinned SHA-256 values) or the one on the PATH. Each frame is its own queue job, and the queue shows the sequence as one row. See [`docs/VIDEO.md`](docs/VIDEO.md). -- **Presentation mode.** F5 shows the path-traced picture alone on black, with a slim strip to step through the shots and switch the configurator's options for a client; Esc leaves, and the document is exactly as it was. See [`docs/PRESENTATION.md`](docs/PRESENTATION.md). -- **Model export.** `export.model` writes the document as GLB (with the material extensions, texture transforms, variants, cameras and lights in physical units), OBJ with its MTL, STL, PLY, usda, usdc and USDZ for AR, through one export scene every writer reads. Materials a format cannot carry as maps (graphs, labels, projections, slot settings) are baked into pictures by FormShot's own baker when you ask, and a GLB can carry each material's and light's exact values so FormShot reopens it unchanged (fourteen test scenes came back within 0.002 of the original pictures; the seven of an independent check within 0.000003). Every approximation is a warning in the reply. See [`docs/EXPORT.md`](docs/EXPORT.md) and [`docs/BAKE.md`](docs/BAKE.md). -- **The web configurator.** `export.web` turns the configurator into a static folder a customer opens from disk or any web host: FormShot's own small 3D viewer, a path-traced picture for every valid configuration, or both, with the rules kept. See [`docs/WEB-CONFIGURATOR.md`](docs/WEB-CONFIGURATOR.md). -- **The spin viewer.** `export.spin` renders views around the product through the render queue and writes a folder with a sprite sheet and a page that turns the product as the viewer drags. See [`docs/SPIN-VIEWER.md`](docs/SPIN-VIEWER.md). -- **USD, Rhino 3DM and IFC.** Readers of FormShot's own for USD (usda, usdc and USDZ packages), Rhino 3DM files and IFC building models, through the same clean-up and import sheet as every other model. See [`docs/USD.md`](docs/USD.md), [`docs/USDZ.md`](docs/USDZ.md), [`docs/RHINO.md`](docs/RHINO.md) and [`docs/IFC.md`](docs/IFC.md). -- **Material import.** MaterialX documents and PBR texture sets (folders or ZIP archives of maps) become ordinary materials with their images kept in the project, in one undo step. See [`docs/MATERIAL-IMPORT.md`](docs/MATERIAL-IMPORT.md). -- **The command line.** `./formshot render model.glb out.png --samples 256` renders a picture without the window. `./formshot cli render model.glb out.mp4 --turntable 36` renders a turntable movie, and `--frames A-B` renders part of a project's animation. `./formshot cli` runs the engine's own program, `formshot-engine`, with `render`, `info`, `convert` (with import options), `probe`, `reimport`, `devices`, `bench`, `selftest`, `guide`, `catalogue`, `dispatch`, `version` and `help`. Run so far: the sample scene renders byte-identical on 1 and 2 threads, a GLB and `.fshot` round trip renders the same picture from both files, and `bench` renders it on the processor, software Vulkan and software OpenGL within 0.00001 mean difference of each other. -- **Render setups and the self-test.** `render` takes a studio preset, a shot, a configuration and a saved camera by name (`--studio`, `--shot`, `--config`, `--camera`), every shot or configuration in one run (`--all-shots`, `--all-configs`), a file name template (`--name "{config} - {shot}"`) and `--skip-existing`, so a stopped batch is finished by running it again. `formshot-engine selftest` renders a built-in 256 by 160 scene on every device `devices` lists and prints each device's difference from the CPU picture and its time as a short Markdown report. See [`docs/CLI.md`](docs/CLI.md). -- **The headless service and MCP profiles.** `./formshot serve --headless` runs the service with no window, and `./formshot mcp` starts one when none answers, so an MCP client with no window open can open a model, dress it, light it and render it. With no window to ask, the setting `agents.headless` (allow or refuse) decides, and files are read and written only in the projects folder, `~/.formshot/agent-output`, the temporary folder and the folders in `FORMSHOT_AGENT_PATHS`. Outside agents get one of three tool profiles, `standard` by default (curated `formshot_*` tools plus every read-only command), `full` or `restricted`. See [`docs/HEADLESS.md`](docs/HEADLESS.md) and [`docs/MCP.md`](docs/MCP.md). -- **The agent guide.** The engine carries a guide for agents in twelve short pages with examples that run (`help.guide`, `formshot_guide`, `formshot-engine guide`): the rules first, then opening and framing, dressing parts, studio and lights, camera, rendering, shots, export, scripting and plugins. `./formshot agents sync` copies the pages into the rendering skill and `./formshot agents check` checks that every example names a command and arguments the catalogue allows. -- **The scripting channel and Python.** The service listens on a free port of 127.0.0.1 and writes a discovery file with a token in `~/.formshot/scripting.json`; a program that reads it runs any catalogue command, runs a batch as one undo step and subscribes to document events. `./formshot script my_script.py` runs a Python script with FormShot's standard-library client, which makes every command a method (`fs.material.apply(...)`), and `python/examples/` holds three scripts. See [`docs/SCRIPTING.md`](docs/SCRIPTING.md) and [`docs/PYTHON.md`](docs/PYTHON.md). -- **The console.** View > Console (Ctrl or Cmd+backquote) opens a console over the bottom of the viewport: type `material.apply key=3 part=12` or a raw JSON line, with history and completion, and see the commands scripts, plugins, links and MCP agents send, each source in its own colour. Preferences has a page, Agents and Scripting, for the three agent settings. -- **Plugins.** A plugin is a folder with a manifest that adds a material pack, commands, panels or event handlers. Each plugin with code runs as its own process with the powers of a script, starts disabled and asks for your yes when you enable it. The Plugins window lists, enables, restarts, installs and removes them; five examples and a template are in `plugins/`. See [`docs/PLUGINS.md`](docs/PLUGINS.md). -- **Live links and the Blender add-on.** `link.sync` keeps the objects of another program in a group of FormShot's own, one undo step per change, while FormShot keeps what the person did to materials, names and visibility. FormShot Link, a Blender 4.2 add-on in `integrations/blender/`, sends meshes, placement, a first material and custom properties, syncs after a quarter second of quiet and mirrors Blender's camera. It has been run in headless Blender 4.2 and 4.5 against a stand-in for the channel, not in Blender's window. See [`docs/LIVE-LINK.md`](docs/LIVE-LINK.md) and [`integrations/blender/README.md`](integrations/blender/README.md). -- **Keep in sync for hand-offs.** A switch on a hand-off from FormSculpt, FormSurface (when it sends a mesh) or FormCAD reads its model file again whenever the app saves a new version, keeping part ids and materials, as one undo step, and waits while an import, a render or an open edit would conflict. See [`docs/IMPORT.md`](docs/IMPORT.md). -- **The agent dock.** A shell, Chat and tabs for Claude Code, Codex, Cursor and Antigravity, each connected to FormShot's MCP server. - -Everything else in this README marked planned is on the plan with the version it is due in, and is not built yet. - -### Rendering on a device + + + + + + + + + +
+ The Headphones demo with the right cup's shell selected and outlined in orange, and the Material page listing the materials the parts wear, with the soft-touch black coating of the selected part highlighted +
The Headphones demo with a cup shell selected and the Material page open. +

Measured materials

+ 249 library presets made from measured optical data, applied by double-click or drag to a part, its group or every part with the same material, over one layered surface model with texture slots, a node graph, labels, thin film and dispersion. +
+ The Chess set demo on the dark hero studio with the Lighting page open, listing the key softbox, two rim strips and a top kicker, and the key softbox's size, power, temperature and ray switches +
The Chess set demo under the Dark hero studio, its four lights on the Lighting page. +

Studios and lights

+ Seven studio presets fitted to the product's size in one step, rect, disc, sphere, spot and sun lights with spread, softness, IES profiles and linking, skies, a backplate and a shadow-catcher floor. +
+ The Running shoe demo with the Shots page open: the On white and On black shots, and the Colourway variant set with Midnight, Beach and Street +
The Running shoe demo with its two shots and its Colourway set. +

Shots, variants and configurations

+ Shots keep a camera, a look and the chosen variants; variant sets swap the materials of chosen parts; the configurator renders every valid combination. Render them all through the queue, or on a render farm. +
+ FormShot's Home with the five demo projects as recent projects and as templates: Headphones, Racing helmet, Chess set, Running shoe and Toy car, each with a rendered preview +
Home, with the five demos as templates and in the recent projects. +

Start from a demo

+ Five ready-made projects open from Home as a copy of your own, each with an On black and an On white shot, or drop your own model and FormShot sets it in a studio. +
+ +Every feature in more detail, with rendering on a device and the known limits: [`docs/FEATURES.md`](docs/FEATURES.md). -```sh -./formshot cli devices # the processor and every graphics card, with what each can do -./formshot render model.glb out.png --device gpu # cpu (default), gpu (the best card) or gpu: from devices -./formshot cli bench # time each device on the sample scene and compare its picture with the CPU's -``` +## Rendered in FormShot -The output names the device that drew the picture, and adds a `note:` line when the graphics card refused or failed and the processor drew instead. In the window the same choice is in Preferences > Rendering and in the viewport's island menu. - -**Trying the GPU engine without a graphics card (for developers).** Mesa's software Vulkan driver, lavapipe, runs the GPU engine on the processor and even offers ray queries. Install it (`mesa-vulkan-drivers` on Debian and Ubuntu), then point the Vulkan loader at its ICD file: `VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json ./formshot cli devices` (the file name varies by distribution and architecture). Without a Vulkan driver the engine may still find OpenGL through Mesa's llvmpipe. Software rendering is slow and says nothing about speed on real hardware; it is for checking that the GPU picture matches the CPU picture. - -### Known limits - -- GPU rendering has been verified only on software Vulkan (lavapipe and SwiftShader) and software OpenGL (llvmpipe), not on a physical graphics card. -- Metal and Direct3D 12 have not been run. -- Hardware ray queries have run only on a software implementation (lavapipe), never on ray-tracing hardware. -- The path tracer in the window (WebGPU) drew corrupted 8 by 4 pixel blocks on an Apple Mac in the desktop app, a fault that was not reproduced here (the software WebGPU compiler runs out of memory on the kernel). Its self-check is meant to catch this and hand the viewport to streamed frames; it has not yet met a real faulty graphics card. -- The develop step with every effect on takes about 130 ms per 1080p frame on two cores; ACES 2.0 views of OpenColorIO configs show PBR Neutral, and the engine reports them as refused. -- A queued 3840x2160 render with every pass needs about 5 GB of memory on the processor; Open Image Denoise has been fetched and run on Linux x86_64 only; the window's own WebGPU engine shows the viewport without the graphics-card denoiser. -- Region render works on the GPU engine only: on the processor `render.region` answers that regions are not supported on that device yet and the whole picture renders. -- Edits made with the command line run in their own engine process and do not show in an open window; edits by agents through the service and MCP do. -- Material preview shows texture slots, graphs and labels from small maps baked on a 1 m square, so projected and procedural materials are approximated there; the Rendered mode is exact. -- Textured materials in the window's own WebGPU path tracer have run only against a stand-in viewport; dispersion stays within the three colour channels, and shadows through glass are opaque. -- STEP and IGES through the CAD worker have run on Linux x86_64 only; the worker reports no progress inside one body. -- FBX is read by the desktop engine, not by the engine in the browser. -- The GPU engine hands caustics and fibres to the CPU, and also scenes where more than 4 transparent or subsurface parts overlap, more than 32 cutaways, a flat-colour cap on a part with a thin film, or rounded edges next to a cap; the output says why. -- Playback in the streamed viewport shows two or three pictures per second; the window's own WebGPU engine does not use the lighter playback preview. -- MP4 from the Form family's ffmpeg build is H.264 only through a hardware encoder and otherwise MPEG-4 Part 2; an ffmpeg with libx264 that the person installed gives H.264. Movies have been encoded on Linux only. -- The UV editor unwraps one very large chart slowly (about 40 s for 65000 triangles in a debug build) and packs chart bounding boxes, not their outlines; label footprints are drawn as for a pinhole camera, so on fisheye and panoramic cameras they are approximate. -- **The render farm.** `formshot-engine worker` on other machines renders the jobs of a batch (every shot, every configuration, a frame range or the current view) for the machine you work on: the project and the files it references travel once as one bundle, pictures come back through part files into one folder, and each equals the local render of the same job. One shared farm token guards the connections (sealed with X25519, HKDF and ChaCha20-Poly1305); a worker listens on 127.0.0.1 unless you pass `--bind`. The Render Farm window, the Final Render window's Render on farm section, seven `farm.*` commands and `formshot-engine farm token`, `workers` and `submit` drive it. Run so far on loopback addresses, never on two separate machines. See [`docs/FARM.md`](docs/FARM.md). -- The Tauri desktop build has been built and run only by the owner, on macOS, at 0.6.0. + + + + + + + + + + + + + + + + + + + + + +
Over-ear headphones in black soft-touch coating with copper rings, floating over a dark floorThe same headphones under the same lights on white
A white open-face helmet with an orange stripe, aviator goggles and a leather chin strap, floating on blackThe helmet in the bright catalogue studio on white
A carved chess set on its board, the pawns topped with glass, on blackThe chess set under the same lights on white
A blue running shoe with a white sole on blackThe running shoe in the bright catalogue studio on white
A green toy car with flames on the bonnet, chrome trim and glass windows, on blackThe toy car under the same lights on white
+ +Each demo's two shots, rendered by FormShot's CPU path tracer at 1200 by 750 and 128 samples with its own denoiser. On black is the Dark hero studio with a soft floor reflection. On white keeps the same lights and materials with a white backplate that reflections never see, except for the helmet and the shoe, which use the Bright catalogue studio. All five open from Home. ## Everything in the box
-

Today (0.14.0)

- Home and projects · Scene tree · CPU path tracer · GPU path tracer · Live viewport with raster modes, selection and gizmo · Region render on the GPU · Device choice and bench · Lights with spread, softness, IES and linking · Environment pins, dome, backplate and background image · Physical sky · Studio presets · Every common lens, bladed apertures and Pick focus · Grade, lens effects and display transforms · OpenColorIO configs · WebGPU self-check · 23 render passes with Cryptomatte · The Final Render window and the render queue · PNG, JPEG, TIFF, OpenEXR and PSD output · Own denoiser on CPU and GPU · Open Image Denoise on request · .fshot projects · Crash recovery commands · Import with background jobs and reimport · STEP and IGES through FormCAD's kernel · Hand-offs from the Form apps · Material types, texture slots, the node graph and labels, rendered on both tracers · Thin film and dispersion · Material library with 249 presets · Shots · Material variants and model sets · The configurator with rules and render-all · Material templates · Measurements · Keyed animation and the timeline · Turntables, orbits and camera paths · Motion blur on both tracers · Frame sequences and movies through ffmpeg · Nested media, volumes and subsurface · Spectral rendering · Photon caustics · Cutaways with caps · Rounded edges · Fibres · Node editor with setups and a live preview · UV editor · Label placement in the viewport · Preferences table with search and export · Shortcut editor with key maps · Workspaces · Presentation mode · Model export (GLB, OBJ, STL, PLY, USD, USDZ) with material baking · The web configurator · The spin viewer · USD, Rhino 3DM and IFC readers · MaterialX and texture set import · Command line render with setups by name and a self-test · MCP with profiles · Headless service · Agent guide · Scripting channel and Python · Console · Plugins · Live links and the Blender add-on · Keep in sync for hand-offs · Agent dock · The render farm: workers on other machines, one shared farm token, bundles of a project and its files, batches of shots, configurations or frames, the Render Farm window and formshot-engine worker and farm +

Today (0.15.0)

+ Home and projects · Five demo projects as templates · Scene tree · CPU path tracer · GPU path tracer · Live viewport with raster modes, selection and gizmo · Region render on the GPU · Device choice and bench · Lights with spread, softness, IES and linking · Environment pins, dome, backplate and background image · Physical sky · Studio presets · Every common lens, bladed apertures and Pick focus · Grade, lens effects and display transforms · OpenColorIO configs · WebGPU self-check · 23 render passes with Cryptomatte · The Final Render window and the render queue · PNG, JPEG, TIFF, OpenEXR and PSD output · Own denoiser on CPU and GPU · Open Image Denoise on request · .fshot projects · Crash recovery commands · Import with background jobs and reimport · STEP and IGES through FormCAD's kernel · Hand-offs from the Form apps · Material types, texture slots, the node graph and labels, rendered on both tracers · Thin film and dispersion · Material library with 249 presets · Shots · Material variants and model sets · The configurator with rules and render-all · Material templates · Measurements · Keyed animation and the timeline · Turntables, orbits and camera paths · Motion blur on both tracers · Frame sequences and movies through ffmpeg · Nested media, volumes and subsurface · Spectral rendering · Photon caustics · Cutaways with caps · Rounded edges · Fibres · Node editor with setups and a live preview · UV editor · Label placement in the viewport · Preferences table with search and export · Shortcut editor with key maps · Workspaces · Presentation mode · Model export (GLB, OBJ, STL, PLY, USD, USDZ) with material baking · The web configurator · The spin viewer · USD, Rhino 3DM and IFC readers · MaterialX and texture set import · Command line render with setups by name and a self-test · MCP with profiles · Headless service · Agent guide · Scripting channel and Python · Console · Plugins · Live links and the Blender add-on · Keep in sync for hand-offs · Agent dock · The render farm: workers on other machines, one shared farm token, bundles of a project and its files, batches of shots, configurations or frames, the Render Farm window and formshot-engine worker and farm

Planned

@@ -169,6 +142,8 @@ The output names the device that drew the picture, and adds a `note:` line when
+FormShot opens on **Home**: your recent projects with previews, the five demo projects as templates (Headphones, Racing helmet, Chess set, Running shoe and Toy car, each opened as a copy of your own), and a Trash you can restore from, over a project library on your own disk. New project starts an empty studio, and a model dropped anywhere in the window starts a project around it. The demos and their credits are listed in [`assets/demos/README.md`](assets/demos/README.md). + ## Built for agents The engine's 280 commands (113 document commands, 38 engine commands, 114 import, CAD, hand-off, material, library, lighting, camera, image, output, denoise, shot, variant, configurator, template, measurement, animation, video, transport, graph, UV, export, material import, guide, live link and render farm commands, and 15 aliases) are listed in one catalogue built by `native/crates/fsh-commands`; the window, the command line and the MCP server all call them. @@ -205,7 +180,7 @@ The agent dock (Cmd or Ctrl+J) holds a shell, Chat and tabs that run the real Cl ## Download -There is no download yet. FormShot is unreleased; its builds will be compiled and released from [FormCompiler](https://github.com/nodemode-dev/formcompiler) when the first release is made. The render farm landed in 0.14.0, and the release pipeline (P20) comes next. Until then, run it from source. +There is no download yet. FormShot is unreleased; its builds will be compiled and released from [FormCompiler](https://github.com/nodemode-dev/formcompiler) when the first release is made. The render farm landed in 0.14.0 and the demo projects in 0.15.0; the release pipeline (P20) comes next. Until then, run it from source. ## Run it from source @@ -219,10 +194,10 @@ cd formshot ./formshot # service on 8300, window at http://localhost:5300 ``` -Render from the command line with `./formshot render model.glb out.png --samples 256` (also `--width`, `--height`, `--threads`, `--seed`, `--denoise` and `--device`). `./formshot engine wasm` builds the optional in-window engine; the window works without it. `./formshot desktop dev` opens the desktop window instead, after `./formshot install-desktop`. On Windows use `formshot_oc_install.bat` and `formshot.bat`. `FORMSHOT_DATA` moves the data folder and `FORMSHOT_PROJECTS` the projects folder (`~/Documents/FormShot` by default). +Render from the command line with `./formshot render model.glb out.png --samples 256` (also `--width`, `--height`, `--threads`, `--seed`, `--denoise` and `--device`), or a demo's shots with `./formshot cli render assets/demos/helmet/project.fshot out.png --all-shots`. `./formshot engine wasm` builds the optional in-window engine; the window works without it. `./formshot desktop dev` opens the desktop window instead, after `./formshot install-desktop`. On Windows use `formshot_oc_install.bat` and `formshot.bat`. `FORMSHOT_DATA` moves the data folder and `FORMSHOT_PROJECTS` the projects folder (`~/Documents/FormShot` by default). > [!IMPORTANT] -> **Status:** pre-release. FormShot 0.14.0 has the shell, the document and project file, the CPU and GPU path tracers, the live viewport, import, materials and the library, lighting, cameras and the picture, render passes and the queue, denoising, shots, variants and the configurator, measurements, animation and movies, advanced light transport, the graph and UV editors, label placement, preferences, shortcuts, workspaces and presentation mode, model export, the web configurator and spin viewer, USD, 3DM and IFC import, material import, the headless service, MCP profiles, the agent guide, the scripting channel with its Python client, plugins, live links with the Blender add-on, and the command line render. It has not been built or tested as a desktop app on any platform yet, and GPU rendering has run only on software drivers (see [Known limits](#known-limits)). See [`CHANGELOG.md`](CHANGELOG.md). +> **Status:** pre-release. FormShot 0.15.0 has the shell, Home with five demo projects, the document and project file, the CPU and GPU path tracers, the live viewport, import, materials and the library, lighting, cameras and the picture, render passes and the queue, denoising, shots, variants and the configurator, measurements, animation and movies, advanced light transport, the graph and UV editors, label placement, preferences, shortcuts, workspaces and presentation mode, model export, the web configurator and spin viewer, USD, 3DM and IFC import, material import, the headless service, MCP profiles, the agent guide, the scripting channel with its Python client, plugins, live links with the Blender add-on, the render farm, and the command line render. It has not been built or tested as a desktop app on any platform yet, and GPU rendering has run only on software drivers (see the [known limits](docs/FEATURES.md#known-limits)). See [`CHANGELOG.md`](CHANGELOG.md). **Contributing:** branch from `main`, keep changes to source here, and leave packaging and releases to FormCompiler. See [`CONTRIBUTING.md`](CONTRIBUTING.md), [`.docs/BRANCHING.md`](.docs/BRANCHING.md) and [`AGENTS.md`](AGENTS.md). @@ -233,14 +208,11 @@ Render from the command line with `./formshot render model.glb out.png --samples | `native/` | Rust engine workspace and the command registry | | `frontend/` | Vite app: shell, Home, workspace, engine client, agent dock | | `backend/` · `src-tauri/` | FastAPI service · Tauri 2 desktop shell | +| `assets/` | the app icon, the material library and studios, the five demo projects | | `setup/` · `mcp/` | the scripts behind `./formshot` · the MCP stdio bridge | | `python/` · `plugins/` · `integrations/` | the Python client and its examples · plugin examples and the template · the Blender add-on | -Docs: [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md), [`docs/GPU-ENGINE.md`](docs/GPU-ENGINE.md), [`docs/VIEWPORT.md`](docs/VIEWPORT.md), [`docs/IMPORT.md`](docs/IMPORT.md), [`docs/MATERIALS.md`](docs/MATERIALS.md), [`docs/LIBRARY.md`](docs/LIBRARY.md), [`docs/LIGHTING.md`](docs/LIGHTING.md), [`docs/IMAGE.md`](docs/IMAGE.md), [`docs/OUTPUT.md`](docs/OUTPUT.md), [`docs/DENOISE.md`](docs/DENOISE.md), [`docs/SHOTS.md`](docs/SHOTS.md), [`docs/CONFIGURATOR.md`](docs/CONFIGURATOR.md), [`docs/TEMPLATES.md`](docs/TEMPLATES.md), [`docs/MEASURE.md`](docs/MEASURE.md), [`docs/ANIMATION.md`](docs/ANIMATION.md), [`docs/VIDEO.md`](docs/VIDEO.md), [`docs/TRANSPORT.md`](docs/TRANSPORT.md), [`docs/GRAPH-EDITOR.md`](docs/GRAPH-EDITOR.md), [`docs/UV-EDITOR.md`](docs/UV-EDITOR.md), [`docs/LABELS.md`](docs/LABELS.md), [`docs/PREFERENCES.md`](docs/PREFERENCES.md), [`docs/SHORTCUTS.md`](docs/SHORTCUTS.md), [`docs/WORKSPACES.md`](docs/WORKSPACES.md), [`docs/PRESENTATION.md`](docs/PRESENTATION.md), [`docs/EXPORT.md`](docs/EXPORT.md), [`docs/BAKE.md`](docs/BAKE.md), [`docs/USD.md`](docs/USD.md), [`docs/USDZ.md`](docs/USDZ.md), [`docs/WEB-CONFIGURATOR.md`](docs/WEB-CONFIGURATOR.md), [`docs/SPIN-VIEWER.md`](docs/SPIN-VIEWER.md), [`docs/RHINO.md`](docs/RHINO.md), [`docs/IFC.md`](docs/IFC.md), [`docs/MATERIAL-IMPORT.md`](docs/MATERIAL-IMPORT.md), [`docs/FILE-FORMAT.md`](docs/FILE-FORMAT.md), [`docs/CLI.md`](docs/CLI.md), [`docs/HEADLESS.md`](docs/HEADLESS.md), [`docs/MCP.md`](docs/MCP.md), [`docs/SCRIPTING.md`](docs/SCRIPTING.md), [`docs/PYTHON.md`](docs/PYTHON.md), [`docs/PLUGINS.md`](docs/PLUGINS.md), [`docs/LIVE-LINK.md`](docs/LIVE-LINK.md), [`docs/FARM.md`](docs/FARM.md), [`integrations/blender/README.md`](integrations/blender/README.md), [`plugins/README.md`](plugins/README.md), [`.docs/wiki`](.docs/wiki), [`CHANGELOG.md`](CHANGELOG.md) · Agents: [`CLAUDE.md`](CLAUDE.md), [`AGENTS.md`](AGENTS.md) - -
- ---- +Docs: [`docs/FEATURES.md`](docs/FEATURES.md), [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md), [`docs/GPU-ENGINE.md`](docs/GPU-ENGINE.md), [`docs/VIEWPORT.md`](docs/VIEWPORT.md), [`docs/IMPORT.md`](docs/IMPORT.md), [`docs/MATERIALS.md`](docs/MATERIALS.md), [`docs/LIBRARY.md`](docs/LIBRARY.md), [`docs/LIGHTING.md`](docs/LIGHTING.md), [`docs/IMAGE.md`](docs/IMAGE.md), [`docs/OUTPUT.md`](docs/OUTPUT.md), [`docs/DENOISE.md`](docs/DENOISE.md), [`docs/SHOTS.md`](docs/SHOTS.md), [`docs/FARM.md`](docs/FARM.md) · Agents: [`CLAUDE.md`](CLAUDE.md), [`AGENTS.md`](AGENTS.md) ## Maintainers @@ -253,4 +225,4 @@ Docs: [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md), [`docs/GPU-ENGINE.md`](doc FormShot is licensed under the Apache License 2.0 ([`LICENSE`](LICENSE), SPDX `Apache-2.0`). Copyright 2026 NodeAgentc, Inc. Third-party notices: [`NOTICE.md`](NOTICE.md) (what each component is and why) and [`THIRD-PARTY-NOTICES.txt`](THIRD-PARTY-NOTICES.txt) (the licence of each package). -FormShot is an independent project. Other products are named only for compatibility and file formats; FormShot is not affiliated with or endorsed by their owners. +Screenshot and render content: the Headphones and Racing helmet are FormShot's own models; the chess set is "A Beautiful Game" by the MaterialX Project (ASWF), converted to glTF by Ed Mackey, CC BY 4.0; the running shoe is the "Materials Variants Shoe" by Shopify, CC BY 4.0; the toy car is the "Toy Car" by Guido Odendahl and Eric Chadwick, CC0 1.0; the last three come from the Khronos Group's glTF Sample Assets. FormShot is an independent project. Other products are named only for compatibility and file formats; FormShot is not affiliated with or endorsed by their owners. diff --git a/SECURITY.md b/SECURITY.md index 5238cd13..8f6dbab7 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -7,7 +7,7 @@ FormShot has not been released yet. Until the first release, security fixes go i | Version | Supported | | --- | --- | -| `main` (0.14.0, unreleased) | Yes | +| `main` (0.15.0, unreleased) | Yes | | Anything older | No | ## Reporting a vulnerability diff --git a/VERSION b/VERSION index a803cc22..a5510516 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.14.0 +0.15.0 diff --git a/assets/app-icon/formshot-256.png b/assets/app-icon/formshot-256.png index 8b09a499..8c942ba2 100644 Binary files a/assets/app-icon/formshot-256.png and b/assets/app-icon/formshot-256.png differ diff --git a/assets/app-icon/source/formshot_dark_transparent_noshadow.png b/assets/app-icon/source/formshot_dark_transparent_noshadow.png index 6f22fdd1..2c092fd6 100644 Binary files a/assets/app-icon/source/formshot_dark_transparent_noshadow.png and b/assets/app-icon/source/formshot_dark_transparent_noshadow.png differ diff --git a/assets/app-icon/source/formshot_dark_transparent_shadow.png b/assets/app-icon/source/formshot_dark_transparent_shadow.png index 9fa6363b..4b68c03f 100644 Binary files a/assets/app-icon/source/formshot_dark_transparent_shadow.png and b/assets/app-icon/source/formshot_dark_transparent_shadow.png differ diff --git a/assets/app-icon/source/formshot_icon_dark.png b/assets/app-icon/source/formshot_icon_dark.png index a02556e6..249b040e 100644 Binary files a/assets/app-icon/source/formshot_icon_dark.png and b/assets/app-icon/source/formshot_icon_dark.png differ diff --git a/assets/app-icon/source/formshot_icon_light.png b/assets/app-icon/source/formshot_icon_light.png index c6bef958..5a41c63c 100644 Binary files a/assets/app-icon/source/formshot_icon_light.png and b/assets/app-icon/source/formshot_icon_light.png differ diff --git a/assets/app-icon/source/formshot_light_transparent_noshadow.png b/assets/app-icon/source/formshot_light_transparent_noshadow.png index ee1d7b7a..3a910c69 100644 Binary files a/assets/app-icon/source/formshot_light_transparent_noshadow.png and b/assets/app-icon/source/formshot_light_transparent_noshadow.png differ diff --git a/assets/app-icon/source/formshot_light_transparent_shadow.png b/assets/app-icon/source/formshot_light_transparent_shadow.png index 087100dd..9413f09a 100644 Binary files a/assets/app-icon/source/formshot_light_transparent_shadow.png and b/assets/app-icon/source/formshot_light_transparent_shadow.png differ diff --git a/assets/demos/README.md b/assets/demos/README.md new file mode 100644 index 00000000..c3c3cef8 --- /dev/null +++ b/assets/demos/README.md @@ -0,0 +1,17 @@ +# FormShot demo projects + +Five ready-made projects that Home offers under Templates, in the Demo category. Opening one copies its `project.fshot` and `thumb.webp` into your project library as a new project of your own, so the demo here is never changed. + +Each project keeps two shots, **On black** (the dark hero studio with a soft floor reflection) and **On white** (the bright catalogue studio), with render settings of 1600 by 900 at 128 samples. The headphones keep a Finish variant set (Black, Silver) and the running shoe a Colourway set (Midnight, Beach, Street); each shot remembers which one it shows. + +| Folder | Demo | Made by | Licence | Changes | +| --- | --- | --- | --- | --- | +| `headphones/` | Headphones | nodemode.ai, for FormShot | Apache-2.0 | none, our own model | +| `helmet/` | Racing helmet | nodemode.ai, for FormShot | Apache-2.0 | none, our own model | +| `chess/` | Chess set: "A Beautiful Game" | the MaterialX Project, ASWF (2020); conversion to glTF by Ed Mackey (2022) | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode) | textures reduced from 2048 to 1024 px; set in the two FormShot studios | +| `shoe/` | Running shoe: "Materials Variants Shoe" | Shopify (2021) | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode) | textures reduced from 2048 to 1024 px; its three material variants made into the Colourway set; set in the two FormShot studios | +| `toycar/` | Toy car: "Toy Car" | Guido Odendahl (model) and Eric Chadwick (extensions and scene composition), 2020 | [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/legalcode) | its cloth backdrop hidden; set in the two FormShot studios | + +The chess set, the shoe and the toy car come from the Khronos Group's [glTF Sample Assets](https://github.com/KhronosGroup/glTF-Sample-Assets) (`Models/ABeautifulGame`, `Models/MaterialsVariantsShoe`, `Models/ToyCar`). Their licences exclude logos and trademarks, and none of the three carries one. The headphones and the helmet are original models built in code for FormShot and carry no brand. + +`index.json` lists the demos in Home's order with the name, description, search tags and credit line that Home shows. A demo folder holds `project.fshot`, the project, and `thumb.webp`, its 640 by 360 card picture rendered from the On black shot. diff --git a/assets/demos/chess/project.fshot b/assets/demos/chess/project.fshot new file mode 100644 index 00000000..e4d0556c Binary files /dev/null and b/assets/demos/chess/project.fshot differ diff --git a/assets/demos/chess/thumb.webp b/assets/demos/chess/thumb.webp new file mode 100644 index 00000000..b5921758 Binary files /dev/null and b/assets/demos/chess/thumb.webp differ diff --git a/assets/demos/headphones/project.fshot b/assets/demos/headphones/project.fshot new file mode 100644 index 00000000..4b4fbefd Binary files /dev/null and b/assets/demos/headphones/project.fshot differ diff --git a/assets/demos/headphones/thumb.webp b/assets/demos/headphones/thumb.webp new file mode 100644 index 00000000..8d39d18b Binary files /dev/null and b/assets/demos/headphones/thumb.webp differ diff --git a/assets/demos/helmet/project.fshot b/assets/demos/helmet/project.fshot new file mode 100644 index 00000000..08be0e14 Binary files /dev/null and b/assets/demos/helmet/project.fshot differ diff --git a/assets/demos/helmet/thumb.webp b/assets/demos/helmet/thumb.webp new file mode 100644 index 00000000..5138e8e4 Binary files /dev/null and b/assets/demos/helmet/thumb.webp differ diff --git a/assets/demos/index.json b/assets/demos/index.json new file mode 100644 index 00000000..a7f14725 --- /dev/null +++ b/assets/demos/index.json @@ -0,0 +1,41 @@ +{ + "format": "formshot-demos", + "version": 1, + "demos": [ + { + "id": "headphones", + "name": "Headphones", + "description": "Over-ear headphones floating in the studio, with a black and a silver finish.", + "tags": ["headphones", "audio", "metal", "leather", "variants", "floating"], + "credit": "FormShot demo model by nodemode.ai, Apache-2.0" + }, + { + "id": "helmet", + "name": "Racing helmet", + "description": "An open-face helmet with aviator goggles and leather chin straps.", + "tags": ["helmet", "motorcycle", "goggles", "chrome", "leather", "floating"], + "credit": "FormShot demo model by nodemode.ai, Apache-2.0" + }, + { + "id": "chess", + "name": "Chess set", + "description": "A carved chess set on its board, the pawns topped with glass.", + "tags": ["chess", "glass", "transmission", "textured", "board game"], + "credit": "A Beautiful Game by the MaterialX Project (ASWF), glTF by Ed Mackey, CC BY 4.0; textures reduced to 1024 px" + }, + { + "id": "shoe", + "name": "Running shoe", + "description": "A running shoe with three colourways to switch between.", + "tags": ["shoe", "sneaker", "fabric", "variants", "colourway"], + "credit": "Materials Variants Shoe by Shopify, CC BY 4.0; textures reduced to 1024 px" + }, + { + "id": "toycar", + "name": "Toy car", + "description": "A toy car in clear-coated paint with chrome trim and glass windows.", + "tags": ["car", "toy", "clearcoat", "chrome", "glass"], + "credit": "Toy Car by Guido Odendahl and Eric Chadwick, CC0 1.0" + } + ] +} diff --git a/assets/demos/shoe/project.fshot b/assets/demos/shoe/project.fshot new file mode 100644 index 00000000..492b6957 Binary files /dev/null and b/assets/demos/shoe/project.fshot differ diff --git a/assets/demos/shoe/thumb.webp b/assets/demos/shoe/thumb.webp new file mode 100644 index 00000000..1ddf16d2 Binary files /dev/null and b/assets/demos/shoe/thumb.webp differ diff --git a/assets/demos/toycar/project.fshot b/assets/demos/toycar/project.fshot new file mode 100644 index 00000000..54f62792 Binary files /dev/null and b/assets/demos/toycar/project.fshot differ diff --git a/assets/demos/toycar/thumb.webp b/assets/demos/toycar/thumb.webp new file mode 100644 index 00000000..b1aa70ec Binary files /dev/null and b/assets/demos/toycar/thumb.webp differ diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index 6abad517..46bd797e 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -1,6 +1,6 @@ # backend HASHOUT_LOG -Living log for the service side, _v0.14.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full. +Living log for the service side, _v0.15.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full. ## Org-navi-map @@ -19,7 +19,7 @@ backend/ app/window_key.py per-start window key, one claim, tickets, the guard for every non-read app/notices.py GET /api/notices app/settings.py [data]/settings.json, the consent choice `agents` - app/project_library.py the Home library on disk: projects, templates, Trash, previews, stored model, project file + app/project_library.py the Home library on disk: projects, templates, demo projects, Trash, previews, stored model, project file app/projects.py routes over the library app/engine.py engine bridge: Binding (fsh_py) and Process (formshot-engine dispatch --journal) transports, frame_bytes, mesh_bytes (FSHM v1), snapshot_bytes, journal_dir, apply_preferences, @@ -144,6 +144,12 @@ The engine now keeps a crash journal: the binding opens `fsh_py.Session(/s - logged: v0.2.0 · 2026-12-02 Each project is a folder `/` with `project.fshot`, `info.json`, `thumb.webp` and an optional `mesh.`. Trash is `.trash/-`; pins and hidden recents are in `.home.json`. Every move, write and delete goes through `inside()`, which refuses any path whose resolved location leaves the projects folder. A folder holding only `info.json` and older than a day is swept on create, as in FormSurface. `PUT /api/projects/{name}/file` streams to `project.fshot.part`, checks the ZIP local-header magic `PK\x03\x04`, then replaces the file; up to 4 GB. The engine owns the format; the service never opens the ZIP. Four built-in templates, the same ids and names as Home's: `empty-studio` "Empty studio" (default), `product-white` "Product on white", `dark-studio` "Dark studio" (category Studio) and `turntable` "Turntable" (Animation), each with a `sample` id equal to its id that the window or engine turns into a scene; the service builds no scenes. The first list (studio-light, studio-dark, spheres, turntable, daylight) was replaced by the seams pass so Home's lookup finds every id on the service without its fallback names. +### app/project_library.py, app/projects.py · demo projects as templates +- refers-to: app/project_library.py :: demos_dir, demos, demo_folder, demo_thumb, template, create, counts, clip, DEMOS_ENV, DEMO_ID, DEMO_PREFIX; app/projects.py :: list_templates, demo_thumb +- kind: decision +- logged: v0.15.0 · 2026-12-05 +Five ready-made projects ship in `assets/demos//` (`project.fshot`, `thumb.webp`) with `assets/demos/index.json` giving their order, name, description, tags and credit line. `demos()` lists them as templates with the id `demo:`, category `Demo`, an empty `sample`, `demo`, `credit` and `thumb`; an entry whose id is not `[a-z0-9-]{1,40}` or whose folder has no project file is skipped. The folder is found in this order: `FORMSHOT_DEMOS`, then beside the bundled material library when frozen (`bundled_library().parent / "demos"`, where Tauri puts the `demos` resource), then the repository's `assets/demos`. `create` with a demo template copies its project file and preview into the new folder through `.part` files, so the new project is saved at once and the demo itself is never written; the answer carries `demo`. `GET /api/project-templates` lists the built-in templates and then the demos (`source: "demo"`), and `GET /api/project-templates/demo/{demo}/thumb` serves a demo's preview (404 for an unknown or unsafe id). `counts().templates` counts both. The built-in templates stay for `file.new` and agents; Home shows only the demos. + ## Agents, MCP and consent ### app/routers/mcp.py · /mcp over the engine catalogue diff --git a/backend/app/__init__.py b/backend/app/__init__.py index 9e78220f..9da2f8fc 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -1 +1 @@ -__version__ = "0.14.0" +__version__ = "0.15.0" diff --git a/backend/app/project_library.py b/backend/app/project_library.py index 1459727d..85464046 100644 --- a/backend/app/project_library.py +++ b/backend/app/project_library.py @@ -2,6 +2,7 @@ import os import re import shutil +import sys import time from datetime import datetime, timezone from pathlib import Path @@ -27,7 +28,7 @@ THUMB_TYPES = ((b"RIFF", "image/webp"), (b"\xff\xd8\xff", "image/jpeg"), (b"\x89PNG\r\n\x1a\n", "image/png")) OUTSIDE = "The project library does not follow a link that leads out of it" -TEMPLATE_CATEGORIES = ["Studio", "Animation"] +TEMPLATE_CATEGORIES = ["Studio", "Animation", "Demo"] TEMPLATES = [ {"id": "empty-studio", "name": "Empty studio", "category": "Studio", "tags": ["studio", "blank", "empty", "sweep"], "description": "A seamless studio with soft light and nothing in it yet.", "sample": "empty-studio"}, {"id": "product-white", "name": "Product on white", "category": "Studio", "tags": ["white", "packshot", "shadow", "catalogue"], "description": "A bright white sweep with a shadow-catching floor, for clean packshots.", "sample": "product-white"}, @@ -35,6 +36,9 @@ {"id": "turntable", "name": "Turntable", "category": "Animation", "tags": ["turntable", "orbit", "360", "animation", "spin"], "description": "A round plinth with a camera that orbits once, ready for a 360 render.", "sample": "turntable"}, ] DEFAULT_TEMPLATE = "empty-studio" +DEMOS_ENV = "FORMSHOT_DEMOS" +DEMO_ID = re.compile(r"^[a-z0-9-]{1,40}\Z") +DEMO_PREFIX = "demo:" class LibraryError(Exception): @@ -172,7 +176,69 @@ def unique_id(base: str) -> str: raise LibraryError(409, "Too many projects share that name") +def demos_dir() -> Path | None: + places = [] + chosen = os.environ.get(DEMOS_ENV, "").strip() + if chosen: + places.append(Path(chosen)) + if getattr(sys, "frozen", False): + from app.routers.library import bundled_library + bundled = bundled_library() + if bundled is not None: + places.append(bundled.parent / "demos") + places.append(Path(__file__).resolve().parents[2] / "assets" / "demos") + return next((p for p in places if (p / "index.json").is_file()), None) + + +def clip(value, limit: int) -> str: + return value[:limit] if isinstance(value, str) else "" + + +def demos() -> list[dict]: + root = demos_dir() + if root is None: + return [] + try: + listed = json.loads((root / "index.json").read_text(encoding="utf-8")).get("demos") + except (OSError, ValueError, AttributeError): + return [] + found = [] + for item in listed if isinstance(listed, list) else []: + did = item.get("id") if isinstance(item, dict) else None + if not isinstance(did, str) or not DEMO_ID.match(did) or not (root / did / PROJECT_FILE).is_file(): + continue + tags = item.get("tags") if isinstance(item.get("tags"), list) else [] + found.append({ + "id": DEMO_PREFIX + did, + "name": clip(item.get("name"), 80) or did, + "category": "Demo", + "tags": [x[:40] for x in tags if isinstance(x, str)][:12], + "description": clip(item.get("description"), 300), + "sample": "", + "demo": did, + "credit": clip(item.get("credit"), 300), + "thumb": (root / did / THUMB_FILE).is_file(), + }) + return found + + +def demo_folder(did: str) -> Path: + root = demos_dir() + if root is None or not isinstance(did, str) or not DEMO_ID.match(did) or not (root / did / PROJECT_FILE).is_file(): + raise LibraryError(404, "No such demo") + return root / did + + +def demo_thumb(did: str) -> Path: + file = demo_folder(did) / THUMB_FILE + if not file.is_file(): + raise LibraryError(404, "No preview") + return file + + def template(tid: str) -> dict | None: + if isinstance(tid, str) and tid.startswith(DEMO_PREFIX): + return next((t for t in demos() if t["id"] == tid), None) return next((t for t in TEMPLATES if t["id"] == tid), None) @@ -193,7 +259,16 @@ def create(title: str | None, template_id: str | None, mesh: str | None) -> dict elif isinstance(mesh, str) and mesh: info["mesh"] = mesh[:200] write_json_atomic(path / INFO_FILE, info) - return {**summary(path), "sample": chosen["sample"] if chosen else ""} + if chosen and chosen.get("demo"): + source = demo_folder(chosen["demo"]) + for file in (PROJECT_FILE, THUMB_FILE): + if (source / file).is_file(): + partial = path / f"{file}.part" + if not inside(partial): + raise LibraryError(400, OUTSIDE) + shutil.copyfile(source / file, partial) + partial.replace(path / file) + return {**summary(path), "sample": chosen["sample"] if chosen else "", "demo": chosen.get("demo", "") if chosen else ""} def put_info(name: str, patch: dict) -> dict: @@ -399,4 +474,4 @@ def write_settings(patch: dict) -> dict: def counts() -> dict: - return {"projects": len(list_projects()), "templates": len(TEMPLATES), "trash": len(list_trash()), "folder": str(PROJECTS)} + return {"projects": len(list_projects()), "templates": len(TEMPLATES) + len(demos()), "trash": len(list_trash()), "folder": str(PROJECTS)} diff --git a/backend/app/projects.py b/backend/app/projects.py index e903cce5..95f20020 100644 --- a/backend/app/projects.py +++ b/backend/app/projects.py @@ -53,7 +53,13 @@ async def save_settings(request: Request): @router.get("/api/project-templates") def list_templates(): - return {"categories": library.TEMPLATE_CATEGORIES, "templates": [{**t, "source": "builtin"} for t in library.TEMPLATES], "default": library.DEFAULT_TEMPLATE} + builtin = [{**t, "source": "builtin"} for t in library.TEMPLATES] + return {"categories": library.TEMPLATE_CATEGORIES, "templates": builtin + [{**t, "source": "demo"} for t in library.demos()], "default": library.DEFAULT_TEMPLATE} + + +@router.get("/api/project-templates/demo/{demo}/thumb") +def demo_thumb(demo: str): + return FileResponse(guarded(library.demo_thumb, demo), media_type="image/webp", headers={"Cache-Control": "no-cache"}) @router.get("/api/projects") diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 4dbb2b6d..b0481a6d 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -40,7 +40,7 @@ Conventions everywhere in the engine: right-handed, Y up, metres, radians, colou ## The engine crates -All crates live in `native/crates/`, edition 2021, Apache-2.0, version 0.14.0. `fsh-py` and `fsh-wasm` are outside the workspace's default members, so a plain `cargo build` does not need Python or the wasm target; `fsh-render-gpu` is a default member, so a plain build compiles wgpu. +All crates live in `native/crates/`, edition 2021, Apache-2.0, version 0.15.0. `fsh-py` and `fsh-wasm` are outside the workspace's default members, so a plain `cargo build` does not need Python or the wasm target; `fsh-render-gpu` is a default member, so a plain build compiles wgpu. | Crate | Holds | Depends on | | --- | --- | --- | diff --git a/docs/FEATURES.md b/docs/FEATURES.md new file mode 100644 index 00000000..48b9a1b9 --- /dev/null +++ b/docs/FEATURES.md @@ -0,0 +1,88 @@ +# FormShot features + +Everything FormShot does today, in more detail than the [README](../README.md), then how to render on a device and the known limits. FormShot is unreleased; nothing here has shipped in a build yet. + +## What is in the repository + +- **The window.** Home with recent projects, five demo projects as templates (headphones, a racing helmet, a chess set, a running shoe and a toy car, each with an On black and an On white shot) and a Trash you can restore from; the workspace with the live viewport, a material library panel, an inspector (Scene, Camera, Environment, Image and more) and a status bar; menus, a command palette, Preferences built from one searchable table, a shortcut editor with key maps, workspaces, 29 themes and the interface in English and 23 more languages. +- **The live viewport.** Rendered, Material preview, Solid and Wireframe modes (the last three drawn in the window with WebGL2); click and box selection with a selection outline; a move, rotate and scale gizmo in world or local space with snapping; navigation presets for mouse, trackpad and touch; Frame Selection, Frame All, the six views and composition guides; light and camera outlines. While you move the camera the path tracer drops to fast low-resolution passes and climbs back to full resolution when you stop. A chip says what is drawing, on which device, and why the window is not drawing itself when it is not; the island menu picks the device, the viewport quality and adaptive sampling. +- **The document.** A scene of groups, parts, lights and cutaways over shared meshes and materials, edited only through named commands, each one undoable, with merging for drags and grouping for multi-step edits. +- **The project file.** `.fshot` projects saved as a stored ZIP, written the same way byte for byte each time. The engine keeps a command journal with rotating snapshots while you work, and `file.recover_list` and `file.recover` bring a session back after a crash (from the palette, MCP or the command line; there is no recovery dialog yet). +- **The CPU path tracer.** The reference renderer: a deterministic sampler, a two-level BVH, next-event estimation with multiple importance sampling, environment importance sampling, the layered surface model, a procedural sky and a physical (Hosek-Wilkie) sky with its sun, a studio sweep, a shadow-catcher floor, every lens of the Camera page, the develop step and its own a-trous denoiser. +- **The GPU path tracer.** The same picture as the CPU path tracer, written for Vulkan, Metal, Direct3D 12 and OpenGL, with its own BVH traversal and hardware ray queries where the device offers them. Adaptive sampling and reduced-resolution passes work on both engines. When the graphics card cannot render a scene, or fails while rendering, the processor takes over and a note says why. See [`docs/GPU-ENGINE.md`](GPU-ENGINE.md). +- **The engine in the window.** `./formshot engine wasm` builds the engine as WebAssembly so the window can path-trace through WebGPU itself, with a start-up guard that falls back to streamed frames from the service and a self-check that compares a small view from the graphics card with the processor's and turns WebGPU off on a machine where they disagree. It develops the picture on the graphics card the way the processor does. See [`docs/VIEWPORT.md`](VIEWPORT.md) and the limits below. +- **Import.** Readers for glTF and GLB, OBJ with MTL, STL, PLY, 3MF and FBX (FBX in the desktop engine) with a clean-up pass (weld, normals, tangents, repeated parts also when rotated or mirrored, units with a guess you can check, up axis, standing on the floor). An import sheet shows what a file holds before anything changes, imports run in the background with progress and a Cancel that leaves the document untouched, and each import is one undo step. Texture maps arrive as material texture slots and PNG, JPEG, HDR and EXR images are kept inside the project. File > Reimport reads changed files again and keeps each part's material and identity. Drop files on the viewport or on Home. See [`docs/IMPORT.md`](IMPORT.md). +- **STEP and IGES.** Opened by FormCAD's kernel worker, a separate program FormShot downloads on request and checks file by file (`./formshot cad fetch`, or Preferences > CAD Import). Assemblies, colours and shared parts come in at a quality you choose, the file is kept in the project, and Scene > Re-tessellate CAD Parts rebuilds parts at another quality without losing their materials. +- **Hand-offs from the Form apps.** What FormSculpt and FormFabric send through their GoF folder, FormSurface's painted maps and FormCAD's models are picked up while the window is open and offered for your yes first (decline, open once, always allow that app). +- **Materials.** One layered surface model with 18 types (plastics, metals with ten measured colours, paints, glass, liquids, gems, rubber, fabric, ceramic, emissive, wood, stone and more), texture slots with projections and transforms, and a node graph editor with image, maths, ramp, normal map and bump nodes and ten anti-aliased procedural patterns, image labels projected onto parts and placed with a click, thin-film iridescence (soap bubbles, anodised metals) and dispersion in glass and gems. Both path tracers render all of it, with PNG, JPEG, HDR and EXR textures filtered by the pixel's footprint; an image you choose is stored inside the project, and editing a material refreshes only the parts that wear it on either tracer. The Material page in the inspector edits them. See [`docs/MATERIALS.md`](MATERIALS.md). +- **The material library.** 249 presets in twelve categories made from measured optical data and published tables, each citing its sources; search, favourites, recent and your own saved presets; thumbnails rendered by FormShot's own path tracer; apply by double-click or by dragging onto a part, to a part, its group or every part with the same material, as one undo step. See [`docs/LIBRARY.md`](LIBRARY.md). +- **The node editor.** A window for a material's graph: a node browser whose search reaches the operations inside nodes, wires that dim what cannot connect and offer only the nodes that fit when dropped on empty canvas, nodes inserted onto a wire, six node setups and your own, Tidy, and a live preview of the material on a ball under the studio or the scene's light, rendered on its own worker so the viewport never waits. Every finished gesture is one undo step. See [`docs/GRAPH-EDITOR.md`](GRAPH-EDITOR.md). +- **The UV editor.** Unwrap, relax, pack and arrange a mesh's UV sets with FormShot's own UV engine (`fsh-uv`), see seams, stretch and texel density in millimetres, move, scale and turn charts, mark seams, and export the layout as SVG or PNG. The layout is written back through one undoable command, `mesh.replace`. See [`docs/UV-EDITOR.md`](UV-EDITOR.md). +- **Label placement.** Labels are placed by dragging their footprint over the part in the viewport (slide, scale, rotate, snap), and an image dropped on a part prints there as a label. See [`docs/LABELS.md`](LABELS.md). +- **Preferences, shortcuts and workspaces.** Every preference is one row of one table with a help text, a default and a reset, a search, and an export and import file; the shortcut editor rebinds any command with a prompt on conflicts, ships three key maps and exports yours as a file; five workspaces and your own, Full View, and a draggable order of inspector sections. See [`docs/PREFERENCES.md`](PREFERENCES.md), [`docs/SHORTCUTS.md`](SHORTCUTS.md) and [`docs/WORKSPACES.md`](WORKSPACES.md). +- **Lighting.** Point, sphere, spot, rect, disc and sun lights with spread, edge softness, IES profiles and light and shadow linking; an environment with pins, a finite dome, a backplate and a background image; the procedural and physical skies; seven studio presets of FormShot's own and your saved ones, applied around the product at its size in one undo step. The Lighting and Environment pages edit them. See [`docs/LIGHTING.md`](LIGHTING.md). +- **Cameras.** Saved cameras; perspective, shifted perspective, orthographic, fisheye up to 360 degrees and equirectangular and cylindrical panoramas; depth of field with bladed apertures and an anamorphic squeeze; Pick focus with a click in the viewport. The Camera page edits them. +- **The picture.** The develop step grades (exposure, white balance, highlights, shadows, whites, blacks, contrast, saturation), adds chromatic aberration, vignetting, bloom and sharpening, and shows the result through PBR Neutral, AgX, ACES 1.3, sRGB, raw or an OpenColorIO config's display, view and looks, read by FormShot's own OpenColorIO reader. Changing any of it keeps every sample. The Image page edits it. See [`docs/IMAGE.md`](IMAGE.md). +- **Pictures.** PNG and Radiance HDR read and written, OpenEXR read (scanline, uncompressed or RLE, ZIP, PIZ and PXR24), JPEG read; final pictures written by FormShot's own writers as PNG (8 and 16 bit), JPEG, TIFF (8, 16 and 32-bit float), multi-layer OpenEXR (half or float; ZIP, ZIPS or PIZ) and layered PSD (8 or 16 bit). +- **Render passes and the queue.** 23 passes on both path tracers: nine light passes that add up to the beauty, depth, normal, position, albedo, roughness, uv, object and material ids, alpha, sample count, shadow, ambient occlusion, the catcher's shadow and reflection, and Cryptomatte object and material mattes. The Final Render window puts the output size first, then samples, camera, passes, format, file name template, folder and denoiser; the render queue renders jobs one after another in the background while the viewport keeps working, and writes each through a part file so a cancelled job leaves nothing half-written. See [`docs/OUTPUT.md`](OUTPUT.md). +- **Denoising.** FormShot's own edge-aware denoiser (Fast, Balanced and High, guided by the film's albedo, normal, depth and variance) on the processor and, for the viewport, on the graphics card; Intel Open Image Denoise downloaded on request, checked against its pinned SHA-256 and loaded at run time, with the own denoiser standing in and saying why when it is missing. See [`docs/DENOISE.md`](DENOISE.md). +- **Shots.** Named views kept in the project: each keeps the camera, the image style, the environment and ground, the render settings, the lights, what is shown and the chosen variants, with flags for what applying it restores. Apply one in one undo step, see which no longer match the document, and render all of them through the queue with the shot's name in the file name. The Shots page edits them. See [`docs/SHOTS.md`](SHOTS.md). +- **Material variants and model sets.** Variant sets capture the materials of chosen parts (black, white, walnut), and model sets show one group of parts and hide the others (with stand, without); choosing either is one undo step, and each shot remembers its choices. +- **The configurator.** Options with choices (colour, trim, accessories) whose actions put materials on parts, show or hide parts, choose variants and model sets or apply a shot, with requires and excludes rules between options. It lists every valid configuration, moves other options to the nearest valid one when a choice breaks a rule, checks itself for impossible choices, and renders every configuration from one command, `config.render_all`, with `{config}` and `{variant}` in the file names. See [`docs/CONFIGURATOR.md`](CONFIGURATOR.md). +- **Material templates.** Saved rules that dress imported parts by material name, part name or file path, applied after an import or during it, previewed before they change anything, and captured from a dressed document; two of FormShot's own match engineering material names and colour words. See [`docs/TEMPLATES.md`](TEMPLATES.md). +- **Measurements.** Distances (direct or along an axis), size boxes in world or local axes and angles, pinned to parts so they follow them, listed in the document's display unit, drawn over the viewport with vertex snapping and, when asked, into final renders. See [`docs/MEASURE.md`](MEASURE.md). +- **Animation.** A timeline with keys on part placement, camera position, target, lens and focus, material parameters and light power, colour and temperature, with step, linear, smooth and ease interpolation; turntables, camera orbits and camera paths as rigs; the timeline panel with key lanes, curves, scrubbing and playback in the viewport. See [`docs/ANIMATION.md`](ANIMATION.md). +- **Motion blur.** Parts and the camera move while the shutter is open, set as a fraction of a frame or a shutter angle and centred on, opening at or closing at the frame; both path tracers render it. +- **Light transport.** Liquids, glass and gems absorb light by their depth, parts nest by medium priority (a drink in a glass), volumes scatter (smoke, fog) and subsurface parts glow from within by a random walk (wax, marble, milk); spectral rendering follows wavelengths for dispersion in prisms and gems; photon caustics focus light through glass and off metal onto surfaces; cutaways open parts with caps in the part's material or a flat colour; rounded edges give sharp CAD corners a small radius at render time; fibres grow on velvet, felt, carpet and fur. `transport.features` says which engine renders each: the GPU renders media, spectral, cutaways and rounded edges, and hands caustics and fibres to the CPU with a note. See [`docs/TRANSPORT.md`](TRANSPORT.md) and [`docs/MATERIALS.md`](MATERIALS.md). +- **Frame sequences and movies.** Render Animation renders every frame (or a range and a step) through the render queue as PNG, JPEG, TIFF, OpenEXR or PSD and encodes MP4, WebM, MOV (ProRes) or GIF with ffmpeg, run as a separate program: one the person set, the Form family's shared download (fetched on request and checked against pinned SHA-256 values) or the one on the PATH. Each frame is its own queue job, and the queue shows the sequence as one row. See [`docs/VIDEO.md`](VIDEO.md). +- **Presentation mode.** F5 shows the path-traced picture alone on black, with a slim strip to step through the shots and switch the configurator's options for a client; Esc leaves, and the document is exactly as it was. See [`docs/PRESENTATION.md`](PRESENTATION.md). +- **Model export.** `export.model` writes the document as GLB (with the material extensions, texture transforms, variants, cameras and lights in physical units), OBJ with its MTL, STL, PLY, usda, usdc and USDZ for AR, through one export scene every writer reads. Materials a format cannot carry as maps (graphs, labels, projections, slot settings) are baked into pictures by FormShot's own baker when you ask, and a GLB can carry each material's and light's exact values so FormShot reopens it unchanged (fourteen test scenes came back within 0.002 of the original pictures; the seven of an independent check within 0.000003). Every approximation is a warning in the reply. See [`docs/EXPORT.md`](EXPORT.md) and [`docs/BAKE.md`](BAKE.md). +- **The web configurator.** `export.web` turns the configurator into a static folder a customer opens from disk or any web host: FormShot's own small 3D viewer, a path-traced picture for every valid configuration, or both, with the rules kept. See [`docs/WEB-CONFIGURATOR.md`](WEB-CONFIGURATOR.md). +- **The spin viewer.** `export.spin` renders views around the product through the render queue and writes a folder with a sprite sheet and a page that turns the product as the viewer drags. See [`docs/SPIN-VIEWER.md`](SPIN-VIEWER.md). +- **USD, Rhino 3DM and IFC.** Readers of FormShot's own for USD (usda, usdc and USDZ packages), Rhino 3DM files and IFC building models, through the same clean-up and import sheet as every other model. See [`docs/USD.md`](USD.md), [`docs/USDZ.md`](USDZ.md), [`docs/RHINO.md`](RHINO.md) and [`docs/IFC.md`](IFC.md). +- **Material import.** MaterialX documents and PBR texture sets (folders or ZIP archives of maps) become ordinary materials with their images kept in the project, in one undo step. See [`docs/MATERIAL-IMPORT.md`](MATERIAL-IMPORT.md). +- **The command line.** `./formshot render model.glb out.png --samples 256` renders a picture without the window. `./formshot cli render model.glb out.mp4 --turntable 36` renders a turntable movie, and `--frames A-B` renders part of a project's animation. `./formshot cli` runs the engine's own program, `formshot-engine`, with `render`, `info`, `convert` (with import options), `probe`, `reimport`, `devices`, `bench`, `selftest`, `guide`, `catalogue`, `dispatch`, `version` and `help`. Run so far: the sample scene renders byte-identical on 1 and 2 threads, a GLB and `.fshot` round trip renders the same picture from both files, and `bench` renders it on the processor, software Vulkan and software OpenGL within 0.00001 mean difference of each other. +- **Render setups and the self-test.** `render` takes a studio preset, a shot, a configuration and a saved camera by name (`--studio`, `--shot`, `--config`, `--camera`), every shot or configuration in one run (`--all-shots`, `--all-configs`), a file name template (`--name "{config} - {shot}"`) and `--skip-existing`, so a stopped batch is finished by running it again. `formshot-engine selftest` renders a built-in 256 by 160 scene on every device `devices` lists and prints each device's difference from the CPU picture and its time as a short Markdown report. See [`docs/CLI.md`](CLI.md). +- **The headless service and MCP profiles.** `./formshot serve --headless` runs the service with no window, and `./formshot mcp` starts one when none answers, so an MCP client with no window open can open a model, dress it, light it and render it. With no window to ask, the setting `agents.headless` (allow or refuse) decides, and files are read and written only in the projects folder, `~/.formshot/agent-output`, the temporary folder and the folders in `FORMSHOT_AGENT_PATHS`. Outside agents get one of three tool profiles, `standard` by default (curated `formshot_*` tools plus every read-only command), `full` or `restricted`. See [`docs/HEADLESS.md`](HEADLESS.md) and [`docs/MCP.md`](MCP.md). +- **The agent guide.** The engine carries a guide for agents in twelve short pages with examples that run (`help.guide`, `formshot_guide`, `formshot-engine guide`): the rules first, then opening and framing, dressing parts, studio and lights, camera, rendering, shots, export, scripting and plugins. `./formshot agents sync` copies the pages into the rendering skill and `./formshot agents check` checks that every example names a command and arguments the catalogue allows. +- **The scripting channel and Python.** The service listens on a free port of 127.0.0.1 and writes a discovery file with a token in `~/.formshot/scripting.json`; a program that reads it runs any catalogue command, runs a batch as one undo step and subscribes to document events. `./formshot script my_script.py` runs a Python script with FormShot's standard-library client, which makes every command a method (`fs.material.apply(...)`), and `python/examples/` holds three scripts. See [`docs/SCRIPTING.md`](SCRIPTING.md) and [`docs/PYTHON.md`](PYTHON.md). +- **The console.** View > Console (Ctrl or Cmd+backquote) opens a console over the bottom of the viewport: type `material.apply key=3 part=12` or a raw JSON line, with history and completion, and see the commands scripts, plugins, links and MCP agents send, each source in its own colour. Preferences has a page, Agents and Scripting, for the three agent settings. +- **Plugins.** A plugin is a folder with a manifest that adds a material pack, commands, panels or event handlers. Each plugin with code runs as its own process with the powers of a script, starts disabled and asks for your yes when you enable it. The Plugins window lists, enables, restarts, installs and removes them; five examples and a template are in `plugins/`. See [`docs/PLUGINS.md`](PLUGINS.md). +- **Live links and the Blender add-on.** `link.sync` keeps the objects of another program in a group of FormShot's own, one undo step per change, while FormShot keeps what the person did to materials, names and visibility. FormShot Link, a Blender 4.2 add-on in `integrations/blender/`, sends meshes, placement, a first material and custom properties, syncs after a quarter second of quiet and mirrors Blender's camera. It has been run in headless Blender 4.2 and 4.5 against a stand-in for the channel, not in Blender's window. See [`docs/LIVE-LINK.md`](LIVE-LINK.md) and [`integrations/blender/README.md`](../integrations/blender/README.md). +- **Keep in sync for hand-offs.** A switch on a hand-off from FormSculpt, FormSurface (when it sends a mesh) or FormCAD reads its model file again whenever the app saves a new version, keeping part ids and materials, as one undo step, and waits while an import, a render or an open edit would conflict. See [`docs/IMPORT.md`](IMPORT.md). +- **The agent dock.** A shell, Chat and tabs for Claude Code, Codex, Cursor and Antigravity, each connected to FormShot's MCP server. + +Everything marked planned in the README is on the plan with the version it is due in, and is not built yet. + +## Rendering on a device + +```sh +./formshot cli devices # the processor and every graphics card, with what each can do +./formshot render model.glb out.png --device gpu # cpu (default), gpu (the best card) or gpu: from devices +./formshot cli bench # time each device on the sample scene and compare its picture with the CPU's +``` + +The output names the device that drew the picture, and adds a `note:` line when the graphics card refused or failed and the processor drew instead. In the window the same choice is in Preferences > Rendering and in the viewport's island menu. + +**Trying the GPU engine without a graphics card (for developers).** Mesa's software Vulkan driver, lavapipe, runs the GPU engine on the processor and even offers ray queries. Install it (`mesa-vulkan-drivers` on Debian and Ubuntu), then point the Vulkan loader at its ICD file: `VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json ./formshot cli devices` (the file name varies by distribution and architecture). Without a Vulkan driver the engine may still find OpenGL through Mesa's llvmpipe. Software rendering is slow and says nothing about speed on real hardware; it is for checking that the GPU picture matches the CPU picture. + +## Known limits + +- GPU rendering has been verified only on software Vulkan (lavapipe and SwiftShader) and software OpenGL (llvmpipe), not on a physical graphics card. +- Metal and Direct3D 12 have not been run. +- Hardware ray queries have run only on a software implementation (lavapipe), never on ray-tracing hardware. +- The path tracer in the window (WebGPU) drew corrupted 8 by 4 pixel blocks on an Apple Mac in the desktop app, a fault that was not reproduced here (the software WebGPU compiler runs out of memory on the kernel). Its self-check is meant to catch this and hand the viewport to streamed frames; it has not yet met a real faulty graphics card. +- The develop step with every effect on takes about 130 ms per 1080p frame on two cores; ACES 2.0 views of OpenColorIO configs show PBR Neutral, and the engine reports them as refused. +- A queued 3840x2160 render with every pass needs about 5 GB of memory on the processor; Open Image Denoise has been fetched and run on Linux x86_64 only; the window's own WebGPU engine shows the viewport without the graphics-card denoiser. +- Region render works on the GPU engine only: on the processor `render.region` answers that regions are not supported on that device yet and the whole picture renders. +- Edits made with the command line run in their own engine process and do not show in an open window; edits by agents through the service and MCP do. +- Material preview shows texture slots, graphs and labels from small maps baked on a 1 m square, so projected and procedural materials are approximated there; the Rendered mode is exact. +- Textured materials in the window's own WebGPU path tracer have run only against a stand-in viewport; dispersion stays within the three colour channels, and shadows through glass are opaque. +- STEP and IGES through the CAD worker have run on Linux x86_64 only; the worker reports no progress inside one body. +- FBX is read by the desktop engine, not by the engine in the browser. +- The GPU engine hands caustics and fibres to the CPU, and also scenes where more than 4 transparent or subsurface parts overlap, more than 32 cutaways, a flat-colour cap on a part with a thin film, or rounded edges next to a cap; the output says why. +- Playback in the streamed viewport shows two or three pictures per second; the window's own WebGPU engine does not use the lighter playback preview. +- MP4 from the Form family's ffmpeg build is H.264 only through a hardware encoder and otherwise MPEG-4 Part 2; an ffmpeg with libx264 that the person installed gives H.264. Movies have been encoded on Linux only. +- The UV editor unwraps one very large chart slowly (about 40 s for 65000 triangles in a debug build) and packs chart bounding boxes, not their outlines; label footprints are drawn as for a pinhole camera, so on fisheye and panoramic cameras they are approximate. +- **The render farm.** `formshot-engine worker` on other machines renders the jobs of a batch (every shot, every configuration, a frame range or the current view) for the machine you work on: the project and the files it references travel once as one bundle, pictures come back through part files into one folder, and each equals the local render of the same job. One shared farm token guards the connections (sealed with X25519, HKDF and ChaCha20-Poly1305); a worker listens on 127.0.0.1 unless you pass `--bind`. The Render Farm window, the Final Render window's Render on farm section, seven `farm.*` commands and `formshot-engine farm token`, `workers` and `submit` drive it. Run so far on loopback addresses, never on two separate machines. See [`docs/FARM.md`](FARM.md). +- The Tauri desktop build has been built and run only by the owner, on macOS, at 0.6.0. diff --git a/docs/PREFERENCES.md b/docs/PREFERENCES.md index 7e1379ee..cb83af85 100644 --- a/docs/PREFERENCES.md +++ b/docs/PREFERENCES.md @@ -61,7 +61,7 @@ Export Preferences (General, or the palette) writes one UTF-8 JSON file, `formsh "format": "formshot.preferences", "version": 1, "app": "FormShot", - "appVersion": "0.14.0", + "appVersion": "0.15.0", "exported": "2026-12-05T12:00:00.000Z", "values": { "theme": "studio", "viewportQuality": "sharp", "importMerge": true } } diff --git a/docs/SCRIPTING.md b/docs/SCRIPTING.md index 45c71e70..cf3c247c 100644 --- a/docs/SCRIPTING.md +++ b/docs/SCRIPTING.md @@ -7,7 +7,7 @@ FormShot's service opens a local scripting channel: a socket on 127.0.0.1 that s At startup the service listens on a free port and writes `/.formshot/scripting.json`, where `` is `FORMSHOT_HOME` when set and the user's home folder otherwise. The folder is made 0700 and the file 0600, because the token in it is the key to the channel. ```json -{"protocol": 1, "port": 40317, "token": "<64 hex digits>", "pid": 9100, "version": "0.14.0", "headless": false, "started": "2026-12-05T19:04:50+00:00"} +{"protocol": 1, "port": 40317, "token": "<64 hex digits>", "pid": 9100, "version": "0.15.0", "headless": false, "started": "2026-12-05T19:04:50+00:00"} ``` | Field | Meaning | @@ -34,7 +34,7 @@ The channel is off when `FORMSHOT_SCRIPTING=0` is set or the preference `scripti ```text > {"id": 1, "token": "...", "op": "hello", "client": "my-script", "capabilities": []} -< {"id": 1, "result": {"protocol": 1, "version": "0.14.0", "headless": false, "capabilities": ["command", "batch", "catalogue", "guide", "events", "link"]}} +< {"id": 1, "result": {"protocol": 1, "version": "0.15.0", "headless": false, "capabilities": ["command", "batch", "catalogue", "guide", "events", "link"]}} > {"id": 2, "token": "...", "op": "command", "name": "file.new", "args": {"template": "spheres"}} < {"id": 2, "result": {"change": "full", "ok": true, "revision": 2, "template": "spheres", "title": "Untitled"}} ``` diff --git a/docs/images/formshot-hero.webp b/docs/images/formshot-hero.webp new file mode 100644 index 00000000..b0631b1f Binary files /dev/null and b/docs/images/formshot-hero.webp differ diff --git a/docs/images/formshot-home.webp b/docs/images/formshot-home.webp new file mode 100644 index 00000000..ca635521 Binary files /dev/null and b/docs/images/formshot-home.webp differ diff --git a/docs/images/formshot-lighting.webp b/docs/images/formshot-lighting.webp new file mode 100644 index 00000000..d5e5f62d Binary files /dev/null and b/docs/images/formshot-lighting.webp differ diff --git a/docs/images/formshot-materials.webp b/docs/images/formshot-materials.webp new file mode 100644 index 00000000..bf54e67f Binary files /dev/null and b/docs/images/formshot-materials.webp differ diff --git a/docs/images/formshot-shots.webp b/docs/images/formshot-shots.webp new file mode 100644 index 00000000..155c6db1 Binary files /dev/null and b/docs/images/formshot-shots.webp differ diff --git a/docs/images/renders/chess-on-black.webp b/docs/images/renders/chess-on-black.webp new file mode 100644 index 00000000..ba1d9c72 Binary files /dev/null and b/docs/images/renders/chess-on-black.webp differ diff --git a/docs/images/renders/chess-on-white.webp b/docs/images/renders/chess-on-white.webp new file mode 100644 index 00000000..bef9a605 Binary files /dev/null and b/docs/images/renders/chess-on-white.webp differ diff --git a/docs/images/renders/headphones-on-black.webp b/docs/images/renders/headphones-on-black.webp new file mode 100644 index 00000000..6e272d47 Binary files /dev/null and b/docs/images/renders/headphones-on-black.webp differ diff --git a/docs/images/renders/headphones-on-white.webp b/docs/images/renders/headphones-on-white.webp new file mode 100644 index 00000000..d6f79115 Binary files /dev/null and b/docs/images/renders/headphones-on-white.webp differ diff --git a/docs/images/renders/helmet-on-black.webp b/docs/images/renders/helmet-on-black.webp new file mode 100644 index 00000000..d8c1b8f8 Binary files /dev/null and b/docs/images/renders/helmet-on-black.webp differ diff --git a/docs/images/renders/helmet-on-white.webp b/docs/images/renders/helmet-on-white.webp new file mode 100644 index 00000000..96647077 Binary files /dev/null and b/docs/images/renders/helmet-on-white.webp differ diff --git a/docs/images/renders/shoe-on-black.webp b/docs/images/renders/shoe-on-black.webp new file mode 100644 index 00000000..75d24f76 Binary files /dev/null and b/docs/images/renders/shoe-on-black.webp differ diff --git a/docs/images/renders/shoe-on-white.webp b/docs/images/renders/shoe-on-white.webp new file mode 100644 index 00000000..dcc480e6 Binary files /dev/null and b/docs/images/renders/shoe-on-white.webp differ diff --git a/docs/images/renders/toycar-on-black.webp b/docs/images/renders/toycar-on-black.webp new file mode 100644 index 00000000..8c858617 Binary files /dev/null and b/docs/images/renders/toycar-on-black.webp differ diff --git a/docs/images/renders/toycar-on-white.webp b/docs/images/renders/toycar-on-white.webp new file mode 100644 index 00000000..0a4e436e Binary files /dev/null and b/docs/images/renders/toycar-on-white.webp differ diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index 295c2855..a2d6cc54 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -1,6 +1,6 @@ # frontend HASHOUT_LOG -Living log for the window side, _v0.14.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full. +Living log for the window side, _v0.15.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full. ## Org-navi-map @@ -10,7 +10,7 @@ frontend/ public/splash.html the desktop splash window's page, copied into dist/ by vite build vite.config.ts host false, dev 5300 and preview 5301 strictPort, /api proxied to 127.0.0.1:8300 with ws package.json, package-lock.json version 0.6.0, the family's pinned set, no icon libraries, no three.js - public/formshot-icon.png the FormShot icon's lens (256 px), the favicon and every brand mark in the window + public/formshot-icon.png the FormShot icon's two bottles without the tile (256 px), the favicon and every brand mark in the window src/main.ts boot order: window key, language, shell, modules, translator, reveal, events src/version.ts VERSION, a version site src/modules.ts the fixed list of entry modules @@ -149,6 +149,7 @@ frontend/ window.ts (FarmWindow), form.ts (PlanForm), plan.ts (jobs choice, refusals, submit args), section.ts (Render on farm in Final Render), actions.ts (send, blocked, follow), labels.ts, icons.ts, farm.css src/i18n/modules/farm/ farm namespace (strings.json only) + src/i18n/modules/demos/ demos namespace: the five demo templates, the Demo category, the Templates page line ``` ## Contents @@ -253,6 +254,12 @@ Clause 14: `tabs()` is static, shrunk only for an old engine; the service gives - logged: v0.2.0 · 2026-12-02 Mirrors FormDeck's and FormSurface's Home: resizable side nav (Start, Recent, Templates, Trash with counts, Open project, Agents, Back to Workspace, Local only, Preferences), greeting with Open and New project, the drop hero, one row of recents, template grid with category chips and search, Recent and Templates pages, Trash with Restore, Delete permanently and Empty Trash, and a card menu (Open, Rename, Duplicate, Pin, Hide or Show on Start, Move to Trash) with multi-select and Undo in the toast. FormShot's four templates (Empty studio, Product on white, Dark studio, Turntable) are defined in home.ts with a hand-drawn preview each, so the grid is complete at first paint; each maps to the first service id listed (`empty-studio|empty`, `product-white|studio-light`, `studio-dark|dark-studio`, `turntable`), else the project is created without one and the FormShot id travels in `workspace.load`. A dropped `.fshot` becomes a new library project (create, PUT file) and a model becomes a project with the model stored; both then go through `workspace.load`, because the browser cannot give a path. Layout stays still: a skeleton card holds the recent row, previews are 16:9 boxes, names have fixed heights, thumbnails change with `swapMedia`. The card menu is Home's own glass menu in `#overlay-root` because its rows depend on the selection. Escape is handled on the Home root. Commands: `app.home`, `file.new` (Mod+N), `file.open` (Mod+O), `file.recent`, `home.templates`, `home.trash`, `home.importModel`, and the palette-hidden library seam `library.projects`, `library.create`, `library.saveInfo`, `library.saveThumb`, `library.saveFile`, `library.storeMesh`, `library.urls`. Events emitted: `ui.home.shown`, `hidden`, `opened`, `created`, `trashed`; listened: `ui.workspace.loaded`, `closed`, `saved`, `resync`. Hand-authored icons `cloudOff` and `pin` live in home.ts for febase to adopt. Type-checked; not run in a browser or against the service. +### src/shell/home.ts, src/shell/project-library.ts · the demos are Home's templates +- refers-to: src/shell/home.ts :: ShotTemplate.demo, TEMPLATES, GALLERY, CATEGORIES, create, useTemplate, renderTemplates, renderCounts; src/shell/project-library.ts :: TemplateSummary, CreatedProject, library.demoThumbUrl +- kind: decision +- logged: v0.15.0 · 2026-12-05 +The owner asked for the five demo projects (headphones, racing helmet, chess set, running shoe, toy car) to replace the templates. They are entries of `TEMPLATES` with `demo` set, category `Demo` and the service id `demo:`, and `GALLERY`, the entries with a demo, is what the grid, the chips, the search and the Templates count show; the four built-in templates stay in `TEMPLATES` so New project, a model import and `file.new {template}` still start from them, but no card shows them. With one category the chip row is hidden. A demo card's preview is an `img` of `library.demoThumbUrl(id)` in the same 16:9 box as a project card (the box is reserved by CSS, the `img` hidden until it has a `src`, set at creation), and an image that fails turns the card into the blank scene icon. Choosing a demo opens the same title dialog with the demo's credit line from the service under its description (names and licences, not translated); Use template creates the project from `demo:`, whose service copies the demo's project file and preview, and loads it as a saved project (`saved: true`, `isNew: false`), so the engine opens the copy rather than building a sample. The Templates page's line now says the projects open as copies. New strings are in the `demos` namespace in the 25 languages; the old line "Starting scenes FormShot builds itself..." stays in the home tables, unused. + ## Menus and the top bar ### src/shell/topbar.ts · the top-right buttons @@ -1501,6 +1508,12 @@ Contract B's three service settings are rows of the one table on a new page `scr - logged: v0.13.0 · 2026-12-05 The owner's icon replaces the hand-drawn hexagon mark everywhere the window shows FormShot's own mark: the favicon, the top bar (18 px), Home's brand line (26 px), About in Preferences (40 px) and the starting splash (72 px). They all use `public/formshot-icon.png`, the icon's lens without its tile (`formshot_dark_transparent_noshadow.png` at 256 px), since a tile in a tile reads poorly at 18 px; the desktop app's icon is the tile (see `src-tauri/HASHOUT_LOG.md`). `brandMark(size, label)` now gives an `img` with its width and height set and `decoding="sync"`, and the page shell preloads the picture, so the mark's box is reserved before it loads. A coloured picture no longer takes the accent colour; the `color` rules of `.fsh-mark` and `.fsh-settings-about-mark` are left as they are, harmless. Removed: `public/formshot-logo.svg` and the `logo` entry of `icons.ts`, which nothing used afterwards. Ran: `tsc --noEmit` and `vite build` pass; in headless Chrome with the CPU throttled 4 times, the top bar and Home marks were loaded at 18 and 26 px on first paint, the favicon link pointed at the new file, and layout shift was 0. Not run: the desktop app, light themes (the lens has its own dark ring and reads on light grounds in the owner's light variants). +### public/formshot-icon.png · the owner's second icon, two bottles +- refers-to: public/formshot-icon.png; ../assets/app-icon/source/formshot_dark_transparent_noshadow.png +- kind: decision +- logged: v0.15.0 · 2026-12-05 +The owner's new icon replaces the aperture: a chrome flask with an iridescent edge beside a black square bottle with a chrome cap. The file keeps its name and size, so nothing in the window changes but the picture. It is made from `formshot_dark_transparent_noshadow.png`, cropped to a square 4 percent larger than the bottles' alpha bounds and centred on them, then taken to 256 px with Lanczos; the original canvas leaves half its width empty round the bottles, which would draw them 9 px wide in the 18 px top bar. Checked by drawing the file at 18, 26, 40 and 72 px on the dark and light grounds. + ## Plugins in the window ### src/ui/plugins/index.ts · the Plugins menu, plugins.window and the controller diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 15c1f7a9..5ca55c2d 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "formshot", - "version": "0.14.0", + "version": "0.15.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "formshot", - "version": "0.14.0", + "version": "0.15.0", "license": "Apache-2.0", "dependencies": { "@fontsource/inter": "5.3.0", diff --git a/frontend/package.json b/frontend/package.json index 834bc1b2..38ab13ee 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "formshot", - "version": "0.14.0", + "version": "0.15.0", "private": true, "description": "FormShot product renderer", "license": "Apache-2.0", diff --git a/frontend/public/formshot-icon.png b/frontend/public/formshot-icon.png index 52a1bfd9..d79667b4 100644 Binary files a/frontend/public/formshot-icon.png and b/frontend/public/formshot-icon.png differ diff --git a/frontend/src/i18n/modules/demos/cs.json b/frontend/src/i18n/modules/demos/cs.json new file mode 100644 index 00000000..ea6e374e --- /dev/null +++ b/frontend/src/i18n/modules/demos/cs.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Vyřezávané šachy na své šachovnici, pěšci zakončení sklem.", + "A running shoe with three colourways to switch between.": "Běžecká bota se třemi barevnými variantami k přepínání.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Autíčko v lesklém laku s chromovanými lištami a skleněnými okny.", + "An open-face helmet with aviator goggles and leather chin straps.": "Otevřená přilba s leteckými brýlemi a koženými podbradními pásky.", + "Chess set": "Šachy", + "Demo": "Ukázka", + "Headphones": "Sluchátka", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Sluchátka přes uši vznášející se ve studiu, v černém a stříbrném provedení.", + "Racing helmet": "Závodní přilba", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Hotové projekty pro začátek. Každý se otevře jako kopie ve vaší knihovně.", + "Running shoe": "Běžecká bota", + "Toy car": "Autíčko" +} diff --git a/frontend/src/i18n/modules/demos/da.json b/frontend/src/i18n/modules/demos/da.json new file mode 100644 index 00000000..d31ffdd8 --- /dev/null +++ b/frontend/src/i18n/modules/demos/da.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Et udskåret skakspil på sit bræt, hvor bønderne har en top af glas.", + "A running shoe with three colourways to switch between.": "En løbesko med tre farvevarianter at skifte imellem.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "En legetøjsbil i klarlakeret maling med kromlister og glasruder.", + "An open-face helmet with aviator goggles and leather chin straps.": "En åben hjelm med pilotbriller og hageremme i læder.", + "Chess set": "Skakspil", + "Demo": "Demo", + "Headphones": "Hovedtelefoner", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Over-ear-hovedtelefoner, der svæver i studiet, med en sort og en sølvfarvet finish.", + "Racing helmet": "Racerhjelm", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Færdige projekter at starte fra. Hvert af dem åbnes som en kopi i dit bibliotek.", + "Running shoe": "Løbesko", + "Toy car": "Legetøjsbil" +} diff --git a/frontend/src/i18n/modules/demos/de.json b/frontend/src/i18n/modules/demos/de.json new file mode 100644 index 00000000..f26cf434 --- /dev/null +++ b/frontend/src/i18n/modules/demos/de.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Ein geschnitztes Schachspiel auf seinem Brett, die Bauern mit Köpfen aus Glas.", + "A running shoe with three colourways to switch between.": "Ein Laufschuh mit drei Farbvarianten zum Umschalten.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Ein Spielzeugauto mit Klarlack, Chromleisten und Glasscheiben.", + "An open-face helmet with aviator goggles and leather chin straps.": "Ein Jethelm mit Fliegerbrille und Kinnriemen aus Leder.", + "Chess set": "Schachspiel", + "Demo": "Demo", + "Headphones": "Kopfhörer", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Ohrumschließende Kopfhörer, die im Studio schweben, mit einem schwarzen und einem silbernen Finish.", + "Racing helmet": "Rennhelm", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Fertige Projekte zum Loslegen. Jedes öffnet sich als Kopie in deiner Bibliothek.", + "Running shoe": "Laufschuh", + "Toy car": "Spielzeugauto" +} diff --git a/frontend/src/i18n/modules/demos/es-MX.json b/frontend/src/i18n/modules/demos/es-MX.json new file mode 100644 index 00000000..c628fcf2 --- /dev/null +++ b/frontend/src/i18n/modules/demos/es-MX.json @@ -0,0 +1,8 @@ +{ + "A running shoe with three colourways to switch between.": "Un tenis para correr con tres combinaciones de colores entre las que alternar.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Un carrito de juguete con pintura barnizada, molduras cromadas y ventanillas de vidrio.", + "Headphones": "Audífonos", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Audífonos de diadema que flotan en el estudio, con un acabado negro y otro plateado.", + "Running shoe": "Tenis para correr", + "Toy car": "Carrito de juguete" +} diff --git a/frontend/src/i18n/modules/demos/es.json b/frontend/src/i18n/modules/demos/es.json new file mode 100644 index 00000000..e05fa2c0 --- /dev/null +++ b/frontend/src/i18n/modules/demos/es.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Un juego de ajedrez tallado sobre su tablero, con los peones rematados en vidrio.", + "A running shoe with three colourways to switch between.": "Una zapatilla para correr con tres combinaciones de colores entre las que alternar.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Un coche de juguete con pintura barnizada, molduras cromadas y ventanillas de vidrio.", + "An open-face helmet with aviator goggles and leather chin straps.": "Un casco abierto con gafas de aviador y barboquejos de cuero.", + "Chess set": "Juego de ajedrez", + "Demo": "Demo", + "Headphones": "Auriculares", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Auriculares de diadema que flotan en el estudio, con un acabado negro y otro plateado.", + "Racing helmet": "Casco de carreras", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Proyectos listos para empezar. Cada uno se abre como una copia en tu biblioteca.", + "Running shoe": "Zapatilla para correr", + "Toy car": "Coche de juguete" +} diff --git a/frontend/src/i18n/modules/demos/fi.json b/frontend/src/i18n/modules/demos/fi.json new file mode 100644 index 00000000..41080fc6 --- /dev/null +++ b/frontend/src/i18n/modules/demos/fi.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Veistetty shakkipeli laudallaan, sotilaiden päät lasia.", + "A running shoe with three colourways to switch between.": "Juoksukenkä, jossa on kolme vaihdettavaa värivaihtoehtoa.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Leikkiauto, jossa on kirkaslakattu maali, kromilistat ja lasi-ikkunat.", + "An open-face helmet with aviator goggles and leather chin straps.": "Avoin kypärä, jossa on lentäjänlasit ja nahkaiset leukahihnat.", + "Chess set": "Shakkipeli", + "Demo": "Demo", + "Headphones": "Kuulokkeet", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Korvat peittävät kuulokkeet leijumassa studiossa, mustana ja hopeisena.", + "Racing helmet": "Kilpakypärä", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Valmiita projekteja aloitukseen. Kukin avautuu kopiona kirjastossasi.", + "Running shoe": "Juoksukenkä", + "Toy car": "Leikkiauto" +} diff --git a/frontend/src/i18n/modules/demos/fr-CA.json b/frontend/src/i18n/modules/demos/fr-CA.json new file mode 100644 index 00000000..a77b01eb --- /dev/null +++ b/frontend/src/i18n/modules/demos/fr-CA.json @@ -0,0 +1,6 @@ +{ + "A toy car in clear-coated paint with chrome trim and glass windows.": "Une petite auto jouet à la peinture vernie, avec baguettes chromées et vitres en verre.", + "Headphones": "Casque d'écoute", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Un casque d'écoute circum-auriculaire qui flotte dans le studio, avec une finition noire et une finition argent.", + "Toy car": "Petite auto" +} diff --git a/frontend/src/i18n/modules/demos/fr.json b/frontend/src/i18n/modules/demos/fr.json new file mode 100644 index 00000000..95926ce4 --- /dev/null +++ b/frontend/src/i18n/modules/demos/fr.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Un jeu d'échecs sculpté sur son échiquier, les pions coiffés de verre.", + "A running shoe with three colourways to switch between.": "Une chaussure de course avec trois coloris entre lesquels basculer.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Une petite voiture à la peinture vernie, avec baguettes chromées et vitres en verre.", + "An open-face helmet with aviator goggles and leather chin straps.": "Un casque jet avec des lunettes d'aviateur et des jugulaires en cuir.", + "Chess set": "Jeu d'échecs", + "Demo": "Démo", + "Headphones": "Casque audio", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Un casque audio circum-auriculaire qui flotte dans le studio, avec une finition noire et une finition argent.", + "Racing helmet": "Casque de course", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Des projets prêts à l'emploi pour commencer. Chacun s'ouvre comme une copie dans votre bibliothèque.", + "Running shoe": "Chaussure de course", + "Toy car": "Petite voiture" +} diff --git a/frontend/src/i18n/modules/demos/hu.json b/frontend/src/i18n/modules/demos/hu.json new file mode 100644 index 00000000..7e17620e --- /dev/null +++ b/frontend/src/i18n/modules/demos/hu.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Faragott sakkészlet a tábláján, a gyalogok tetején üveggel.", + "A running shoe with three colourways to switch between.": "Futócipő három, egymás között váltható színváltozatban.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Játékautó átlátszó lakkal fedett fényezéssel, króm díszlécekkel és üvegablakokkal.", + "An open-face helmet with aviator goggles and leather chin straps.": "Nyitott bukósisak pilótaszemüveggel és bőr állszíjakkal.", + "Chess set": "Sakkészlet", + "Demo": "Bemutató", + "Headphones": "Fejhallgató", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "A stúdióban lebegő, fület körbeölelő fejhallgató fekete és ezüst kivitelben.", + "Racing helmet": "Versenysisak", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Kész projektek kiindulásnak. Mindegyik másolatként nyílik meg a könyvtárában.", + "Running shoe": "Futócipő", + "Toy car": "Játékautó" +} diff --git a/frontend/src/i18n/modules/demos/id.json b/frontend/src/i18n/modules/demos/id.json new file mode 100644 index 00000000..fca7e407 --- /dev/null +++ b/frontend/src/i18n/modules/demos/id.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Set catur berukir di atas papannya, dengan pion berujung kaca.", + "A running shoe with three colourways to switch between.": "Sepatu lari dengan tiga pilihan warna yang bisa diganti-ganti.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Mobil mainan dengan cat berlapis bening, list krom, dan jendela kaca.", + "An open-face helmet with aviator goggles and leather chin straps.": "Helm terbuka dengan kacamata penerbang dan tali dagu kulit.", + "Chess set": "Set catur", + "Demo": "Demo", + "Headphones": "Headphone", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Headphone over-ear yang melayang di studio, dengan lapisan akhir hitam dan perak.", + "Racing helmet": "Helm balap", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Proyek siap pakai untuk memulai. Masing-masing terbuka sebagai salinan di pustaka Anda.", + "Running shoe": "Sepatu lari", + "Toy car": "Mobil mainan" +} diff --git a/frontend/src/i18n/modules/demos/it.json b/frontend/src/i18n/modules/demos/it.json new file mode 100644 index 00000000..c6ac08b6 --- /dev/null +++ b/frontend/src/i18n/modules/demos/it.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Un set di scacchi intagliati sulla sua scacchiera, con i pedoni sormontati di vetro.", + "A running shoe with three colourways to switch between.": "Una scarpa da corsa con tre colorazioni tra cui passare.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Una macchinina con vernice trasparente lucida, finiture cromate e finestrini di vetro.", + "An open-face helmet with aviator goggles and leather chin straps.": "Un casco aperto con occhiali da aviatore e cinturini sottogola in pelle.", + "Chess set": "Set di scacchi", + "Demo": "Demo", + "Headphones": "Cuffie", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Cuffie over-ear sospese nello studio, con una finitura nera e una argento.", + "Racing helmet": "Casco da corsa", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Progetti pronti da cui partire. Ognuno si apre come copia nella tua libreria.", + "Running shoe": "Scarpa da corsa", + "Toy car": "Macchinina" +} diff --git a/frontend/src/i18n/modules/demos/ja.json b/frontend/src/i18n/modules/demos/ja.json new file mode 100644 index 00000000..04619c33 --- /dev/null +++ b/frontend/src/i18n/modules/demos/ja.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "盤の上に並んだ彫刻のチェスセット。ポーンの頭はガラスです。", + "A running shoe with three colourways to switch between.": "3つのカラーウェイを切り替えられるランニングシューズ。", + "A toy car in clear-coated paint with chrome trim and glass windows.": "クリアコート塗装にクロームのモールとガラス窓を備えたおもちゃの車。", + "An open-face helmet with aviator goggles and leather chin straps.": "飛行士ゴーグルと革のあごひもが付いたジェット型ヘルメット。", + "Chess set": "チェスセット", + "Demo": "デモ", + "Headphones": "ヘッドホン", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "スタジオに浮かぶオーバーイヤーヘッドホン。ブラックとシルバーの仕上げがあります。", + "Racing helmet": "レーシングヘルメット", + "Ready-made projects to start from. Each one opens as a copy in your library.": "そのまま始められる既成のプロジェクトです。どれもライブラリにコピーとして開きます。", + "Running shoe": "ランニングシューズ", + "Toy car": "おもちゃの車" +} diff --git a/frontend/src/i18n/modules/demos/ko.json b/frontend/src/i18n/modules/demos/ko.json new file mode 100644 index 00000000..eb8a07e8 --- /dev/null +++ b/frontend/src/i18n/modules/demos/ko.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "보드 위에 놓인 조각 체스 세트로, 폰의 윗부분은 유리입니다.", + "A running shoe with three colourways to switch between.": "세 가지 컬러웨이를 전환할 수 있는 러닝화.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "클리어 코트 도장에 크롬 몰딩과 유리 창문을 갖춘 장난감 자동차.", + "An open-face helmet with aviator goggles and leather chin straps.": "비행사 고글과 가죽 턱끈이 달린 오픈페이스 헬멧.", + "Chess set": "체스 세트", + "Demo": "데모", + "Headphones": "헤드폰", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "스튜디오에 떠 있는 오버이어 헤드폰으로, 블랙과 실버 마감이 있습니다.", + "Racing helmet": "레이싱 헬멧", + "Ready-made projects to start from. Each one opens as a copy in your library.": "바로 시작할 수 있는 완성된 프로젝트입니다. 각 프로젝트는 라이브러리에 사본으로 열립니다.", + "Running shoe": "러닝화", + "Toy car": "장난감 자동차" +} diff --git a/frontend/src/i18n/modules/demos/nb.json b/frontend/src/i18n/modules/demos/nb.json new file mode 100644 index 00000000..fb152d2d --- /dev/null +++ b/frontend/src/i18n/modules/demos/nb.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Et utskåret sjakkspill på brettet sitt, med bønder som har topp av glass.", + "A running shoe with three colourways to switch between.": "En løpesko med tre fargevarianter å bytte mellom.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "En lekebil i klarlakkert lakk med kromlister og glassruter.", + "An open-face helmet with aviator goggles and leather chin straps.": "En åpen hjelm med flygerbriller og hakestropper i skinn.", + "Chess set": "Sjakkspill", + "Demo": "Demo", + "Headphones": "Hodetelefoner", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Over-ear-hodetelefoner som svever i studioet, med en svart og en sølvfarget finish.", + "Racing helmet": "Racinghjelm", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Ferdige prosjekter å starte fra. Hvert av dem åpnes som en kopi i biblioteket ditt.", + "Running shoe": "Løpesko", + "Toy car": "Lekebil" +} diff --git a/frontend/src/i18n/modules/demos/nl.json b/frontend/src/i18n/modules/demos/nl.json new file mode 100644 index 00000000..2252bf4f --- /dev/null +++ b/frontend/src/i18n/modules/demos/nl.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Een gesneden schaakspel op zijn bord, de pionnen met een top van glas.", + "A running shoe with three colourways to switch between.": "Een hardloopschoen met drie kleurstellingen om tussen te wisselen.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Een speelgoedauto in blank gelakte verf met chromen sierlijsten en glazen ruiten.", + "An open-face helmet with aviator goggles and leather chin straps.": "Een open helm met een vliegeniersbril en leren kinriemen.", + "Chess set": "Schaakspel", + "Demo": "Demo", + "Headphones": "Koptelefoon", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Een over-ear koptelefoon die in de studio zweeft, met een zwarte en een zilveren afwerking.", + "Racing helmet": "Racehelm", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Kant-en-klare projecten om mee te beginnen. Elk project opent als kopie in je bibliotheek.", + "Running shoe": "Hardloopschoen", + "Toy car": "Speelgoedauto" +} diff --git a/frontend/src/i18n/modules/demos/pl.json b/frontend/src/i18n/modules/demos/pl.json new file mode 100644 index 00000000..20b80d5c --- /dev/null +++ b/frontend/src/i18n/modules/demos/pl.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Rzeźbiony komplet szachów na swojej szachownicy, z pionkami zwieńczonymi szkłem.", + "A running shoe with three colourways to switch between.": "But do biegania w trzech wersjach kolorystycznych do wyboru.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Samochodzik-zabawka pokryty bezbarwnym lakierem, z chromowanymi listwami i szklanymi szybami.", + "An open-face helmet with aviator goggles and leather chin straps.": "Otwarty kask z goglami lotniczymi i skórzanymi paskami pod brodę.", + "Chess set": "Szachy", + "Demo": "Demo", + "Headphones": "Słuchawki", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Słuchawki wokółuszne unoszące się w studiu, w wykończeniu czarnym i srebrnym.", + "Racing helmet": "Kask wyścigowy", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Gotowe projekty na początek. Każdy otwiera się jako kopia w Twojej bibliotece.", + "Running shoe": "But do biegania", + "Toy car": "Samochodzik" +} diff --git a/frontend/src/i18n/modules/demos/pt-BR.json b/frontend/src/i18n/modules/demos/pt-BR.json new file mode 100644 index 00000000..7d50b44c --- /dev/null +++ b/frontend/src/i18n/modules/demos/pt-BR.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Um jogo de xadrez entalhado sobre o tabuleiro, com os peões coroados de vidro.", + "A running shoe with three colourways to switch between.": "Um tênis de corrida com três combinações de cores para alternar.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Um carrinho de brinquedo com pintura envernizada, frisos cromados e janelas de vidro.", + "An open-face helmet with aviator goggles and leather chin straps.": "Um capacete aberto com óculos de aviador e jugulares de couro.", + "Chess set": "Jogo de xadrez", + "Demo": "Demo", + "Headphones": "Fones de ouvido", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Fones de ouvido over-ear flutuando no estúdio, com um acabamento preto e outro prateado.", + "Racing helmet": "Capacete de corrida", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Projetos prontos para começar. Cada um abre como uma cópia na sua biblioteca.", + "Running shoe": "Tênis de corrida", + "Toy car": "Carrinho de brinquedo" +} diff --git a/frontend/src/i18n/modules/demos/ru.json b/frontend/src/i18n/modules/demos/ru.json new file mode 100644 index 00000000..35eb45bf --- /dev/null +++ b/frontend/src/i18n/modules/demos/ru.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Резной шахматный набор на своей доске, пешки увенчаны стеклом.", + "A running shoe with three colourways to switch between.": "Беговые кроссовки с тремя расцветками на выбор.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Игрушечная машинка с лакированной окраской, хромированными молдингами и стеклянными окнами.", + "An open-face helmet with aviator goggles and leather chin straps.": "Открытый шлем с авиаторскими очками и кожаными подбородочными ремнями.", + "Chess set": "Шахматы", + "Demo": "Демо", + "Headphones": "Наушники", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Полноразмерные наушники, парящие в студии, в чёрной и серебристой отделке.", + "Racing helmet": "Гоночный шлем", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Готовые проекты для начала. Каждый открывается как копия в вашей библиотеке.", + "Running shoe": "Беговые кроссовки", + "Toy car": "Игрушечная машинка" +} diff --git a/frontend/src/i18n/modules/demos/strings.json b/frontend/src/i18n/modules/demos/strings.json new file mode 100644 index 00000000..cebe195b --- /dev/null +++ b/frontend/src/i18n/modules/demos/strings.json @@ -0,0 +1,14 @@ +[ + "A carved chess set on its board, the pawns topped with glass.", + "A running shoe with three colourways to switch between.", + "A toy car in clear-coated paint with chrome trim and glass windows.", + "An open-face helmet with aviator goggles and leather chin straps.", + "Chess set", + "Demo", + "Headphones", + "Over-ear headphones floating in the studio, with a black and a silver finish.", + "Racing helmet", + "Ready-made projects to start from. Each one opens as a copy in your library.", + "Running shoe", + "Toy car" +] diff --git a/frontend/src/i18n/modules/demos/sv.json b/frontend/src/i18n/modules/demos/sv.json new file mode 100644 index 00000000..e20eb0b4 --- /dev/null +++ b/frontend/src/i18n/modules/demos/sv.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Ett snidat schackspel på sitt bräde, med bönder som har toppar av glas.", + "A running shoe with three colourways to switch between.": "En löparsko med tre färgvarianter att växla mellan.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "En leksaksbil i klarlackerad lack med kromlister och glasrutor.", + "An open-face helmet with aviator goggles and leather chin straps.": "En öppen hjälm med pilotglasögon och hakremmar i läder.", + "Chess set": "Schackspel", + "Demo": "Demo", + "Headphones": "Hörlurar", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Over-ear-hörlurar som svävar i studion, med en svart och en silverfärgad finish.", + "Racing helmet": "Racinghjälm", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Färdiga projekt att börja från. Vart och ett öppnas som en kopia i ditt bibliotek.", + "Running shoe": "Löparsko", + "Toy car": "Leksaksbil" +} diff --git a/frontend/src/i18n/modules/demos/th.json b/frontend/src/i18n/modules/demos/th.json new file mode 100644 index 00000000..697195d9 --- /dev/null +++ b/frontend/src/i18n/modules/demos/th.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "ชุดหมากรุกแกะสลักบนกระดาน หัวเบี้ยเป็นแก้ว", + "A running shoe with three colourways to switch between.": "รองเท้าวิ่งที่มีสามโทนสีให้สลับได้", + "A toy car in clear-coated paint with chrome trim and glass windows.": "รถของเล่นสีเคลือบเงาใส พร้อมคิ้วโครเมียมและหน้าต่างกระจก", + "An open-face helmet with aviator goggles and leather chin straps.": "หมวกกันน็อกแบบเปิดหน้า พร้อมแว่นนักบินและสายรัดคางหนัง", + "Chess set": "ชุดหมากรุก", + "Demo": "เดโม", + "Headphones": "หูฟัง", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "หูฟังแบบครอบหูลอยอยู่ในสตูดิโอ มีผิวสีดำและสีเงิน", + "Racing helmet": "หมวกกันน็อกแข่ง", + "Ready-made projects to start from. Each one opens as a copy in your library.": "โปรเจกต์สำเร็จรูปสำหรับเริ่มต้น แต่ละโปรเจกต์จะเปิดเป็นสำเนาในคลังของคุณ", + "Running shoe": "รองเท้าวิ่ง", + "Toy car": "รถของเล่น" +} diff --git a/frontend/src/i18n/modules/demos/tr.json b/frontend/src/i18n/modules/demos/tr.json new file mode 100644 index 00000000..5d807a24 --- /dev/null +++ b/frontend/src/i18n/modules/demos/tr.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Tahtasının üzerinde oyma bir satranç takımı; piyonların tepesi camdan.", + "A running shoe with three colourways to switch between.": "Aralarında geçiş yapılabilen üç renk seçeneğiyle bir koşu ayakkabısı.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Şeffaf vernikli boyası, krom çıtaları ve cam pencereleri olan bir oyuncak araba.", + "An open-face helmet with aviator goggles and leather chin straps.": "Pilot gözlüğü ve deri çene kayışları olan açık yüzlü bir kask.", + "Chess set": "Satranç takımı", + "Demo": "Demo", + "Headphones": "Kulaklık", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Stüdyoda havada süzülen, siyah ve gümüş kaplamalı kulak çevreleyen kulaklık.", + "Racing helmet": "Yarış kaskı", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Başlamak için hazır projeler. Her biri kitaplığınızda bir kopya olarak açılır.", + "Running shoe": "Koşu ayakkabısı", + "Toy car": "Oyuncak araba" +} diff --git a/frontend/src/i18n/modules/demos/uk.json b/frontend/src/i18n/modules/demos/uk.json new file mode 100644 index 00000000..fb84deb4 --- /dev/null +++ b/frontend/src/i18n/modules/demos/uk.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Різьблений шаховий набір на своїй дошці, пішаки увінчані склом.", + "A running shoe with three colourways to switch between.": "Бігові кросівки з трьома варіантами кольору на вибір.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Іграшкова машинка з лакованим фарбуванням, хромованими молдингами та скляними вікнами.", + "An open-face helmet with aviator goggles and leather chin straps.": "Відкритий шолом з авіаторськими окулярами та шкіряними підборідними ременями.", + "Chess set": "Шахи", + "Demo": "Демо", + "Headphones": "Навушники", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Повнорозмірні навушники, що ширяють у студії, у чорному та сріблястому оздобленні.", + "Racing helmet": "Гоночний шолом", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Готові проєкти для початку. Кожен відкривається як копія у вашій бібліотеці.", + "Running shoe": "Бігові кросівки", + "Toy car": "Іграшкова машинка" +} diff --git a/frontend/src/i18n/modules/demos/vi.json b/frontend/src/i18n/modules/demos/vi.json new file mode 100644 index 00000000..bdb571b4 --- /dev/null +++ b/frontend/src/i18n/modules/demos/vi.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "Bộ cờ vua chạm khắc trên bàn cờ, đầu các quân tốt bằng thủy tinh.", + "A running shoe with three colourways to switch between.": "Giày chạy bộ với ba phối màu để chuyển đổi.", + "A toy car in clear-coated paint with chrome trim and glass windows.": "Xe đồ chơi sơn phủ bóng trong, có viền mạ crôm và cửa kính.", + "An open-face helmet with aviator goggles and leather chin straps.": "Mũ bảo hiểm hở mặt với kính phi công và quai cằm bằng da.", + "Chess set": "Bộ cờ vua", + "Demo": "Demo", + "Headphones": "Tai nghe", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "Tai nghe trùm tai lơ lửng trong studio, với lớp hoàn thiện đen và bạc.", + "Racing helmet": "Mũ bảo hiểm đua", + "Ready-made projects to start from. Each one opens as a copy in your library.": "Các dự án dựng sẵn để bắt đầu. Mỗi dự án mở ra thành một bản sao trong thư viện của bạn.", + "Running shoe": "Giày chạy bộ", + "Toy car": "Xe đồ chơi" +} diff --git a/frontend/src/i18n/modules/demos/zh-CN.json b/frontend/src/i18n/modules/demos/zh-CN.json new file mode 100644 index 00000000..ee9efb6e --- /dev/null +++ b/frontend/src/i18n/modules/demos/zh-CN.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "一套雕刻的国际象棋摆在棋盘上,兵的顶部是玻璃。", + "A running shoe with three colourways to switch between.": "一双跑鞋,有三种配色可切换。", + "A toy car in clear-coated paint with chrome trim and glass windows.": "一辆玩具车,清漆涂装,配有镀铬饰条和玻璃车窗。", + "An open-face helmet with aviator goggles and leather chin straps.": "一顶开放式头盔,配有飞行员护目镜和皮革下巴带。", + "Chess set": "国际象棋", + "Demo": "演示", + "Headphones": "耳机", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "悬浮在影棚中的头戴式耳机,有黑色和银色两种饰面。", + "Racing helmet": "赛车头盔", + "Ready-made projects to start from. Each one opens as a copy in your library.": "可直接开始的现成项目。每个项目都会以副本形式在你的资源库中打开。", + "Running shoe": "跑鞋", + "Toy car": "玩具车" +} diff --git a/frontend/src/i18n/modules/demos/zh-TW.json b/frontend/src/i18n/modules/demos/zh-TW.json new file mode 100644 index 00000000..51ee822d --- /dev/null +++ b/frontend/src/i18n/modules/demos/zh-TW.json @@ -0,0 +1,14 @@ +{ + "A carved chess set on its board, the pawns topped with glass.": "一套雕刻的西洋棋擺在棋盤上,兵的頂端是玻璃。", + "A running shoe with three colourways to switch between.": "一雙跑鞋,有三種配色可切換。", + "A toy car in clear-coated paint with chrome trim and glass windows.": "一輛玩具車,清漆塗裝,配有鍍鉻飾條和玻璃車窗。", + "An open-face helmet with aviator goggles and leather chin straps.": "一頂開放式安全帽,配有飛行員護目鏡和皮革下巴帶。", + "Chess set": "西洋棋", + "Demo": "示範", + "Headphones": "耳機", + "Over-ear headphones floating in the studio, with a black and a silver finish.": "懸浮在攝影棚中的耳罩式耳機,有黑色和銀色兩種表面處理。", + "Racing helmet": "賽車安全帽", + "Ready-made projects to start from. Each one opens as a copy in your library.": "可直接開始的現成專案。每個專案都會以副本形式在你的資源庫中開啟。", + "Running shoe": "跑鞋", + "Toy car": "玩具車" +} diff --git a/frontend/src/shell/home.ts b/frontend/src/shell/home.ts index e800d02d..d5ed9c67 100644 --- a/frontend/src/shell/home.ts +++ b/frontend/src/shell/home.ts @@ -12,7 +12,7 @@ import { library, projectPath, registerLibraryCommands, type ProjectSummary, typ type HomePage = 'start' | 'recent' | 'templates' | 'trash'; -interface ShotTemplate { id: string; name: string; category: string; description: string; tags: string[]; service: string[]; art: string } +interface ShotTemplate { id: string; name: string; category: string; description: string; tags: string[]; service: string[]; art: string; demo?: string } const NAV_KEY = 'formshot.homeNav'; const NAV_HIDDEN_KEY = 'formshot.homeNavHidden'; @@ -49,9 +49,30 @@ const TEMPLATES: ShotTemplate[] = [ description: 'A round plinth with a camera that orbits once, ready for a 360 render.', art: art('turntable', ''), }, + { + id: 'demo-headphones', name: 'Headphones', category: 'Demo', tags: ['headphones', 'audio', 'metal', 'leather', 'variants', 'floating'], service: ['demo:headphones'], demo: 'headphones', art: '', + description: 'Over-ear headphones floating in the studio, with a black and a silver finish.', + }, + { + id: 'demo-helmet', name: 'Racing helmet', category: 'Demo', tags: ['helmet', 'motorcycle', 'goggles', 'chrome', 'leather', 'floating'], service: ['demo:helmet'], demo: 'helmet', art: '', + description: 'An open-face helmet with aviator goggles and leather chin straps.', + }, + { + id: 'demo-chess', name: 'Chess set', category: 'Demo', tags: ['chess', 'glass', 'transmission', 'textured', 'board game'], service: ['demo:chess'], demo: 'chess', art: '', + description: 'A carved chess set on its board, the pawns topped with glass.', + }, + { + id: 'demo-shoe', name: 'Running shoe', category: 'Demo', tags: ['shoe', 'sneaker', 'fabric', 'variants', 'colourway'], service: ['demo:shoe'], demo: 'shoe', art: '', + description: 'A running shoe with three colourways to switch between.', + }, + { + id: 'demo-toycar', name: 'Toy car', category: 'Demo', tags: ['car', 'toy', 'clearcoat', 'chrome', 'glass'], service: ['demo:toycar'], demo: 'toycar', art: '', + description: 'A toy car in clear-coated paint with chrome trim and glass windows.', + }, ]; const DEFAULT_TEMPLATE = 'empty-studio'; -const CATEGORIES = ['All', ...Array.from(new Set(TEMPLATES.map((x) => x.category)))]; +const GALLERY = TEMPLATES.filter((x) => !!x.demo); +const CATEGORIES = ['All', ...Array.from(new Set(GALLERY.map((x) => x.category)))]; function pref(key: string): boolean { return getCommand('settings.get')?.run({ key }) !== false; @@ -152,7 +173,7 @@ ${nav('start', icon('home', 16), 'Start')}${nav('recent', icon('layers', 16), 'R - @@ -414,9 +435,10 @@ ${nav('start', icon('home', 16), 'Start')}${nav('recent', icon('layers', 16), 'R const cards = Array.from(this.root.querySelectorAll(`.fsh-home-card[data-template="${CSS.escape(tpl.id)}"]`)); const undo = cards.map((c) => { c.setAttribute('aria-busy', 'true'); return pendingClass(c); }); try { - const made = await library.create({ title: title || t(tpl.name), template: this.serviceId(tpl.id) }); + const made = await library.create({ title: title || t(tpl.name), template: tpl.demo ? tpl.service[0] : this.serviceId(tpl.id) }); this.ctx.events.emit({ type: 'ui.home.created', project: made.id, template: tpl.id }); - await this.load(made.id, { title: made.title, saved: false, isNew: true, template: tpl.id, sample: made.sample || tpl.id }); + if (tpl.demo) await this.load(made.id, { title: made.title, saved: true, isNew: false, template: tpl.id }); + else await this.load(made.id, { title: made.title, saved: false, isNew: true, template: tpl.id, sample: made.sample || tpl.id }); } catch (e) { toast(t('Could not start the project: {reason}', { reason: why(e) }), 'error'); } finally { @@ -431,6 +453,12 @@ ${nav('start', icon('home', 16), 'Start')}${nav('recent', icon('layers', 16), 'R const d = new Dialog(tpl.name); const form = el(`

`); setText(form.querySelector('.fsh-home-form-about'), t(tpl.description)); + const credit = tpl.demo ? this.service.find((s) => s.id === tpl.service[0])?.credit : ''; + if (credit) { + const line = el('

'); + setText(line, credit); + form.insertBefore(line, form.querySelector('.fsh-home-field')); + } const title = form.querySelector('.fsh-home-form-title') as HTMLInputElement; title.value = t(tpl.name); d.body.appendChild(form); @@ -630,7 +658,7 @@ ${nav('start', icon('home', 16), 'Start')}${nav('recent', icon('layers', 16), 'R private renderCounts(): void { setText(this.root.querySelector('.fsh-home-project-count'), String(this.projects.length)); - setText(this.root.querySelector('.fsh-home-tpl-count'), String(TEMPLATES.length)); + setText(this.root.querySelector('.fsh-home-tpl-count'), String(GALLERY.length)); setText(this.root.querySelector('.fsh-home-trash-count'), String(this.trashed.length)); } @@ -736,11 +764,12 @@ ${nav('start', icon('home', 16), 'Start')}${nav('recent', icon('layers', 16), 'R private renderTemplates(): void { const q = this.tplQuery; const hay = (x: ShotTemplate): string => `${x.name} ${t(x.name)} ${x.category} ${t(x.category)} ${x.tags.join(' ')} ${x.description} ${t(x.description)}`.toLowerCase(); - const shown = new Set(TEMPLATES.filter((x) => (this.category === 'All' || x.category === this.category) && (!q || hay(x).includes(q))).map((x) => x.id)); + const shown = new Set(GALLERY.filter((x) => (this.category === 'All' || x.category === this.category) && (!q || hay(x).includes(q))).map((x) => x.id)); for (const host of Array.from(this.root.querySelectorAll('.fsh-home-cats'))) { + setHidden(host, CATEGORIES.length < 3); const chip = (n: HTMLElement, c: string): void => { setClass(n, 'is-active', c === this.category); - setText(n.querySelector('.fsh-home-chip-count'), String(c === 'All' ? TEMPLATES.length : TEMPLATES.filter((x) => x.category === c).length)); + setText(n.querySelector('.fsh-home-chip-count'), String(c === 'All' ? GALLERY.length : GALLERY.filter((x) => x.category === c).length)); }; patchList(host, CATEGORIES, { key: (c) => c, @@ -749,11 +778,17 @@ ${nav('start', icon('home', 16), 'Start')}${nav('recent', icon('layers', 16), 'R }); } const card = (x: ShotTemplate): HTMLElement => { - const n = el(``); + const preview = x.demo ? '' : x.art; + const n = el(``); n.title = t(x.description); + const img = x.demo ? n.querySelector('img') : null; + if (img && x.demo) { + img.onerror = () => this.blank(n); + img.src = library.demoThumbUrl(x.demo); + } return n; }; - const grid = (host: HTMLElement): void => patchList(host, TEMPLATES, { + const grid = (host: HTMLElement): void => patchList(host, GALLERY, { key: (x) => x.id, create: (x) => { const n = card(x); n.hidden = !shown.has(x.id); return n; }, update: (n, x) => setHidden(n, !shown.has(x.id)), diff --git a/frontend/src/shell/project-library.ts b/frontend/src/shell/project-library.ts index b98b3cf6..bd4c2418 100644 --- a/frontend/src/shell/project-library.ts +++ b/frontend/src/shell/project-library.ts @@ -15,9 +15,9 @@ export interface ProjectSummary { thumb: boolean; meshStored: boolean; } -export interface CreatedProject extends ProjectSummary { sample: string } +export interface CreatedProject extends ProjectSummary { sample: string; demo?: string } export interface TrashedProject { entry: string; id: string; title: string; parts: number | null; deletedAt: number; thumb: boolean } -export interface TemplateSummary { id: string; name: string; category: string; tags: string[]; description: string; sample: string; source?: string } +export interface TemplateSummary { id: string; name: string; category: string; tags: string[]; description: string; sample: string; source?: string; demo?: string; credit?: string; thumb?: boolean } export interface LibrarySettings { pinned: string[]; recentHidden: string[] } export interface LibraryState { counts: { projects: number; templates: number; trash: number; folder: string }; settings: LibrarySettings } export interface ProjectInfo { title?: string; mesh?: string; template?: string; parts?: number; materials?: number } @@ -62,6 +62,7 @@ export const library = { fileUrl: (id: string): string => api.url(`${at(id)}/file`), meshUrl: (id: string): string => api.url(`${at(id)}/mesh`), thumbUrl: (id: string, version: string): string => api.url(`${at(id)}/thumb?v=${encodeURIComponent(version)}`), + demoThumbUrl: (demo: string): string => api.url(`/api/project-templates/demo/${encodeURIComponent(demo)}/thumb`), restore: (entry: string) => api.post(`${inTrash(entry)}/restore`, {}), purge: (entry: string) => api.del<{ ok: boolean }>(inTrash(entry)), emptyTrash: () => api.del<{ ok: boolean; removed: number }>('/api/projects/trash'), diff --git a/frontend/src/version.ts b/frontend/src/version.ts index bc75a427..c6c247e3 100644 --- a/frontend/src/version.ts +++ b/frontend/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.14.0'; +export const VERSION = '0.15.0'; diff --git a/native/Cargo.lock b/native/Cargo.lock index 109fea55..5e530873 100644 --- a/native/Cargo.lock +++ b/native/Cargo.lock @@ -360,7 +360,7 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "fsh-accel" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-core", "rayon", @@ -368,7 +368,7 @@ dependencies = [ [[package]] name = "fsh-bake" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-core", "fsh-io", @@ -378,7 +378,7 @@ dependencies = [ [[package]] name = "fsh-cad" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-core", "fsh-io", @@ -387,7 +387,7 @@ dependencies = [ [[package]] name = "fsh-cli" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-commands", "fsh-farm", @@ -397,7 +397,7 @@ dependencies = [ [[package]] name = "fsh-commands" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-accel", "fsh-bake", @@ -418,18 +418,18 @@ dependencies = [ [[package]] name = "fsh-core" -version = "0.14.0" +version = "0.15.0" [[package]] name = "fsh-denoise" -version = "0.14.0" +version = "0.15.0" dependencies = [ "rayon", ] [[package]] name = "fsh-farm" -version = "0.14.0" +version = "0.15.0" dependencies = [ "chacha20poly1305", "fsh-format", @@ -444,7 +444,7 @@ dependencies = [ [[package]] name = "fsh-format" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-core", "fsh-scene", @@ -454,7 +454,7 @@ dependencies = [ [[package]] name = "fsh-io" -version = "0.14.0" +version = "0.15.0" dependencies = [ "bevy_mikktspace", "fsh-core", @@ -467,7 +467,7 @@ dependencies = [ [[package]] name = "fsh-materials" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-core", "serde", @@ -475,11 +475,11 @@ dependencies = [ [[package]] name = "fsh-ocio" -version = "0.14.0" +version = "0.15.0" [[package]] name = "fsh-oidn" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-denoise", "libloading", @@ -487,7 +487,7 @@ dependencies = [ [[package]] name = "fsh-py" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-commands", "pyo3", @@ -495,7 +495,7 @@ dependencies = [ [[package]] name = "fsh-render-cpu" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-accel", "fsh-core", @@ -508,7 +508,7 @@ dependencies = [ [[package]] name = "fsh-render-gpu" -version = "0.14.0" +version = "0.15.0" dependencies = [ "bytemuck", "fsh-accel", @@ -524,7 +524,7 @@ dependencies = [ [[package]] name = "fsh-scene" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-core", "fsh-materials", @@ -534,14 +534,14 @@ dependencies = [ [[package]] name = "fsh-uv" -version = "0.14.0" +version = "0.15.0" dependencies = [ "fsh-core", ] [[package]] name = "fsh-wasm" -version = "0.14.0" +version = "0.15.0" dependencies = [ "bytemuck", "fsh-commands", diff --git a/native/HASHOUT_LOG.md b/native/HASHOUT_LOG.md index 866ebf24..7e818cbd 100644 --- a/native/HASHOUT_LOG.md +++ b/native/HASHOUT_LOG.md @@ -1,6 +1,6 @@ # native HASHOUT_LOG -Living log for the Rust engine side, _v0.14.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full. Entries are appended to their crate's section as each part lands; the GPU engine's entries (fsh-render-gpu, last) carry the buffer layout contract, the WGSL module map and the recipe for running it on software Vulkan, GL and WebGPU, and docs/GPU-ENGINE.md restates them as tables. +Living log for the Rust engine side, _v0.15.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full. Entries are appended to their crate's section as each part lands; the GPU engine's entries (fsh-render-gpu, last) carry the buffer layout contract, the WGSL module map and the recipe for running it on software Vulkan, GL and WebGPU, and docs/GPU-ENGINE.md restates them as tables. ## Org-navi-map diff --git a/native/crates/fsh-accel/Cargo.toml b/native/crates/fsh-accel/Cargo.toml index fa8c33e0..5ac36335 100644 --- a/native/crates/fsh-accel/Cargo.toml +++ b/native/crates/fsh-accel/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-accel" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-bake/Cargo.toml b/native/crates/fsh-bake/Cargo.toml index b41ad0ea..d08c61f5 100644 --- a/native/crates/fsh-bake/Cargo.toml +++ b/native/crates/fsh-bake/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-bake" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-cad/Cargo.toml b/native/crates/fsh-cad/Cargo.toml index 2576d06b..d1d5db8b 100644 --- a/native/crates/fsh-cad/Cargo.toml +++ b/native/crates/fsh-cad/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-cad" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-cli/Cargo.toml b/native/crates/fsh-cli/Cargo.toml index b61eba42..8769b3ad 100644 --- a/native/crates/fsh-cli/Cargo.toml +++ b/native/crates/fsh-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-cli" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-cli/src/main.rs b/native/crates/fsh-cli/src/main.rs index 2dd98412..4ee0c1af 100644 --- a/native/crates/fsh-cli/src/main.rs +++ b/native/crates/fsh-cli/src/main.rs @@ -11,7 +11,7 @@ mod selftest; mod setups; mod worker_cli; -const USAGE: &str = "formshot-engine 0.14.0, the FormShot engine +const USAGE: &str = "formshot-engine 0.15.0, the FormShot engine Usage: formshot-engine render [options] diff --git a/native/crates/fsh-commands/Cargo.toml b/native/crates/fsh-commands/Cargo.toml index 295ac824..b1af0753 100644 --- a/native/crates/fsh-commands/Cargo.toml +++ b/native/crates/fsh-commands/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-commands" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-core/Cargo.toml b/native/crates/fsh-core/Cargo.toml index 40cf7a03..b8b11df4 100644 --- a/native/crates/fsh-core/Cargo.toml +++ b/native/crates/fsh-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-core" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-denoise/Cargo.toml b/native/crates/fsh-denoise/Cargo.toml index cade5497..b8480a59 100644 --- a/native/crates/fsh-denoise/Cargo.toml +++ b/native/crates/fsh-denoise/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-denoise" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-farm/Cargo.toml b/native/crates/fsh-farm/Cargo.toml index 865614e8..4c9e5df6 100644 --- a/native/crates/fsh-farm/Cargo.toml +++ b/native/crates/fsh-farm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-farm" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-format/Cargo.toml b/native/crates/fsh-format/Cargo.toml index 4144f593..eea5e5a1 100644 --- a/native/crates/fsh-format/Cargo.toml +++ b/native/crates/fsh-format/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-format" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-io/Cargo.toml b/native/crates/fsh-io/Cargo.toml index 5864a256..e5484369 100644 --- a/native/crates/fsh-io/Cargo.toml +++ b/native/crates/fsh-io/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-io" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-materials/Cargo.toml b/native/crates/fsh-materials/Cargo.toml index 7cd5acf7..de560734 100644 --- a/native/crates/fsh-materials/Cargo.toml +++ b/native/crates/fsh-materials/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-materials" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-ocio/Cargo.toml b/native/crates/fsh-ocio/Cargo.toml index 0f579e77..f65b35d2 100644 --- a/native/crates/fsh-ocio/Cargo.toml +++ b/native/crates/fsh-ocio/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-ocio" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-oidn/Cargo.toml b/native/crates/fsh-oidn/Cargo.toml index 890c2fbd..9b1876c7 100644 --- a/native/crates/fsh-oidn/Cargo.toml +++ b/native/crates/fsh-oidn/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-oidn" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-py/Cargo.toml b/native/crates/fsh-py/Cargo.toml index 75cfaca6..759fd76b 100644 --- a/native/crates/fsh-py/Cargo.toml +++ b/native/crates/fsh-py/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-py" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-py/pyproject.toml b/native/crates/fsh-py/pyproject.toml index 885e9f8d..28dbb69a 100644 --- a/native/crates/fsh-py/pyproject.toml +++ b/native/crates/fsh-py/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "fsh-py" -version = "0.14.0" +version = "0.15.0" description = "FormShot engine binding: the command catalogue and an engine session" license = { text = "Apache-2.0" } requires-python = ">=3.9" diff --git a/native/crates/fsh-render-cpu/Cargo.toml b/native/crates/fsh-render-cpu/Cargo.toml index 4ca3b9cb..162433bb 100644 --- a/native/crates/fsh-render-cpu/Cargo.toml +++ b/native/crates/fsh-render-cpu/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-render-cpu" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-render-gpu/Cargo.toml b/native/crates/fsh-render-gpu/Cargo.toml index af1ffb60..76cb5b12 100644 --- a/native/crates/fsh-render-gpu/Cargo.toml +++ b/native/crates/fsh-render-gpu/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-render-gpu" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-scene/Cargo.toml b/native/crates/fsh-scene/Cargo.toml index 9bc04fbf..536ad414 100644 --- a/native/crates/fsh-scene/Cargo.toml +++ b/native/crates/fsh-scene/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-scene" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-uv/Cargo.toml b/native/crates/fsh-uv/Cargo.toml index fc574458..8664f7c3 100644 --- a/native/crates/fsh-uv/Cargo.toml +++ b/native/crates/fsh-uv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-uv" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/native/crates/fsh-wasm/Cargo.toml b/native/crates/fsh-wasm/Cargo.toml index e9bdb060..cc54536e 100644 --- a/native/crates/fsh-wasm/Cargo.toml +++ b/native/crates/fsh-wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsh-wasm" -version = "0.14.0" +version = "0.15.0" edition = "2021" license = "Apache-2.0" publish = false diff --git a/python/formshot/commands.md b/python/formshot/commands.md index f6e8b65c..7ce36afe 100644 --- a/python/formshot/commands.md +++ b/python/formshot/commands.md @@ -1,6 +1,6 @@ # FormShot commands from Python -Generated from the engine's command catalogue (FormShot 0.14.0, 276 commands) by `./formshot agents sync`; do not edit by hand. +Generated from the engine's command catalogue (FormShot 0.15.0, 276 commands) by `./formshot agents sync`; do not edit by hand. Every command is a method of the client: `fs = formshot.connect()`, then `fs.group.command(argument=value)`, or `fs.call("group.command", {...})`. Arguments are keywords; an argument named like a Python keyword takes a trailing underscore (`from_=`, `as_=`), and so does a group (`fs.import_.probe()`). A failing command raises `formshot.CommandError` with the engine's `code` and `message`. `help(fs.group.command)` shows the same text as below. diff --git a/setup/HASHOUT_LOG.md b/setup/HASHOUT_LOG.md index 83fa0625..9f2c452d 100644 --- a/setup/HASHOUT_LOG.md +++ b/setup/HASHOUT_LOG.md @@ -1,6 +1,6 @@ # setup HASHOUT_LOG -Living log for the launcher, the setup suite and the root configuration, _v0.14.0. Entries are anchored by file and symbol, and removed code is quoted in full. +Living log for the launcher, the setup suite and the root configuration, _v0.15.0. Entries are anchored by file and symbol, and removed code is quoted in full. ## Org-navi-map diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 84cf9a6a..8865d607 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1053,7 +1053,7 @@ dependencies = [ [[package]] name = "formshot" -version = "0.14.0" +version = "0.15.0" dependencies = [ "objc2", "objc2-app-kit", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index dba7733e..42c2f43b 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "formshot" -version = "0.14.0" +version = "0.15.0" description = "FormShot desktop shell" authors = ["NodeAgentc, Inc."] license = "Apache-2.0" diff --git a/src-tauri/HASHOUT_LOG.md b/src-tauri/HASHOUT_LOG.md index ec5b004d..fb171a9f 100644 --- a/src-tauri/HASHOUT_LOG.md +++ b/src-tauri/HASHOUT_LOG.md @@ -1,12 +1,12 @@ # src-tauri HASHOUT_LOG -Living log for the desktop shell and its service start, _v0.14.0. Entries are anchored by file and symbol, and removed code is quoted in full. +Living log for the desktop shell and its service start, _v0.15.0. Entries are anchored by file and symbol, and removed code is quoted in full. ## Org-navi-map ```text src-tauri/ - Cargo.toml crate formshot 0.14.0: tauri 2 (macos-private-api), shell, dialog, updater, + Cargo.toml crate formshot 0.15.0: tauri 2 (macos-private-api), shell, dialog, updater, single-instance plugins, regex, serde, serde_json; windows-sys; objc2 build.rs the eight app commands for tauri-build's allow- permissions tauri.conf.json FormShot, ai.nodemode.formshot, devUrl 5300, splash window, sidecar, .fshot, updater; @@ -85,6 +85,18 @@ FormSurface's start-up check (native dialog) plus FormFabric's `check_for_update - logged: v0.13.0 · 2026-12-05 The owner's icon replaces the 0.2.0 placeholder: a lens ring around a six-blade aperture in orange, pink, violet and blue, on a dark rounded square. The owner's six 1024 px originals are kept as given in `assets/app-icon/source/` (the dark and light tiles, and the lens alone, dark and light, with and without a shadow). Every file in `icons/` keeps its name and size and was made from `formshot_icon_dark.png` with Pillow by a script outside the repo (Lanczos down-sampling; `icon.ico` holds 16 to 256 px, `icon.icns` 16 to 1024 px); `assets/app-icon/formshot-256.png` is the same tile at 256. Checked with `file` and by reading both containers back with Pillow; not built into an app here. +### icons/ · the owner's second icon, two bottles +- refers-to: icons/*; ../assets/app-icon/formshot-256.png; ../assets/app-icon/source/* +- kind: decision +- logged: v0.15.0 · 2026-12-05 +The owner's new icon replaces the aperture: a chrome flask with an iridescent edge and a black square bottle with a chrome cap, standing on a reflecting floor in a dark rounded square. The six originals in `assets/app-icon/source/` are replaced by the owner's new six under the same names. Every file in `icons/` keeps its name and size and was made again from `formshot_icon_dark.png` the same way as before (a Pillow script outside the repo, Lanczos; `icon.ico` 16 to 256 px, `icon.icns` 16 to 1024 px), and `formshot-256.png` is the new tile at 256. Read back with `file` and Pillow; not built into an app here. + +### tauri.conf.json · the demo projects as a bundle resource +- refers-to: tauri.conf.json :: bundle.resources; backend/app/project_library.py :: demos_dir; backend/app/routers/library.py :: bundled_library +- kind: decision +- logged: v0.15.0 · 2026-12-05 +`../assets/demos` is bundled as `demos`, beside `library/`, so the frozen service finds it as the parent of the bundled library plus `demos` in every layout `bundled_library` already knows. About 40 MB, nearly all of it the five projects' meshes and textures. Not built into an app here. + ### tauri.conf.json · the material library as a bundle resource - refers-to: tauri.conf.json :: bundle.resources; native/crates/fsh-commands/src/ext/library/locate.rs; backend/app/routers/library.py :: bundled_library - kind: decision diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.png index 441b30d9..3b47a73c 100644 Binary files a/src-tauri/icons/128x128.png and b/src-tauri/icons/128x128.png differ diff --git a/src-tauri/icons/128x128@2x.png b/src-tauri/icons/128x128@2x.png index 8b09a499..8c942ba2 100644 Binary files a/src-tauri/icons/128x128@2x.png and b/src-tauri/icons/128x128@2x.png differ diff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.png index d1b1c918..90fc8a91 100644 Binary files a/src-tauri/icons/32x32.png and b/src-tauri/icons/32x32.png differ diff --git a/src-tauri/icons/64x64.png b/src-tauri/icons/64x64.png index 15c9292b..a59bfff6 100644 Binary files a/src-tauri/icons/64x64.png and b/src-tauri/icons/64x64.png differ diff --git a/src-tauri/icons/Square107x107Logo.png b/src-tauri/icons/Square107x107Logo.png index 11365e88..ff74aa6a 100644 Binary files a/src-tauri/icons/Square107x107Logo.png and b/src-tauri/icons/Square107x107Logo.png differ diff --git a/src-tauri/icons/Square142x142Logo.png b/src-tauri/icons/Square142x142Logo.png index 63e9d868..45484c39 100644 Binary files a/src-tauri/icons/Square142x142Logo.png and b/src-tauri/icons/Square142x142Logo.png differ diff --git a/src-tauri/icons/Square150x150Logo.png b/src-tauri/icons/Square150x150Logo.png index 2b1bdb33..59e686f8 100644 Binary files a/src-tauri/icons/Square150x150Logo.png and b/src-tauri/icons/Square150x150Logo.png differ diff --git a/src-tauri/icons/Square284x284Logo.png b/src-tauri/icons/Square284x284Logo.png index dc7bcc60..8a937107 100644 Binary files a/src-tauri/icons/Square284x284Logo.png and b/src-tauri/icons/Square284x284Logo.png differ diff --git a/src-tauri/icons/Square30x30Logo.png b/src-tauri/icons/Square30x30Logo.png index 6f7d65a7..fc5c7bb2 100644 Binary files a/src-tauri/icons/Square30x30Logo.png and b/src-tauri/icons/Square30x30Logo.png differ diff --git a/src-tauri/icons/Square310x310Logo.png b/src-tauri/icons/Square310x310Logo.png index 04ae4ca8..282a2b5c 100644 Binary files a/src-tauri/icons/Square310x310Logo.png and b/src-tauri/icons/Square310x310Logo.png differ diff --git a/src-tauri/icons/Square44x44Logo.png b/src-tauri/icons/Square44x44Logo.png index 45d862b5..b320b197 100644 Binary files a/src-tauri/icons/Square44x44Logo.png and b/src-tauri/icons/Square44x44Logo.png differ diff --git a/src-tauri/icons/Square71x71Logo.png b/src-tauri/icons/Square71x71Logo.png index 17a9b784..20a02dfb 100644 Binary files a/src-tauri/icons/Square71x71Logo.png and b/src-tauri/icons/Square71x71Logo.png differ diff --git a/src-tauri/icons/Square89x89Logo.png b/src-tauri/icons/Square89x89Logo.png index fd2d0876..8e44e937 100644 Binary files a/src-tauri/icons/Square89x89Logo.png and b/src-tauri/icons/Square89x89Logo.png differ diff --git a/src-tauri/icons/StoreLogo.png b/src-tauri/icons/StoreLogo.png index 08ad2e83..0a269612 100644 Binary files a/src-tauri/icons/StoreLogo.png and b/src-tauri/icons/StoreLogo.png differ diff --git a/src-tauri/icons/icon.icns b/src-tauri/icons/icon.icns index 2d2106e5..fd1c3132 100644 Binary files a/src-tauri/icons/icon.icns and b/src-tauri/icons/icon.icns differ diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico index 4d3e84b1..4ff30da8 100644 Binary files a/src-tauri/icons/icon.ico and b/src-tauri/icons/icon.ico differ diff --git a/src-tauri/icons/icon.png b/src-tauri/icons/icon.png index 6009a893..f7dc7ef2 100644 Binary files a/src-tauri/icons/icon.png and b/src-tauri/icons/icon.png differ diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index e110a1cd..09b35670 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "FormShot", - "version": "0.14.0", + "version": "0.15.0", "identifier": "ai.nodemode.formshot", "build": { "devUrl": "http://localhost:5300", @@ -45,7 +45,8 @@ "../THIRD-PARTY-NOTICES.txt": "THIRD-PARTY-NOTICES.txt", "../assets/library/materials": "library/materials", "../assets/library/studios": "library/studios", - "../assets/library/templates": "library/templates" + "../assets/library/templates": "library/templates", + "../assets/demos": "demos" }, "icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"], "macOS": {