Search code examples
c#unity-game-enginemodeling

How to import obj file with multiple textures?


I have downloaded a .obj file from "opengameart" and that looks awesome. But I am not being able to set it up in the unity. That contains a textures folder where there are more than 30 images. And I drag and drop that all in the unity. But that is not working. I converted that to .fbx . I even tried embed media but a log file is being generated saying .mtl file fail enter image description here

https://opengameart.org/content/bowling-alley-model This is the link to the bowling alley asset. Please help me


Solution

  • The OBJ file that you are using doesn't contain the MTL file which contains the texture information for OBJ file.

    Opening bowling alley obj file in blender, adding some texture and exporting it again to obj format creates a MTL file with OBJ file.

    Importing the OBJ file with MTL file resulted in obj to have material texture in unity. See unity screenshot for obj with mtl file

    enter image description here