Can't apply material/texture on some .obj

Hi everyone !

I’m having some issues applying a texture on some .obj meshes.

I have at my disposal .obj files that were designed without any texture or material (originally designed for 3D printing) and I want to import them on a Unity scene and apply a texture on it.

In order to do so I’ve created an empty material in which I applied a texture map (in that case a Marble image).
The problem is that when I apply the material to the mesh, it only appears as a grey color instead of the original image pattern. However, when i try applying it on another .obj file I found on the Asset Store (the rock thing on the screnshot), it works perfecly.


Here you can see the texture image, the material, the .obj I want to texture (the vase) and the one I managed to texture (the rock).

I cannot figure what is the difference between my two .obj files that makes them react differently to the material application … I’ve joined the files to this post. I hope someone will be able to tell me what I did wrong.

Thank you very much !

2681622–189522–objs.rar (85.1 KB)

If you open your two .obj files in a text editor, at the bottom you will see lines like

Each line creates a face. The middle number (between the two forward slashes) is the material index. So in short, Vase4.obj is exported without any materials.

You may have assigned the materials in Blender using the wrong material system (Blender has 3 of them). This thread may help you: Blender native import and multiple materials on one mesh.

1 Like

I managed to re-open them with 3ds max, assign them a material and re-export them as obj. Now its working and the files have material indexes.

Thank you very much for you time & your advices :slight_smile: