156
$\begingroup$

How do you add more than one material to a mesh?

I have tried adding two materials to the object, and then assigning one of the materials to a vertex-group, but I could not find a place to assign it.

I am making a striped bouncy ball that I want to deform, so adding a different material by separating the mesh into different objects would not be ideal.

Using two different objects to have different materials

$\endgroup$
0

4 Answers 4

200
$\begingroup$

You need to be in edit mode.

  1. Select the part of the mesh you want to add the material to:

Selecting the faces.

  1. Click the "+" icon on the right side of "material" shown in the image below to create a new material.

  2. Let's give the new material a green color.

  3. Click the Assign button in the Materials tab under the list of materials:

enter image description here

(for older versions)

Assign button under Materials tab.

And you're done!

Final Resault

Make sure you have you have more than one material slot if you want to assign a single material to only a selection of faces. If only one material slot exists it will automatically be assigned to all faces of a mesh, regardless of selection.


*_Note that when using this method there can be a sharp contrast between the two materials._
$\endgroup$
1
  • 6
    $\begingroup$ My issue was I didn't hit the plus button (shown on the right side of the your image) in the materials to have two separate materials in the first place on the object. $\endgroup$ Commented Oct 11, 2015 at 13:09
71
$\begingroup$

You can switch between different shaders using a UV mapped image, if you're using cycles. You accomplish this by creating a black and white image mask and using it as the factor for a mix shader.

This has some unique benefits:

  1. You can create soft transitions between shaders

  2. You can have multiple shaders in any shapes/areas on a single face, or across edge and face boundaries

  3. You don't have to create extra geometry to apply your additional shaders to

Here's what it looks like, notice that this cube only has 6 faces:

Multiple shaders using UV mapped image mask, overview

And, here's the node setup you use:

enter image description here

You can also chain multiple mix shaders together to further mask areas defined by your first mask. If I replaced the orange diffuse shader in my node tree above with a mix shader of white gloss and green diffuse, using another mask as a factor, I could separate the orange area shown above into two other materials. You can keep chaining mix shaders as far as you like.

$\endgroup$
2
  • 2
    $\begingroup$ This is a very great answer. I have uses for your node tree. Thank you very much. $\endgroup$ Commented Feb 17, 2019 at 15:25
  • 2
    $\begingroup$ Flipperty dipperty dang! This is a superb set up. I have been trying to find out a way of adding a floral pattern around the rim of my tea cup saucer. It’s not possible to have 2 materials on top of each other on the same object. But, your method gets round this limitation. I will use the orange as my white porcelain base colour. I will use the blue with the mask for my floral pattern. I have decided to use a metallic silver or gold for the pattern. I will then use a bump map to display some embossing. Instead of diffuse & emission, I will use 2 Principled BSDF shaders. $\endgroup$ Commented May 12, 2020 at 17:43
9
$\begingroup$

I was confused because I didn't understand there were two lists of material... I created materials in the drop-down list:

Created materials

Then I selected the material here, the faces and clicked on Assign. It didn't work, I had all my faces using the same material!

But I finally understood you actually assign materials added to the list above:

Assigned materials

You have to click the + button on the right, and you can either create a new material or select an existing one in the drop-down. Then you can select a material in this list to assign to the selected faces.

Also note that if you select a material in this list, then click Select, it will show (select) all the faces using this material.

$\endgroup$
5
  • 1
    $\begingroup$ It's not necessary to add another material slot (which is what done by hitting + button) to assign faces to a material; selecting material slot, selecting faces and clicking Assign is enough. $\endgroup$
    – Mr Zak
    Commented May 25, 2017 at 11:45
  • 2
    $\begingroup$ @MrZak You did it again, talking about a + button without telling which one, which is why I was confused at first... :-) $\endgroup$
    – PhiLho
    Commented Jun 10, 2017 at 7:39
  • 2
    $\begingroup$ Again? Strange. I meant "the + button on the right" which is mentioned in your answer so I assumed it's somehting you know about. What I was pointing out is that it might be not necessary to press that button at all. And there aren't 2 lists of materials - on the top screenshot, above is list of slots, below is the dropdown with list of materials. $\endgroup$
    – Mr Zak
    Commented Jun 10, 2017 at 8:24
  • 1
    $\begingroup$ Thanks for your answer @PhiLho! That's exactly the problem I was struggling with. :) $\endgroup$
    – prubini87
    Commented Nov 23, 2017 at 1:07
  • 1
    $\begingroup$ Question very related to this one and your answer (hence, doesn't warrant separate question): if the goal is to subdivide a material into an arbitrary number of materials (say 5 or 10), would this approach work or are you constrained by the mesh? $\endgroup$
    – Crashalot
    Commented Jan 21, 2018 at 21:29
3
$\begingroup$

If you already have your mesh separated and applied different shaders to each, simply rejoing (Ctrl+J. Then Tab into edit-mode and press Ctrl+V>remove doubles.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .