由Richard Lee和Cesium团队用来优化glTF的工具
工具地址:
https://github.com/CesiumGS/gltf-pipeline
cesium团队是专注gis开发的
使用npm全局安装gltf-pipeline工具
npm install -g gltf-pipeline
gltf-pipeline相关命令
# 将glTF转换为glb
gltf-pipeline -i model.gltf -o model.glb
gltf-pipeline -i model.gltf -b
# 将glb转换为glTF
gltf-pipeline -i model.glb -o model.gltf
gltf-pipeline -i model.glb -j
# 将glTF转换为Draco glTF