About Chroma Keying in Media Texture

I’m been researchig how to make chroma key with video within UE4 for a while.
My first achievement was with the webbrowser plugin, although the image was pixelated and the color washed out.
Most recently I’ve been able to get the DASH or manifest of youtube videos, then parse the url to feed it into the media player framework. I was able to reproduce a video with quite convincing chroma using a custom material

As I said, the results are quite nice.

But I’m wondering how to improve the results using the built in chroma key within the “media texture”. It seems like it has the parameters to do it without a material, or at least, using the right material parameters.

Any hints to achieve my goal?

The process I’m using is
-Create “Media Player” in content browser with it self audio and texture.
-Create a blueprint with a plane shape (scale t x1.6 y1 z1 to make it 16:9) and apply to it the material linked to the texture.
-Add the media sound object and play it.

Once again, the trick works when I use my custom material, but it doesn’t with the default material. I mean it plays but doesnt make the chroma key even when selected in the texture, so… What next? I’ve tried many parameters in this material but seems the media texture it’s not affected by the chroma key parameters. It may be because I’m using a streaming video?

I’m far to be a pro user so don’t mind to point me into very basic topics to keep learning.
By the way, the project I intend to implement is UVU (UnrealVirtualUniversity), so let me know if anyone is interested.

Thanks in advance and sorry about my broken english.

Alfonso Generoso.

The media texture inherits the chroma key field from the parent UTexture class. I have no idea if and how it works :slight_smile:

That being said, I’d like to let you know that MediaTexture assets will go away in Media Framework 3.0. Instead there will be a special media sampler material node that can be used inside materials.

Therefore, if you find a good chroma keying solution using materials, that will be more future proof anyway. Chroma keying is also on our to-do list, but we haven’t looked into it yet. I think you’re breaking new grounds here, and it does look really good already :slight_smile: