-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ndi consumer straight alpha #1421
Comments
To me this looks like it is working correctly. You set opacity to 50%, so 50% translucent. NDI (supposedly, never seen it working with linux based receiver) transports Alpha channel. NDI Monitor has a black background, and alpha blends your red color on top of it. Making it darker. |
Can you check turning on the checkerboard background in studio monitor and seeing how it multiplies with white? I don't remember how studio monitor handles alpha. Or perhaps test in OBS over another source? Perhaps also taking it back into CCG on another channel. |
Looks to me like NDI wants straight alpha but CCG (>=2.3) only does pre-multiplied (and studio monitor likely only supports straight). Various software that works with NDI have options to support pre-multiplied. |
Expected behaviour
CasparCG output rgb error when alpha != 1
I think mixer needs divide by alpha when alpha != 0 and alpha != 1
color.rgb /= color.a
Current behaviour
When I try play with alpha and export to NDI, color receive in NDI Studio error
Steps to reproduce
ADD 1 SCREEN
ADD 1 NDI
PLAY 1 #FF0000
MIXER 1 OPACITY 0.5
Environment
Screenshots
The text was updated successfully, but these errors were encountered: