zeux / meshoptimizer

Mesh optimization library that makes meshes smaller and faster to render

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gltfpack: Keep image names and unused named images

zeux opened this issue · comments

Discussed in #682

Originally posted by enesaltinkaya April 27, 2024
Hi,

Blender has a new features regarding images while exporting GLTF/GLB;

  • export_unused_images (boolean, (optional)) – Unused images, Export images not assigned to any material

When using this feature, one needs to know names to be able to distinguish between images.
Similar to -kn can we have a -kin "keep image names" for example?

The second image below named "test_Albedo" is not connected to any materials. Both images are packed in .blend file.
This could be useful when one wants to carry over additinonal images with glb, like heightmaps/bump maps.

And once again thanks a lot for this awesome library!

before

after

Fixed by ae4d14e (which should be sufficient since unused images are not skipped atm).