mask with png image
Hello,
I am working on a project that I need to create a square mask in the middle of my matrix.
Is it possible to create a mask in jitter with a .png image and superimpose the image on another one?
Any suggestions on how to do this?
Else I will use the .lcd way of tutorial 29 but I think is more trouble...
Any response appreciated...
Thanks in advance,
Spiros
uhm... i'm having the same question.
as far as i gathered from the examples, other posts and the documentation i could somehow use a jit.gl.slab with cc.alphaglue.jxs but this seems really quite heavy for what i want to achieve since as i understand this, i would have to pack the incoming video with my still image matte for every single frame anew which i can't believe to be very economic.
isn't there a simple way just to load my matte key once as a texture (set texture) and then simply tell gl.slab (or whatever) to use that to blend my two incoming videos?
as always, any help much appreciated!
i fiddled around some more and figured i might be able to do this simply with a videoplane... i loaded my texture and if i click it, it displays fine in the videoplane, with alpha and everything. but as soon as i enable any real video input the videoplane overlays the video (one layer above the other) as intended) but completely forgets about my nice little texture.
how do i get videoplane to map the incoming video to my alpha matte?
or is this whole approach completly wrong anyway?
i know that this is probably embarassing simple but somehow i can't find any example which covers that and so i'm somehow stuck...
stop, i finally found it in some other thread and it does work with videoplane, see here: https://cycling74.com/forums/videoplane-alpha-very-urgent
there are two patches, the first one using opengl seems to be quite the thing i was looking for, thanks to whoever provided that!