Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Video with alpha mask

$
0
0

@Massimiliano_Zanoni wrote:

Hi,
I’m dealing with video transparencies. I have a couple of videos in mp4 formats. The first video contains color information, the second has the alpha channel mapped on gray scale. I would like to use the second video as an alpha mask for the first.

I wrote down this piece of code, taken from the forum, but it doesn’t work to me, it display the first video with no transparencies

void ofApp::draw(){
ofBackground(255, 255, 255);
Drop.getTexture().setAlphaMask(DropMask.getTexture());
Drop.draw(100, 100, 200, 200);

DropMask.draw(100, 100, 200, 200);

}

Here is the project:

Any help ?
Thank you very much !!!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles