How can I get opacity and opacity mask at the same time?

Hi guys!

I have a PNG image with alpha channel, and I want to add it to my scene. I need the material to transition from transparency to emissive and then back to transparency. The problem is that I can either cut the PNG based on the alpha channel or control the transparency.

How can I enable both ports: Opacity and Opacity Mask?

You can’t have both enabled at the same time.

The best way to accomplish what you want is to make it masked and use dither temporal aa. It’s a pixel-space effect that imitates transparency using either fully visible or fully invisible pixels (this is also more efficient performance-wise than transparency):

1 Like

It also has the extra benefit of not having an impact when two dithered objects overlap (no need for intense transparency sorting)

I came to UE5 from Cinema 4D, and it’s really strange that you can’t use both parameters simultaneously. Сonstantly trying to find workarounds in the software you’re working with feels absurd. However, it did help. Thank you so much!

2 Likes

Once you get used to it I think you’ll like it - like the others said, as UE is a game engine, it uses a fast type of masking with the dithered masking.

You can use the transparency like in Cinema 4D, not using the Mask pin, but any value under 0.33 into the transparancy pin becomes masked out (you can control that figure).

There are also some cool features that use both pins you’ll find out about in the future - when using a mode called “SubSurface Opacity” you use the Mask pin to control the Mask, and then the opacity pin to control how much “SubSurface” color comes through.

1 Like

Hi there @AnPo, hope you’re well!

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing! :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.