- Home /
Video Texture - Alpha
Hello,
I have a video texture that I have applied to a plane, and the video has an alpha background. How do I get it so that the alpha (transparant) is also applied to the plane? Right now, the alpha is black.
Thanks
As far as I know video doesn't support alpha ... how did you create and compress your video?
Answer by jonas-echterhoff · Jun 09, 2011 at 07:20 AM
Unfortunately, Theora, which is the video codec used by Unity, only supports RGB, no Alpha. The only known workaround is to use two MovieTextures, one with the RGB data, and one with the alpha, and use a custom shader to combine the two.
Answer by snedgel · Feb 26, 2013 at 10:23 AM
So there is only one way to have an Alpha on a video on unity ???? movie texture ?
So i can't export it for an augmented reality ap on my android isn't it ?
That wasn't an answer, it was a comment. But this was an old post, before more formats were supported. I don't know if any of the current ones do support alpha (why, oh why, didn't mpng or mng ever get support?). But use green-screen techniques, see other answer.
Answer by DaveA · Feb 26, 2013 at 10:25 AM
You can use a 'green screen' shader. There's on in the Asset Store already or you can wait for mine which should be posted soon.