Today i’m trying to use a simple PNG picture as a texture.
As you can see, my background is transparent, and the character is black.
I import my picture to ue4, so it can load it as a texture. Then I create a material from it and set Material Doamin to Deferred Decal, Blend Mode to Transclucent and Decal Blend Mode to Transclucent.
When I apply this material to an object, the background is white, and not transparent.
I don’t understand what i’m doing wrong. It seems that my issue comes from the import, as Unreal doesn’t consider my image as a transparent one. It says “Has Alpha Channel: False”.
How can I manage to import a picture correctly, and to apply it to a material.
ANy help would be much appreciated :). Thank you everyone !
And if I remove the background in photoshop then reimport it the problem goes away. If you don’t have photoshop available here’s the edited copy of the image:
Another thing to consider is, by default in the material editor, black is fully transparent, and white is fully opaque. Basically, black is translated as alpha value 0, white is translated alpha value 1 (in range 0-1). It’s easy to miss because while working on an image in an image-editing application (Photoshop, GIMP, Inkscape, etc) alpha is simply what it is irrespective of color.