+1 vote

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: http://www.blendswap.com/blends/view/790

in Engine by (16 points)

1 Answer

+3 votes
Best answer

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

Download exporter here.

by (9,784 points)
selected by

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.