UMG Retainer Effect Material changes Image saturation / washes colors out

Hi everyone,

I’m currently investigating some things to create an interface for a project.

One of the things I need to achieve is a HUD element that rotates but is masked at the bottom so it fades out.

Basically the lines rotate but the fadeout needs to stay at the bottom so they vanish.

I found this thread

which uses a retainer box containing an image as child with an effect material to get a gradient fade.
Which is kind of what I want.

Using this setup:

I end up with a result that does what I want transparency wise, but the color of my image gets lost. It loses saturation and looks washed out.

My input is a png with transparency at this point and a png that’s just black and white for the bottom mask (I also tried a png with transparency for the bottom mask too with no result)


After some further digging I found this really old thread

That depicts the same problem. Which to me seems unresolved…

I also tried to set the Blend Mode to AlphaComposite (Premultiplied Alpha)
This keeps the colors but I get a weird white ghosting where there should be nothing at the bottom,

Weirdly enough plugging the multiplied alphas into the color output seems to display pretty much the mask I need…so I’m unsure where the ghosting is coming from.

I also tried using *.EXR with an Alpha Channel, which didn’t work neither.

Any advice on how to fix this, or what the correct setup is (I’m probably just missing one small thing) would be appreciated.

Cheers
Daniel

1 Like

Here’s another thread with the same issue, also stating that there was a fix implemented which seems to have been removed since then.

The node setup later in the thread seems to get the colors close to normal. Still an official statement and fix would be appreciated.

1 Like