Add transparency to existed material

I noticed this when trying to have objects become transparent when you hover over them and fully opaque if not. However, I think with deferred rendering, there are some well known transparency issues which means that certain effects wont work on objects with a transparent surface. For now, I swap out my material to an opaque one when the opacity would be 1, but use the transparent one otherwise.

It’s not ideal for now any maybe there is a better way to approach this, but I haven’t found a clear solution myself as of yet.

Hi nikitablack -

If you take a look at the Material setup documentation, here, and the Blend_Mode documentation, here, you will see that translucent materials are not compatible with Dynamic Lighting.

If what you are trying to achieve is a complete fade in and out of an object, I would suggest using a Masked Material which is compatible with the lighting and using an If node to control the fade out with a prepared Mask.

If you need me to explain further let me know,

Eric Ketchum

Hello.

I want to add smooth fading of an object. For that I need to change transparency over time.
But I take any material from ue content library and change it’s blend mode to translucent, material is looking wrong, even if opacity parameter is 1. It seems that all shading is lost and sometimes it semitransparent with alpha equal 1.

I just want that my material looks same with opacity == 1 as with opaque blend mode.

thank you. Now I see the rules of translucency in ue.
And it would be great if you give me a direction of how to use Masked Material for my effect. As far as I understood masking is used for binary condition (true/false) and not suitable for smooth fading.

Thank you. That looks cool but it’s not what I wanted. But it’s OK, I understand the problems with transparency in deferred renderer.

Hi -

Not a problem, here is one of my favorite ways of fading stuff out with masked materials. In this example I am using a Noise based Gradient fade so that the fade is random, however you can set up your gradient to work how you wish.

This is on the M_Chair Material in the Starter Content, the section I am showing is connected into Opacity Masked with the Material set to Masked.

If there is anything else I can help you with let me know

Eric Ketchum