GLTF/GLB 优化与压缩工具入口:12个减面、纹理压缩与打包工具直达(含免费项)

2026-03-14 14:12:53
0
56

gltf-transform

用于 glTF/GLB 的压缩、合并、去重、材质与纹理处理,命令行/脚本都方便。
网址:https://gltf-transform.dev/

Meshoptimizer

高性能网格优化库,提供顶点缓存优化、索引重排、简化与压缩能力,很多工具链都在用。
网址:https://github.com/zeux/meshoptimizer

gltfpack

基于 meshoptimizer 的 glTF 打包与压缩工具,适合做体积与加载速度优化的第一步。
网址:https://github.com/zeux/meshoptimizer/tree/master/gltf

Cesium: glTF Pipeline

对 glTF 做结构处理与优化的 Node 工具链,适合批处理与自动化流程。
网址:https://github.com/CesiumGS/gltf-pipeline

Draco 3D Compression

通用几何压缩编码器,常用于 glTF 的 Draco 压缩(需配合加载端解码)。
网址:https://google.github.io/draco/

Basis Universal

跨平台纹理压缩方案,配合 KTX2 可以让纹理更小、加载更快。
网址:https://github.com/BinomialLLC/basis_universal

Khronos: KTX-Software

KTX2/ktx 编解码与工具集,常用于把纹理转成 KTX2(配合 BasisU/ETC1S/UASTC)。
网址:https://github.com/KhronosGroup/KTX-Software

Blender glTF 2.0 Exporter(官方文档)

从源头把导出参数配好能省很多后处理成本,尤其是材质/纹理路径与变换。
网址:https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html

three.js: glTF Exporter(GLTFExporter)

把 three.js 场景导出为 glTF/GLB 的官方导出器示例与源码入口。
网址:https://threejs.org/docs/#examples/en/exporters/GLTFExporter

Babylon.js: glTF Exporter

Babylon.js 的 glTF 导出与相关工具入口,适合引擎侧的资产导出流程。
网址:https://doc.babylonjs.com/features/featuresDeepDive/exporters/glTFExporter

Cesium: 3D Tiles Tools

面向大规模场景与流式加载的工具集,包含 tileset 生成与处理入口。
网址:https://github.com/CesiumGS/3d-tiles-tools

glTF Validator

上线前做一次规范校验能少踩坑,适合排查缺失纹理、扩展不兼容等问题。
网址:https://github.khronos.org/glTF-Validator/

评论
登录 才可参与讨论