ofxgreenscreen

hi guys,

i’d like to use the ofxgreenscreen addon to realize a simple greenscreen effect.

i’ve got two movies, both type of ofvideoplayer .

one of them is shot with greenscreen background.

what i want to achieve is : while both videos are playing, the green pixels of the “second-layer” movie should
be transparent.

but somehow they’re not. masking works, but the pixels are not transparent, there is a pattern (squares of black and white) in the background now:

update:
greenscreen.setPixels(itsmovie.getPixelsRef());
greenscreen.setBgColor(ofColor(255,255,255));

draw:
itsmovie2.draw(0,0);
greenscreen.draw(0,0,800,600);

thx for any help!!
greets
oli

try this in draw()

  
   
ofEnableAlphaBlending();  
itsmovie2.draw(0,0);  
greenscreen.draw(0,0,800,600);  
ofDisableAlphaBlending();