jvcleave / ofxOMXPlayer

OpenMax accelerated video player for openFrameworks on the Raspberry Pi 0-3. Does not work with RPI4
GNU General Public License v2.0
180 stars 61 forks source link

AlphaBlending mode behaving weirdly - textured mode #71

Closed fernandovmac closed 5 years ago

fernandovmac commented 8 years ago

Hey,

I've been trying to create a simple mask over the video for when it starts playing. I'm basically drawing a rectangle over the video that fades in and out as the video starts playing. What happens then is that the fade of the alpha of the Rect also affects the alpha of the omxPlayer, even though I've set the alpha for the video to be constantly in 255. This happens if I draw the Rect after the omxPayer. When drawing the Rect before the omxPlayer it looks like it corrects it, but then when I translate it on the Z-axis (to be in front of the omxPlayer) I get back to same problem.

Any hints on dealing with the alpha of the player? RPI2, oF 0.9.0 armv7, Raspbian Jessie. I've set the "EnableAlphaBlending".

Thanks a bunch!