1
$\begingroup$

I am new to blender, I'm trying to build a block which has 100s of spheres(you can say molecules of metal block) and continously vibrating. Currently I am using around 100 molecules for just 1/4th of metal block and the exported(.glb) file size is few MBs if I add more spheres to cover the entire block file size will be even more.

Is there any better way to optimize the spheres keeping their size and animation same.

enter image description here

$\endgroup$
1
3
$\begingroup$

Linked Duplicates are optimized by Blender better in recent versions (see glTF-Blender-IO#950), and should avoid duplicating vertex data in these cases.

If you find that Blender (or other software, for that matter) is still duplicating data in your glTF file for some reason, there are a few optimization tools that can clean up the glTF file after export as well.

  1. gltfpack CLI tool overhauls a glTF file, simplifying and optimizing lots of things. Probably the most comprehensive optimization tool here.
  2. gltf-transform CLI or JavaScript tool provides a dedup command to detect and fix duplicated data. An additional instance command applies the glTF EXT_mesh_gpu_instancing extension, which can further optimize the rendering of these types of models, but not all glTF viewers support the extension.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.