Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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. alt text

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. alt text

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.

Product Version: UE 4.15
more ▼

asked May 16 '17 at 01:33 AM in Rendering

avatar image

86 4 9 9

avatar image gmpreussner STAFF May 16 '17 at 04:25 PM

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

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 :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question