Take the 2-minute tour ×
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

I am trying to put a label over the transparent plastic bottle, but i was unable to do so, because when i build the bottle material(plastic) and mix it with the diffuse shader(using the label texture), the label gets faded. So the solution i found was to duplicate the bottle and scale a little bit and apply the label material on it. So it looks its the same material, but in reality its one material over the other. How can I make my plastic material be under my label material(image)? Here's how it looks: enter image description here

Here's my material setting for the plastic bottle: enter image description here

Thanks in advance.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

To begin with, the add shader node can only be used to add shader/closure outputs (green sockets).

enter image description here

With invalid input, the output of the add shader node will always be 0. To add values (grey sockets), use a Math node (ShiftA> Converter > Math) instead.


Note that plastics do refract light, so a glass node will probably do just fine for the plastic material (if you were using the transparent node to reduce noise/render time, you might be better off with the fake glass setup).

As for mixing, you need to use a black and white stencil (in this case the alpha channel is perfect, but this will not always be the case) as the mix factor (I multiplied it with the output of this node group to remove the tiled repetitions of the image):

enter image description here

Here is the node setup (click for higher resolution):

enter image description here

And the result:

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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