Vi3W
Skip to content

Guides

Converted GLB to OBJ and the textures are missing? How to export the MTL and textures

Why textures vanish when you convert GLB to OBJ, and how to export the .mtl and texture images correctly in Blender with Path Mode Copy.

5 min read

A textured clay treasure chest next to the same chest in plain grey, with three small floating image tiles between them

Quick answer

I converted GLB to OBJ and the textures are missing. How do I export the MTL and texture files correctly?

OBJ can't hold textures itself. It points to a .mtl file, which points to separate image files. In Blender, import the GLB, then use File ‣ Export ‣ Wavefront (.obj) with Materials export on and Path Mode set to Copy, into an empty folder. Keep the .obj, .mtl and images together, and zip them to share.

Why textures go missing when you convert GLB to OBJ

Textures go missing when you convert GLB to OBJ because the two formats store them differently. A GLB packs the mesh, materials and texture images into one binary file; Blender's glTF manual describes it as "a single .glb file with all mesh data, image textures, and related information". OBJ can't do that. An OBJ conversion is really three things:

  • The .obj file. Geometry and UVs, plus an mtllib line naming the material library and usemtl lines naming materials.
  • The .mtl file. Material definitions. A map_Kd line in each material names the colour texture file.
  • The image files. PNG or JPEG files the .mtl points to.

If any link in that chain is missing, the model opens grey or white. The OBJ format reference even says that when no material name is given, "a white material is used". The usual culprits are a converter that wrote only the .obj, an .mtl with absolute paths from someone else's computer, or images that never got written out of the GLB.

How to export the MTL and texture files correctly in Blender

Blender is free and does this reliably.

  1. File ‣ New ‣ General, delete the default cube.
  2. File ‣ Import ‣ glTF 2.0 (.glb/.gltf) and pick your GLB.
  3. Switch the viewport to Material Preview and check the textures show. If they don't show here, the GLB itself has a problem; see why a GLB looks different in different viewers.
  4. Save the .blend file into a new, empty folder. This gives relative paths a home.
  5. File ‣ Export ‣ Wavefront (.obj), saving into that same folder. In the export panel:
    • Materials: Export on. The Blender OBJ manual describes this as writing out "the MTL-file along with the OBJ".
    • Path Mode: Copy. It copies each texture "on exporting and reference[s] it with a relative path".
    • UV Coordinates on, or the textures have nowhere to map.
    • Include: Selected Only if the scene contains anything you don't want.
  6. Open the folder. You should see model.obj, model.mtl and one or more image files.

Why not Auto? The manual explains that Auto "uses relative paths for files which are in a subdirectory of the exported location, absolute for any directories outside that". An absolute path like C:\Users\you\Downloads\tex.png works on your machine and breaks everywhere else.

If the images still don't appear in the folder

When a GLB is imported, its images can live inside the .blend rather than on disk. If your export folder has the .obj and .mtl but no images:

  1. File ‣ External Data ‣ Unpack Resources and choose "Use files in current directory". Blender's Packed Data page says this unpacks files next to the .blend, grouped in folders such as "textures".
  2. Export the OBJ again with Path Mode: Copy.
A small open folder with a cube icon, a document and two coloured image tiles floating out of it
Illustration. An OBJ is only complete with its .mtl and its texture images in the same folder.

Check the .mtl file

Open the .mtl in any text editor. It's plain text. For each material you want:

  • a newmtl line with the material name, matching a usemtl line in the .obj;
  • a map_Kd line followed by an image filename, for the colour texture.

Good: map_Kd chest_basecolor.png. Bad: map_Kd /Users/someone/Desktop/export/chest_basecolor.png. If you see absolute paths, either fix them by hand (delete everything before the filename), or re-export with Path Mode: Strip Path, which the manual says writes "only the filename" and omits the path. Then keep the images in the same folder as the .mtl.

What OBJ won't carry over from a GLB

Even a perfect export loses some of what the GLB had:

  • Full PBR materials. The colour texture (map_Kd) is the one every OBJ importer reads. Blender's exporter has a PBR Extensions option for roughness, metallic and more, but many importers ignore those lines, so you may need to reconnect roughness, metallic and normal maps by hand.
  • Animation and rigs. OBJ has none. Blender's manual notes no support for armatures or parenting.
  • Some image formats in some apps. After Effects, for example, only reads JPEG and PNG textures. If the GLB used WebP, convert the images to PNG.

If the target app accepts FBX or glTF, you may not need OBJ at all; FBX vs OBJ compares them.

Blender, an online converter, or no conversion?

  • Blender export. Free and you control the paths. A few minutes the first time. Best when you need a reliable OBJ with textures.
  • Online converter. Quick for one file, but many return only the .obj, or a zip with odd paths. Check the download for a .mtl and images before you trust it, and don't upload confidential models.
  • No conversion. If the source tool exports OBJ directly, that's usually the cleanest path, because the tool writes its own .mtl and textures.

Sharing the files

Always move the .obj, .mtl and images as a set. Zip the folder before you email or upload it. If the receiving app still shows grey, the problem is on the import side; textures missing after import covers Unity, Unreal, Godot and Blender, and OBJ imports grey as a 3D layer covers After Effects.

Where Vi3W fits

Vi3W exports OBJ as well as GLB and FBX, so if the model was made in Vi3W you can download OBJ directly instead of converting a GLB. Whichever format you choose, check that an OBJ download includes its .mtl and texture images and keep them together. Vi3W generates models from text, sketches or images with AI PBR textures. Try Vi3W.

Frequently asked questions

i converted glb to obj and the textures are missing in the output—how do i export the mtl and texture files correctly?

Export from Blender with Materials export turned on, so it writes the .mtl file, and Path Mode set to Copy, so it copies the texture images next to the OBJ with relative paths. Export into an empty folder, then check the .mtl in a text editor: each map_Kd line should name an image file that sits in that folder. Move all the files together.

Last reviewed