How to add an mtl file as a Material

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kingmoo1213
:warning: Old Version Published before Godot 3 was released.

So I’m trying to load a .obj file with a .mat into Godot.

Importing the 3d Mesh (.obj) is easy, and I can create that as a MeshInstance, and it displays fine, just without the material. But when I attempt to Load the material to apply to it (I’m loading it using the Material Override property), I get the message:

“Error Loading File: Not a Resource!”

Is there a way to import an mtl file as a resource?
Or am I attempting to set the material in the wrong way?

As an example, I am using the .obj and .mtl file for this barrel: Blend Swap | Barrel

:bust_in_silhouette: Reply From: volzhs

Godot can’t load .mtl file.
Export .dae from blender with Better Collada Exporter

Download exporter here.

Ok, I’ll give that a go, thank you for your help!

kingmoo1213 | 2016-06-28 13:10