How to use multiple materials on one object?

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

Hi!

I know this has been asked before, but when following the steps described in links like these below, I still can’t get a Blender scene to import with more than 1 material slot:

Link 1
Link 2
Link 3

I have a mesh with four materials on it in Blender, but exporting with either the default Collada or Better Collada results in 1 empty material slot on the imported scene. I tried checking a variety of export options and import options.

Is there a way to add extra material slots inside Godot?

On a related note, is there a good e/textbook that I can learn about Materials and lighting in 3d design more generally? When I see something like the node editor for shader materials it is all foreign to me, so any resource where I can go to learn from would be very much appreciated!!!

Thank you for your help!

did you do “Mark Seam” in blender for mapping multiple materials?

volzhs | 2017-08-11 11:05

:bust_in_silhouette: Reply From: volzhs

This is what I did.

  1. Mark seam in blender.
  2. Create material and assign.
  3. Export .dae with better collada.
  4. Import .dae in godot 2.1.x

Thank you for the answer! I was able to replicate the cube you show, but the 3 material slots on the object in Godot are all empty, though the cube still has the right colors. Do I then have to make my own materials in Godot? Just want to make sure I didn’t miss anything - it looks like this:

my cube

So marking the seams is what determines the “separate” materials? What if I want to use multiple textures with UVs, each as a separate material?

Sorry if these are basic questions, but I just want to make sure I’m not missing something! If this is beyond the scope of these comments, maybe you could point me to a textbook or something that I can get answers from, I know there are a lot of holes in my knowledge since I’m self-teaching!

Thank you so much!!

cgardner | 2017-08-11 19:54

click right arrow button on Mesh in inspector panel.
you can see 3 materials in there.
and those slots you pointed are for overriding materials.

and I’m not expert on 3D stuff, but AFAIK, yes, need seams to use multiple textures(materials).
I do teach myself too. :slight_smile:

volzhs | 2017-08-12 03:28

Ok I got it now, thank you so much for the help!

cgardner | 2017-08-12 15:21