Made by the FurniMesh team. FurniMesh (furnimesh.com) is our own product, and we say so wherever we recommend it. Disclosure

Keeping MTL materials and textures from OBJ to SketchUp

By the OBJ to SKP team (FurniMesh) · Published and updated

Most OBJ to SketchUp problems are material problems. The shape arrives fine and the wood grain, fabric or label does not. This guide explains the file chain, the usual breaks, and how each route, including our own FurniMesh (furnimesh.com) OBJ to SKP converter, handles materials.

How OBJ, MTL and textures link together

An OBJ material is a chain of three file types. The .obj holds geometry and two kinds of material lines: mtllib, which names the material library, and usemtl, which says which material the following faces use. The .mtl defines each material with newmtl and gives it colors and texture maps. The texture maps are ordinary image files. Here is the material part of our sample dining chair, which we use to test the OBJ checker.

# in dining_chair.obj
mtllib dining_chair.mtl
o seat
usemtl seat_fabric
f 177/97 180/98 179/99 178/100

# in dining_chair.mtl
newmtl oak
Kd 0.62 0.45 0.28
map_Kd oak_diffuse.jpg

newmtl seat_fabric
Kd 0.35 0.42 0.25
map_Kd -s 2 2 1 C:\Users\artist\textures\linen weave.png
bump linen_normal.png

Every name in that chain has to match exactly, including case on systems that care about case. The numbers after each slash in the face line are UV indices, which tell the importer where on the image each corner of the face sits. Without them, a texture has no placement.

MTL lines you will meet most often
LineMeaningWhat SketchUp-bound tools do with it
newmtl nameStarts a material definitionBecomes a SketchUp material with that name
Kd r g bDiffuse (base) color, 0 to 1Used as the material color, and as the fallback when the image is missing
map_Kd fileDiffuse texture imageBecomes the material's texture, placed by the UVs
d or TrOpacity (d 1 is solid; Tr is its inverse)Sets material opacity where the tool supports it
bump, map_Bump, normBump or normal mapIgnored by simple importers; GLB carries normal maps into SketchUp
Ks, NsSpecular color and shininessMostly ignored in SketchUp's own materials
map_Kd -s 2 2 1 fileTexture with a scale optionThe options come before the file name; the last token is the image

The five ways the chain breaks

When a model arrives gray, one of these is almost always the cause. The checker flags all five.

  • The .mtl never travelled. Many sites offer the .obj as a single download and the .mtl in a separate archive, or you copied only the .obj. Without the library, every usemtl line points at nothing.
  • The mtllib name does not match. The .obj says mtllib chair_final.mtl but the file on disk is chair.mtl. Rename the file or edit the line.
  • A texture path is absolute. C:\Users\artist\textures\oak.jpg only exists on the artist's machine. Change it to the bare file name and keep the image next to the .mtl.
  • A file name contains spaces. SketchUp's own OBJ exporter replaces spaces with underscores because OBJ tools handle them poorly. Rename linen weave.png to linen_weave.png in both places.
  • The mesh has no UVs. If the checker reports zero vt lines, there is no texture placement to keep. You can still apply SketchUp materials by hand, positioned with SketchUp's texture tools.
Close view of an embroidered silk seat cushion with a floral border on a gilded armchair frame
Embroidered upholstery is the case where texture loss shows most: without the image map, this cushion would import as one flat color. Photo: Jacques Gondouin / Angélique Babel / Claude-François Capin /, CC0, via Wikimedia Commons (file page).

Repairing an MTL file by hand

An .mtl is plain text, so any editor works: TextEdit in plain-text mode, Notepad, or a code editor. Make a copy first. For our sample chair, the repair takes three edits. Change map_Kd -s 2 2 1 C:\Users\artist\textures\linen weave.png to map_Kd -s 2 2 1 linen_weave.png. Rename the image on disk to linen_weave.png. Then find or replace linen_normal.png, or delete the bump line if you do not have the file, since a missing bump map does no harm once the line is gone.

Run the checker again. When the texture table shows every file as found and the warnings list is clear, the set is ready for any route.

What each route keeps

The routes into SketchUp treat materials differently. This table summarizes what each one says it preserves, from the vendors' own pages.

Material handling by route
RouteColors (Kd)Image texturesNormal and other maps
FurniMesh OBJ to SKP (our product)Kept, FurniMesh saysKept where present in the source; image files are not in the picker's accepted typesSKP materials hold a color and one texture
Blender, export GLB, import in SketchUp ProKeptPacked inside the .glbSketchUp's GLB reader brings in normal, occlusion, metalness and roughness
Blender, export STLLostLostLost
TransmutrKeptKeptBuilds SketchUp, V-Ray and Enscape materials including PBR maps
SkimpKeptKept; a Replace Textures tool relinks missing imagesVaries
TIG Import OBJ with MaterialsKeptKept if found; uses the color when an image is missingNot handled

For FurniMesh, the safest input is a GLB with textures embedded. If your OBJ set has several images, convert the OBJ to GLB first on the FurniMesh converter (that step runs in your browser, no account needed), confirm the GLB looks right, then convert it to SKP. If the images still do not come through, apply them in SketchUp as described next.

Re-applying textures inside SketchUp

When a material arrives as a flat color, the face mapping is often still usable. In the Materials panel, switch to In Model, select the material, and choose Edit. Tick Use texture image and pick the image file. SketchUp applies the image to every face using that material. If the result is stretched or tiny, set the texture size in the same panel, or right-click a face and use Texture › Position to drag it into place.

On meshes with many small faces, such as a scanned cushion, positioning face by face is impractical. In that case, fix the .mtl and convert again; it takes less time than repairing hundreds of faces by hand.

GLB, PBR and SketchUp's material reader

SketchUp's help page on GLB files explains how its reader treats materials. When a material has a texture, the diffuse color is set to pure white so the image shows at full strength. It reads emission, normal and occlusion maps and their factors, and extracts metalness and roughness for PBR materials. That is the reason GLB is the best intermediate format for textured OBJ files: OBJ's MTL has no standard slot for roughness or metalness, while GLB carries them in a form SketchUp understands.

The trade-off is that not every OBJ material maps cleanly to PBR. A shiny MTL with a high Ns value has no direct roughness equivalent, so expect to adjust glossy finishes such as lacquer and chrome after import.