secondstory / ofxDSHapVideoPlayer

ofxDSHapVideoPlayer is a Hap video player addon for openFrameworks (Windows-only)
Other
37 stars 21 forks source link

alphaMask not working #8

Open julianadenauer opened 8 years ago

julianadenauer commented 8 years ago

Hey, it seems like setting an alpha mask for the video does not work as it does for ofVideoPlayer where I can do:

video.getTexture().setAlphaMask(fbo.getTexture());
fbo.begin();
// draw some shapes
fbo.end();
video.draw(0, 0, 4320, 1920);

Any idea how to do this with ofxDSHapVideoPlayer?

julianadenauer commented 8 years ago

Ok, it seems the addon's internal shader overwrites the alpha mask setting. One solution is to draw the video onto another FBO and applying the alpha mask for this one instead.