3
$\begingroup$

This question already has an answer here:

I've created a wood floor material using an image texture node, I'm happy with how it is displayed in the material preview.

However when I apply the material to any object, in this case the 'wood_floor', the shader seems to only apply a single color to the object rather than the textured material I've created.

Here is the blend file.

workspace

What is causing this effect and how can I get the material to apply to the entire floor object?

$\endgroup$

marked as duplicate by VRM, cegaton, David, Chebhou, p2or Mar 24 '15 at 16:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ the file you uploaded does not have the image texture, please pack the image with the file. you can use File-.External Data->Pack All Into .blend $\endgroup$ – cegaton Mar 24 '15 at 14:44
  • $\begingroup$ thanks, I have fixed the blend file, thanks for having a look! $\endgroup$ – Reustonium Mar 24 '15 at 14:53
  • $\begingroup$ related texture-is-missing-in-cycles and texture-not-rendering-in-cycles $\endgroup$ – Chebhou Mar 24 '15 at 15:14
3
$\begingroup$

You have a texture but blender can't guess what coordinates to use for the texture mapping. To fix try this: In your wood floor object a texture coordinate node. Connect the object coordinates to the vector connector on your image texture node.

enter image description here

$\endgroup$
  • $\begingroup$ This is great, is there some kind of "scale" node I could add to change the size of each 'plank' of wood? $\endgroup$ – Reustonium Mar 24 '15 at 15:20
  • 1
    $\begingroup$ @Reustonium yes there is, under Add > Vector > Mapping. Put it between your texture coordinate and texture nodes. $\endgroup$ – VRM Mar 24 '15 at 15:22
  • 2
    $\begingroup$ @NoviceInDisguise you type faster than me... $\endgroup$ – cegaton Mar 24 '15 at 15:23
2
$\begingroup$

You need to UV Unwrap your mesh. You can do this by going into Edit Mode, selecting all vertices, and pressing U > Unwrap. You do not need to change your material at all, UV Maps are applied to all image textures by default.

unwrap Mesh

For more in-depth explanation of the process go visit the wiki article

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.