12
$\begingroup$

I am trying to create a low poly face with a face from a .png file. The issue is I already have material placed for hair and skin, as shown in the picture below.

I have created a .png file with a face which I would like to overlay over the skin material on the front of the head.

enter image description here

All examples I searched so far assume I also want the color of the material from the .png texture.

Update:

I added UVMapping, changed view to texture, made sure one face is on the eye but nothing is displayed..... see image... I don't know what is going on.

enter image description here

$\endgroup$
  • $\begingroup$ It will likely be easiest for everyone if you upload a copy of your ~.blend file to a hosting source, or to [blend-exchange.giantcowfilms.com/], and add a link to your question so that those who want to help are working with you from the same material.. $\endgroup$ – brasshat Jun 26 '15 at 2:28
  • $\begingroup$ There will be no textures displayed in Cycles both in viewport and render unless you add Texture coordinates node, see this answer for more info. $\endgroup$ – Mr Zak Jun 26 '15 at 21:37
  • $\begingroup$ Related: blender.stackexchange.com/questions/46424/… $\endgroup$ – cegaton Jun 15 '18 at 21:18
11
$\begingroup$

The image texture node has two outputs, the color data and the alpha (transparency channel) data of the image. The color data only holds the red, green, and blue of each pixel. So if you plug it into a shader's color you will probably just get black where there is supposed to to transparency because those pixels are really black, but invisible. You need to use the alpha output as a mask for placing the face over the skin shader.

To do this take whatever shaders you are using for the blank skin and mix them with a diffuse (or whatever other shader[s] you want for the facial features) based on the alpha output of the image texture.

enter image description here

enter image description here

$\endgroup$
  • $\begingroup$ Absolutely perfect! Thank you for posting. $\endgroup$ – phyatt Oct 17 '17 at 3:36
3
$\begingroup$

You also can mix the texture with the material (using a single shader, mixing colors) this way:
enter image description here

$\endgroup$
  • $\begingroup$ Nice painting job @Bithur :). This reminds me xbox 360 avatars style. $\endgroup$ – Paul Gonet Aug 9 '15 at 16:21
  • 2
    $\begingroup$ @Gonzou avatar? thought is was photorealistic! $\endgroup$ – Bithur Aug 9 '15 at 16:29
  • 1
    $\begingroup$ I looked closer (zoomed in the image) and have to admit you're right. IT IS PHOTOREALISTIC ;). $\endgroup$ – Paul Gonet Aug 9 '15 at 16:37
0
$\begingroup$

One way to do this is adding to the material a image texture, mapping "object", alpha premultiplied, mapped to an empty. The image sticks to the mesh surface facing the Z axis of the empty. If you move, rotate scale the empty, the image get the same transform. You can see the effect only in render, so maybe activate also "render preview" in a 3D view.

See this CGCookie tutorial for an example of this method.

$\endgroup$

protected by cegaton May 13 at 3:33

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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