Log in or register to post comments

Display Video with ChromaKey

October 29, 2012 - 12:47pm #1

Hi everyone,

 I´m seeking for help. Using vuforia and some examples, I am displaying a video over a texture.

The thing is  that the video has a green background, so the idea is to use the ChromaKey shader (from Brad Larson GPUImage) or similar

and apply it on the video shader.

Thats the approach, but I can't make it work.

May be someone might suggest me something, if I found more information or make it work, I'll let you know

Display Video with ChromaKey

July 14, 2013 - 2:25pm #6

Several developers have apparently been successful in applying a shader that supports alpha channel transparency, but we don't have any official examples.

https://developer.vuforia.com/forum/qcar-api/playing-video-alpha-channel-videosample-demo-project

Display Video with ChromaKey

July 14, 2013 - 6:01am #5

Is there any example using unity?

Display Video with ChromaKey

March 9, 2013 - 8:06am #4

Nice ! Thanks for sharing it.

Display Video with ChromaKey

March 9, 2013 - 7:53am #3

I came up with an approach that modifies the fragment shader in the video playback sample. The result was I could render any colour I specified to have a completely transparent alpha channel. The results were pretty nice. I wrote a short blog article about it here. Note this approach does not use Unity.

Display Video with ChromaKey

October 30, 2012 - 1:56am #2

Hi, taking the ChromaShader "as is" and plugging it into your Vuforia app will probably not work, because you will need to adjust the shader code so that all the uniform parameters in the shader and all the attributes (such as Vertex position, etc.) match with the definitions that you use in the application code (see ImagetTargets.cpp and other cpp files in ImageTargets sample).

 

Also, you need to be aware that in OpenGLES 2.0 there are quite some big differences with respect to regular "desktop" OpenGL; these differences have an impact also at the shader level;

so, you really need to master these issues quite well if you want to achieve your goal....

 

If you have then more specific questions, we are happy to help!

 

Log in or register to post comments