Problems with importing .obj files with matching .mtl files

I suppose because assets do not have extensions, UE has problems batch importing numbered list of .obj files when these object files have matching material files.

For example:

shape1.obj
shape1.mtl
shape2.obj
shape2.mtl

Trying to import these two shapes is giving problems. The problem is that the material that is imported for the first shape is named ’ shape2’ (I guess because you cannot have assets with the same name), so then it won’t import shape2.obj because you already have an asset named ‘shape2’. This is something that needs to be fixed!

HI!

UE4 does not import material info. Does not matter, what the format you use - OBJ with MTL or FBX. Because Unreal Render differs from other renderers. After import, UE4 just create default material or materials, dependently how many materials you assign to your mesh in 3D programm. After this, you need import textures and create materials in UE4 from zero.

I don’t know… there is defenitely a difference in importing when I remove the .mtl files before import, then it create a material called default_material. If I leave the material files in the directory, it will create a material called similar to the .obj name but with the number increased. So it does seem to do something with the material file. Can you explain that?

How you named material in your 3D program? The UE4 get material name from OBJ or FBX file.