Log in or register to post comments

Alpha/transparent video

June 22, 2017 - 5:54am #3

Hey, guys

I have been using Vuforia for about 2 years now; we have about 4 or 5 apps running the SDK and we love it! Some cloud based and some on-device. I was wondering if Vuforia had the capability to play alpha/transparent videos. I have researched for a long time now and tried everything and I just can't get it to work. I am wondering if this is even possible to do with Vuforia so I don't have to waste any more time trying.

Basically, I have a green screen video that I have keyed out as an mp4, avi, quick time, png sequence and .webm. None that I can get to work successfully. I was wondering if there was someone who could help me with this. 

Thanks in advance,

Patrick

Alpha/transparent video

June 22, 2017 - 8:05am #2

Hello,

The Video Playback sample is not a feature of Vuforia. Rather, it is a demonstration app that provides source code to devs as a reference for creating a similar experience. Unfortunately, this can also mean that your success may vary when trying to re-use the codebase in its existing form.

We have been made aware of developers have apparently been successful in applying a shader that supports alpha channel transparency, but we don't have any official examples on how to support this.

Additional note: Unity 5.6 has released a new video player feature that supercedes the previous Movie Textures feature: https://docs.unity3d.com/Manual/VideoPlayer.html. Our initial experiments when integrating the feature with Vuforia have been successful. We are excited for this development as it will potentially simplify the use case for Vuforia devs who have had difficulties re-implementing our existing sample code.

There is also anecdotal evidence on the forums that others have successfully used it with Vuforia: https://developer.vuforia.com/forum/unity/unity-56-videoplayer

Thanks.

 

 


Alpha/transparent video

June 22, 2017 - 3:35pm #1

Hello,

An additional idea:

Use a blue/green chromakey color as a replacement of alpha in the video (should be easily doable in Adobe Premiere). Access the video texture and change the shader to replace the chromakey color with alpha transparency.

I believe there is some source code available here: https://forum.unity3d.com/threads/chroma-key-in-unity-5.359119

Thanks.

Log in or register to post comments