glTF-Transform is an MIT-licensed open-source CLI and TypeScript/JavaScript SDK maintained by Don McCurdy for deterministic `.glb` and `.gltf` 3D asset optimization. Running across Windows, macOS, Linux, Node.js, and Web pipelines, it compresses geometry and PBR textures by 70% to 90% for Godot 4, Bevy, Three.js, and Unity.
Technical Overview
Architecture and Production Workflow
Created by Khronos 3D Formats Working Group contributor Don McCurdy, glTF-Transform treats glTF 2.0 files as a clean, losslessly inspectable in-memory scene graph (Document) rather than an opaque export artifact. Studios invoke it either as a zero-GUI command-line step (@gltf-transform/cli) inside CI/CD asset pipelines or programmatically via its modular TypeScript packages (@gltf-transform/core, @gltf-transform/functions, @gltf-transform/extensions).
A single CLI command (gltf-transform optimize raw.glb game_ready.glb --compress meshopt --texture-compress ktx2) chains battle-tested geometry and VRAM passes in milliseconds:
- Geometry Compaction & LODs:
weldmerges duplicate vertices within configurable attribute tolerances;simplify(backed bymeshoptimizer) generates lower-triangle LOD meshes while preserving UV seams;reorderoptimizes vertex cache locality; andmeshopt(EXT_meshopt_compression) ordraco(KHR_draco_mesh_compression) slashes geometry byte size. - Draw-Call Reduction:
dedupcollapses identical materials and accessors,flattenandjoinmerge static sub-meshes sharing materials, andinstanceconverts repeated prop transforms intoEXT_mesh_gpu_instancingbatches. - VRAM Supercompression:
etc1sanduastc(via Basis Universalktxtooling) convert bloated PNG/JPEG maps into GPU-ready KTX2 (KHR_texture_basisu) textures that transcode directly to BC7, ASTC, or ETC2 in VRAM without main-thread decompression spikes.
Pricing, Licensing, and Commercial Rights
glTF-Transform is 100% open source under the MIT license with zero seat fees, cloud API quotas, or commercial restrictions on shipped assets across desktop, console, mobile, or WebGL/WebGPU games. Because its CLI runs deterministically on Node.js without GPU driver dependencies, studios execute it cleanly inside standard Linux Docker containers on GitHub Actions, GitLab CI, or Jenkins build agents whenever artists commit updated source models.
Strengths and Tradeoffs in Studio Pipelines
| Pipeline Dimension | Studio Production Reality |
|---|---|
| Where glTF-Transform Wins | Essential automated post-processor for bloated Blender exports and raw generative 3D (.glb) meshes; 70%-90% disk and VRAM savings in CI without launching headless Blender. |
| Technical Nuances | Operates strictly on .gltf/.glb (not .fbx or .usd); encoding tangent-space normal maps with lossy ETC1S introduces shading blocks unless routed to UASTC. |
| Engine Compatibility | Native EXT_meshopt_compression + KTX2 support works cleanly in Three.js, Babylon.js, Godot 4, and Bevy; Unreal and Unity teams should verify glTFfast or Interchange extension flags first. |
AI Transparency & Steam Disclosure
Standard SoftwareProcedural math, physics, or manual authoring software.
Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.