Hello guys. My question is pretty simple, I load 4 models and some texture for my website but the first loading is too long. You can take a look : https://issammerikhi.vercel.app/
Do you know a simple and efficient way to reduce my model size ?
Thanks for helping
- always reduce polycount in blender, has lots of cleaning options, removal of verts by distance etc
now, go through processing, for instance:
- npx gltf-pipeline -i model.gtlf -o model.glb --draco.compressionLevel=10
- npx gltfpack -i model.gltf -o model.glb -cc -si 1
don’t forget to compress and resize the textures, which are often the culprit. i have brought down 300mb gltfs to 1-2-3mb with these tools.
Ok thanks for the response. I’m trying right now.
At first the file looks smaller.
But I guess I need Draco compressor to continue
I’ll let you know
The half of the size of your glb are texture/ png images. Try to use webp as versions of the texture and probably you will save 10/15mb. Reduce the size of the texture could help too.
I don’t know any tool that can do that automatically, you should process images one by one and change the reference manually in the gltf. Programatically you can do it with sharp and gltf-transform, with GUIs you can use photoshop, Gimp to save the file as webp and edit the gltf manually in a text editor.