3DsMax WebGL BabylonJS ThreeJS
FBX to GLB Batch Converter & Optimizer
NodeJS tool to batch-convert FBX files to optimized GLB. Wraps fbx2gltf + gltf-transform to compress geometry, textures and animations in one pass.
Convert a folder of FBX files to web-ready GLB in one CLI command. Built to solve the manual conversion bottleneck in 3D pipelines targeting BabylonJS or ThreeJS viewers.
What it does
- Walks a directory recursively for
.fbxfiles - Converts each with
fbx2gltf→ intermediate GLTF - Optimizes with
gltf-transform: Draco mesh compression, KTX2/WebP textures, animation pruning, dedup/flatten/prune - Outputs
.glbalongside originals or to a target dir
Also includes
- Animation merger — combines animations from a source GLB into a target character GLB, with Mixamo-to-UE/Unity retargeting support
- Optimize script — standalone post-process pass for already-converted files
Usage
npm install -g fbx2glb-batch
fbx2glb ./models ./output --draco --webp-textures
Results (real project)
Average ~87% size reduction vs. original FBX. A 210 MB environment scene → 18 MB GLB with Draco + WebP.
3DsMax export tips
- Collapse all modifiers, Reset Xform
- Bake materials to single texture per slot
- Export with Y-up axis
- Disable "Embed Media"