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.
This commit is contained in:
bflatastic committed 2026-11-02 05:42:55 +07:00
1 parent 3fac2b1482
commit f47638d782
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -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 <mesh file | builtin:<id>> <out.tcraft> [--resolution <px>] [--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 <port>] [--token <token>] [--read-root <dir>] [--write-root <dir>]
MCP server on stdio: headless (file access only below the roots), or bridged to
`texturecraft --control <port>`.
+1 -1
View File
@@ -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