Texture with black text PNG problem.

Question

Hi guys. I have a little problem. I have a texture in png format on my cube. One text is white in PNG and works well and another one is black. When I change for black texture png it disappear from Cube. Here is a node structure. Where is an issue? Plz help. Thank!nodes.png

1 love
Reply
  • Omar Domenech replied

    The texture node called "Text_str2.PNG" can't go directly into the mix shader node. That mixes between two shaders and the texture node is not a shader. See how the node noodle goes from yellow to green?

    So you have to first get the "Text_str2.PNG" node into a Principled BSDF and then that one into the Mix Shader.

    And if you're using the alpha of the PNG, the noodle has to come out of the gray Alpha socket.

    2 loves
  • Martin Bergwerf replied

    Omar is mostly right.

    Connecting a Color Output (of the Image Node) directly into a Shader Input used to be forbidden, but nowadays Blender inserts an Emission Shader Node in between (behind the scenes)...the problem you get, is when you have a black image, send to an Emission, that is like having no Emission at all...

    I'd use a Mix Color Node and plug that into the Base Color of the Principled Shader, or use the Color Ouput of the Image Texture Nodes directly into the Base Color of the Principled.

    Or use your setup, but insert another Principled Shader in between the Text and the Mix Shader.

     

    2 loves
  • Kuba Kupis(ragas) replied

    Thanks! It worked! I added BSDF for each texture and then i connect them to MIXShader. But I had to change Alpha in Texture Node from "Straight" to "None" also! That's all :) Thank you for help! Cheers!

    • 👍🏻
    • 🤘🏼
    1 love