Hey all,
I’d like to implement an animation in my program that has an irregular shape (i.e. non-rectangular) and I am looking to make the white section surrounding the animation be fully transparent. Is there a way, within OFVideoPlayer to implement alpha or at least apply a mask on the shape of the video I’d like to display?
Thanks
DCellucci
hey there,
a while back there was a video player that supported alpha posted:
http://forum.openframeworks.cc/t/ofvideoplayer-and-gl-rgba/364/0
the source is still up at:
http://number27.org/download/OF/AlphaVideoPlayer.zip
You’ll need to use the Animation codec to get alpha videos, which can be pretty bad for performance.
Alternatively you can create two videos, one that is your main content and then another that is a mask. and combine them using the shader from example:
https://github.com/obviousjim/FlightPhase-ofxAddons/tree/master/ofxAlphaMaskShader
Hope this helps!
cheers,