Compression of the loaded model

Hello. In my game, models are dynamically loaded when the game starts. The loaded models weigh approximately 8mb and this is a lot. I want to use Draco in the project so that when loading models, they are compressed and then added to the scene. I found the project “loading draco compressed glb” in tutorials, but I didn’t see the compression process itself in it. From there, I pulled out library the draco.js, draco.wasm.js, draco.wasm.wasm, but I can’t find a clear tutorial on how to use it. Show examples of using the library, for my purposes, please.

You can use one of these tools to compress your existing glb or fbx to a draco compressed glb:

GitHub - facebookincubator/FBX2glTF: A command-line tool for the conversion of 3D model assets on (manual here GLB Tutorials - Sharing - Documentation - Facebook for Developers)

And then you can load the compressed glb files into the engine the way tutorial does.


You can also load your glb here and export it with draco compression