From f47638d78231e3dc5a02fd5381e12cdd02c8de7b Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 2 Nov 2026 05:42:55 +0700 Subject: [PATCH] CLI: say that new --sample bakes its mesh maps at up to 1024 px The baked maps are most of a sample project's size, so a 2048 sample is as large as a 1024 one; the usage and the control protocol now say so. Fixes #66. --- apps/texturecraft-cli/src/main.rs | 4 +++- docs/control-protocol.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/texturecraft-cli/src/main.rs b/apps/texturecraft-cli/src/main.rs index ec1e4f2d..ee35afa0 100644 --- a/apps/texturecraft-cli/src/main.rs +++ b/apps/texturecraft-cli/src/main.rs @@ -35,7 +35,9 @@ USAGE: camera saved in the project (camera.add); --samples path traces it instead (Rendering mode), on the GPU when it has compute shaders, else (or with --cpu) on the CPU. texturecraft-cli new > [--resolution ] [--sample] - New project; --sample bakes and applies a smart material to every texture set. + New project; --sample bakes and applies a smart material to every texture set. The + sample's mesh maps are baked at the resolution up to 1024 px (most of the file's size), + so a 2048 sample project is as large as a 1024 one. texturecraft-cli mcp [--bridge ] [--token ] [--read-root ] [--write-root ] MCP server on stdio: headless (file access only below the roots), or bridged to `texturecraft --control `. diff --git a/docs/control-protocol.md b/docs/control-protocol.md index 14dd6de4..d3710d6b 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -218,7 +218,7 @@ texturecraft-cli --version # TextureCraft 0.1. texturecraft-cli info model.glb # triangles, materials, UV report texturecraft-cli info project.tcraft # texture sets, layers, baked maps texturecraft-cli commands --filter mask -texturecraft-cli new builtin:material_ball ball.tcraft --resolution 1024 --sample +texturecraft-cli new builtin:material_ball ball.tcraft --resolution 1024 --sample # mesh maps baked at ≤ 1024 px texturecraft-cli new model.glb model.tcraft --resolution 2048 texturecraft-cli run ball.tcraft layer.add.fill '{"color":"#c08040","metallic":1}' -o ball.tcraft texturecraft-cli batch script.json