trimesh
trimesh copied to clipboard
OBJ Export Does Not Include Transparency
Hi all,
I'm trying to save a transparent obj (transparency is set as part of face colors), but it looks like the obj saver only saves the first three numbers (i.e. not the transparency).
Is there a reason for this? https://github.com/mikedh/trimesh/blob/main/trimesh/exchange/obj.py#L836
Thanks!
Hey, yeah I was probably worried about breaking someone's importers as it's not defined all that well: paulbourke.net/dataformats/obj/colour.html
Happy to take PR's! Maybe the ideal behavior is:
- if alpha is always 255 skip exporting
- if alpha is defined and isn't just always fully opaque, include it in whatever format meshlab accepts?