Open
Description
I have an alpha mask that I'm using on the canvas. It works fine in the processing image, but when viewing the syphon feed, I only see the base layer. The mask and anything after are not rendered.
import processing.video.*;
import codeanticode.syphon.*;
PGraphics canvas;
SyphonServer server;
PImage mask;
PImage lines;
PImage backdrop;
Movie background;
void setup() {
size(1920,1080, P3D);
canvas = createGraphics(1920, 1080, P3D);
mask = loadImage("alpha_mask.png");
backdrop = loadImage("white_backdrop.png");
background = new Movie(this, "finalimage_1.mov");
background.loop();
// Create syhpon server to send frames out.
server = new SyphonServer(this, "Processing Syphon");
}
void draw() {
canvas.beginDraw();
canvas.background(100);
canvas.image(background, 420, 0);
canvas.mask(mask);
canvas.image(backdrop, 0, 0);
canvas.endDraw();
image(canvas, 0, 0);
server.sendImage(canvas);
}
void movieEvent(Movie m) {
m.read();
}