modly icon indicating copy to clipboard operation
modly copied to clipboard

OBJ export loses the texture

Open lightningpixel opened this issue 2 weeks ago • 0 comments

Exporting a textured mesh to OBJ writes only the .obj, with no .mtl or texture. It affects the Generate page export (api/routers/export.py) and the Mesh Exporter node (mesh-exporter/processor.ts, which also doesn't flip V). GLB is fine. Reported in #253.

Follow Blender's behaviour: the user picks <name>.obj, the material and texture are written next to it.

Scope

  • [ ] OBJ export writes <name>.obj, <name>.mtl and <name>_texture.png side by side
  • [ ] Base color texture only
  • [ ] Both export paths (Generate page and Mesh Exporter node)
  • [ ] Untextured meshes export as before
  • [ ] Show a short hint when OBJ is selected: textures are saved as separate files, GLB keeps everything in one file

Acceptance criteria

A Trellis.2 mesh exported to OBJ opens textured in Blender.

lightningpixel avatar Nov 14 '26 19:11 lightningpixel