Magic

Music Visuals
https://magicmusicvisuals.com/forums/

Create a mask in a moving graphic

https://magicmusicvisuals.com/forums/viewtopic.php?f=2&t=2606

Page 1 of 1

Create a mask in a moving graphic

Posted: Sat Jul 10, 2021 9:18 pm
by TKS
Let's say I have a moving graphic from a shader or a video or an animated gif.

I would like to show (or blend in) another graphic only in the parts of the video whichare black (or darker as the rest in general). Ideally the level of brightness where this kind of masking should happen should be adjustable.

Is this possible?

Re: Create a mask in a moving graphic

Posted: Sat Jul 10, 2021 9:39 pm
by Terry Payman
Feed your video into the Lumakey module (Add > Effects2D > Lumakey), with Falloff set very high (e.g. 0.95)

Adjustments to Strength will set the "black" level, below which your video will become transparent.
Put your graphic on the layer below (the pin on the following module that is below the pin to which LumaKey is connected).

Falloff can be adjusted to optimise the blend. The two adjustments interact, so if you change one it's likely that you'll also benefit from adjusting the other.

Re: Create a mask in a moving graphic

Posted: Sun Jul 11, 2021 4:17 pm
by TKS
Terry Payman wrote:...
Put your graphic on the layer below (the pin on the following module that is below the pin to which LumaKey is connected).


Ah, that's what I did wrong all the time. Thanks a lot for your help, this works perfectly!

All times are UTC
Page 1 of 1