alphablending in subtitles

maxizahn's icon

hi folks!

i'm trying to mix a live video with subtitles. this works fine. now i want to have a smooth fade_in and fade_out for the subtitles. i thought i'd just control the alpha-channel of the font color. but this somehow only works for black, not for white and all the other colors.

has anyone an idea how to solve this? what am i doing wrong? thank you very much in advance!
maxi

text.maxpat
Max Patch
Tobias Rosenberger's icon

yeah, that looks strange. but your patch seems tp work fine with jit.gl.text3d, maybe you can use that

maxizahn's icon

yes, it works with jit.gl.text3d
strange, but thank you very much!

yaniki's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Interesting. Seems @blend alphablend for [jit.gl.text2d] is broken. But you can still use @blend_mode 6 7. Works fine on my computer - check attached patch (is based on yours, a bit ordered).