Decal opacity mask not working - why?

I’ve also tried connecting alpha channel, red channel, etc. + changing opacity mask value, changing sampler type… - still not working. What’s wrong with this material?

UPDATE: When spawned in world, opacity mask is working, but not properly - instead of “X” i have two parallel lines… Very similar problem to this: Decal Become square when spawning - Rendering - Unreal Engine Forums

Hello Slavq,

What you need to do is change your ‘Decal Blend Mode’ to ‘Masked’ instead of ‘Translucent’, and plug your masked texture sample into the ‘Opacity Mask’ pin slot.

Hopefully this resolves your issue, but if you are still not able to get your material to function properly, let me know and we can further investigate.

Thank you,

I don’t have “Masked” mode there:

24522-material.png

No worries that was my mistake. I set up my own decal material using the ‘Emissive’ Decal Blend Mode and was able to get the opacity mask through a Linear Interpolation. Use the images below as a reference on how to set up your own material.

Material Set Up

Material Applied as Deferred Decal

Hopefully this is the outcome you are looking for, but if you still need some assistance let me know.

Cheers,

Thanks, but i get weird deformation - instead of “X” i have two parallel lines:

Material setup is the same, however, i’ve noticed that my “Opacity Mask Clip Value” is active (not greyed out like in Your screenshot):

I’ve tried putting other textures to be sure that’s not a problem with this particular “X” texture.

EDIT: I’ve changed back to Surface, then changed Blend Mode from Masked to Opaque. Then changed back to Deferred Decal - now it’s exacly the same as in your screenshot, but it’s still deformed.

Hey again Slavq,

The next thing I suggest is sending me the texture sample, “X”, you are having trouble with and letting me test it on my end as well.

When sending a file, you need to zip it up into a folder in order for AnswerHub to allow you to attach it here.

Thanks,

Here it is:
link text

I’ve also tried with other textures, but maybe i’m saving them in wrong format or something… Thanks

Hello Slavq,

The problem is with your arrow facing for the decal. The decal is applied to a surface in the direction in which that blue arrow is facing. Here is exactly what I am talking about.

Properly Applied Decal

Improper Arrow Direction Decal

This should resolve your issue! :slight_smile:

Cheers,

Aaah, so that was it… It worked, thanks! :slight_smile: