References & dependencies · 4 min read (approx.)

OBJ texture not showing? Check the MTL file

OBJ model white or grey, MTL not loading textures? Usually the MTL was left behind or a texture path is wrong. Find the missing file without uploading.

An OBJ file stores no colors or textures itself: its mtllib line names an MTL material library, and the MTL names each texture with statements such as map_Kd. If any file along that chain cannot be found, the model shows up plain white or grey. So check two things first: is the MTL the OBJ refers to there, and are the textures the MTL refers to there?

Common causes

  • The MTL or the textures were not copied along: only the .obj was copied, or the folder with the textures (such as Textures/) was left out. The MTL must sit where mtllib says, and the textures must keep their original locations relative to the MTL.
  • The mtllib name does not match: the MTL was renamed, but the OBJ's mtllib still names the old file. Some OBJ files use materials (usemtl) without any mtllib line at all.
  • map_Kd holds an absolute path from someone else's computer: such as map_Kd C:\Users\artist\Desktop\tex\wood.png. It works on the computer that exported it and nowhere else.
  • The file name differs in case: the MTL says Wood.PNG, the file is wood.png. Windows ignores case, so on Windows the texture is often found anyway and the problem goes unnoticed; on Linux or a web server, which tell case apart, it is not found.

Find the missing file with Vormio

Vormio on the web needs no installation, and your browser reads the model straight from the folder you choose; nothing is uploaded.

  1. Click “Open folder” and choose the folder with the model.

  2. Click the .obj file and look at “References” at the bottom of the inspector. It lists the MTL, marked “Material library”.

    • With a locate button: the file is there; click to go to it.
    • Marked “Missing”: the MTL was not copied, or its name does not match.

    When the OBJ uses materials but has no mtllib, “References” is empty and the inspector says so.

  3. Click the .mtl file. “References” lists each texture and what it is used for, such as “Diffuse map”:

    • With a locate button: the texture is there.
    • “Missing”: there is no file where the MTL says.
    • “External”: an absolute path that points outside the folder, which Vormio does not read.
  4. Double-click the .mtl: the viewer draws each material on a ball with its name underneath. Materials missing a texture keep only their own color, and the lower left corner says how many texture files are missing. Double-click the .obj to see the model itself; what is missing is noted in the lower left corner there too.

Fix it yourself

Vormio is read-only and does not change your files for you. An MTL is plain text, so any text editor will do:

  • A file is missing: copy the MTL or texture over from where it came from. mtllib paths are relative to the OBJ's folder, and texture paths are relative to the MTL's folder.
  • mtllib does not match: change it to the MTL's current name, or rename the MTL back. If the line is missing, add it at the top of the OBJ, such as mtllib chair.mtl.
  • Absolute paths: copy the texture into the model's folder and switch to a relative path, such as changing map_Kd C:\Users\artist\Desktop\tex\wood.png to map_Kd tex/wood.png.
  • Case: make the name in the MTL match the actual file name exactly.

Then open the folder again and check that every reference has a locate button.

Try it with the samples

In the web version, click “Try the sample files” and open the missing-texture folder: its marble bust lacks its diffuse texture on purpose. Click marble_bust_01.mtl and textures/marble_bust_01_diff_1k.jpg is marked “Missing”; double-click it to see the material ball without its diffuse map. Compare it with the same bust in the sculpture folder, which has all of its textures.

For glTF and GLB models that show up white or are missing textures, the causes and the check are much the same: see glTF textures not showing? Find the missing files.

See the OBJ format page for reading limits.

The desktop Beta is available for Windows, Apple Silicon Mac and Linux; see the download page. The desktop app can link several folders into one workspace, search the whole workspace and show which files reference a file. When a file cannot be found by its path, the desktop app also looks it up by name across the workspace. A file found that way is marked “Found by name”, not “Missing”. A matching file name does not prove the original path is correct; verify repairs in the original tool.

Try it with your local files

Start in your browser

No installation needed. Open a local folder to see thumbnails, previews, composition and references without uploading files.

Working across folders?

Desktop provides workspaces, search by properties across folders, “Referenced by” queries, file change monitoring and glTF/OBJ copy collection.

Related guides