glTF Transform公开文档;未核安装、未执行,限所列输入输出。
调用方式 / profile:gltf-transform-optimize-documentation · 组件版本:documentation-sha256:4f4e1603d8225d74e2e99b03ded8af88ab712110aa467c9e0ce3ce3e0738271f · 引用此版本与调用方式
已记录条件
- invocation_mode = cli:支持。Supported within this profile and component version. 依据:gltf-transform-optimize-documentation-e1
入口与前提
- 协议
- 本地CLI(文档声明,未执行)
- 认证
- 所列文件命令不含服务登录;依赖获取、素材及执行环境权限另核。
- 价格是否查明
- unknown
- 配额是否查明
- unknown
gltf-transform optimize
- 仅官方文档声明,配方proposed;本站未连接、注册、调用第三方工具或核验实际账户。
- Sharp安装说明不是本机已安装或联网安装获准。
- 默认优化不适合所有场景,应按要求挑选选项;正文CLI4.5.0不是当前运行版本。
- Draco/WebP下游支持、视觉质量、动画及材质保持未实测。
- 不执行npm安装或镜像配置;费用、性能及完整网络行为unknown。
配方 gltf-transform-optimize-documentation-recipe · 修订 1
所需调用能力:
- optimize_gltf_glb
运行前提:
- 仅官方文档声明,配方proposed;本站未连接、注册、调用第三方工具或核验实际账户。
- Sharp安装说明不是本机已安装或联网安装获准。
- 默认优化不适合所有场景,应按要求挑选选项;正文CLI4.5.0不是当前运行版本。
- Draco/WebP下游支持、视觉质量、动画及材质保持未实测。
- 不执行npm安装或镜像配置;费用、性能及完整网络行为unknown。
使用步骤:
- 准备已获授权的最小输入,核对本profile的适用范围、认证与费用;不填私人信息或凭据到公开示例。
- gltf-transform optimize input.glb output.glb --compress draco --texture-compress webp
- 未来获准执行后核对实际诊断、输出文件或对象与输入条件,保留缺项和运行错误;本次没有执行此步骤。
- 输入约定
- 有权处理的input.glb和明确优化要求;查看器、压缩器和兼容环境另核。
- 输出约定
- 按optimize示例输出GLB,使用Draco几何及WebP纹理压缩;不保证所有场景质量、体积或兼容性。
- 成功检查
- 未来获准后核新GLB可解析、目标查看器打开和必要场景语义及视觉效果;仅文件变小不能判通过。
- 失败与回退
- 条件不满足、认证/限流/结构错误即停止该调用并保留unknown;不切换付费服务、不猜工具名、不执行写操作。
适用证据
gltf-transform-optimize-documentation-e1 · 来源文档声明
- 原文定位
- .local/deep-cards-v1/cli-sdk-batch-20261024-05/sources/gltf-transform-optimize-documentation.txt:L154-L172
- 来源版本
- documentation-sha256:4f4e1603d8225d74e2e99b03ded8af88ab712110aa467c9e0ce3ce3e0738271f
- 内容摘要
- 4f4e1603d8225d74e2e99b03ded8af88ab712110aa467c9e0ce3ce3e0738271f
- 采集时间
- 2026-10-20T12:08:04.2316110+00:00
Command-line quickstart For easier access to its library, glTF Transform offers a command-line interface (CLI). The CLI supports many of the features of the @gltf-transform/functions package, and some general tools for inspecting and packing/unpacking glTF or GLB files. Installation: npm install --global @gltf-transform/cli Troubleshooting glTF Transform uses Sharp to optimize images. If you encounter errors during installation related to Sharp, consult the Sharp installation page. When installing the glTF Transform CLI in China, a mirror site provided by Alibaba may be required: npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp" npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips" npm install --global @gltf-transform/cli To run the most common optimizations in one easy step, use the optimize command: gltf-transform optimize input.glb output.glb --compress draco --texture-compress webp Defaults in the optimize command may not be ideal for all scenes. Some of its features can be configured (optimize -h), or more advanced users may wish to inspect their scenes then pick and choose optimizations.
覆盖条件:invocation_mode=cli
结构化配方尚未提供或不适用于本版本;旧用法文字保留,连接与执行结果未知。