trimesh icon indicating copy to clipboard operation
trimesh copied to clipboard

Textures are silently not saved if pillow is not installed

Open Altren opened this issue 11 months ago • 2 comments

Followng code works without any warnings or suggestions that something is wrong:

mesh = trimesh.load("mesh.obj"). # load obj with textures
_ = m.export("mesh.glb")

But it does not save any textures. It took me a while to figure out that pillow dependency is silently missing

Altren avatar Dec 19 '24 20:12 Altren

Hey, it's actually printing a log.debug message which is a little buried admittedly, if we changed it to a log.warning it would be a lot more obvious but spam users pretty hard. I usually run with trimesh.util.attach_to_log() while debugging, I should check to make sure that's in the developers guide somewhere obvious.

mikedh avatar Jan 08 '25 20:01 mikedh

Does the newest version include pillow as a dependency? I ran into this issue too, without pillow trimesh 4.6.12 silently skips uv

Wei-fslaser avatar Jun 12 '25 20:06 Wei-fslaser