Closed codeanticode closed 11 years ago
Alpha seems to be working properly in the latest revisions. Tested it out with the following server and client sketches:
// SendFrames sketch
import codeanticode.syphon.*;
PGraphics canvas;
SyphonServer server;
void setup() {
size(400,400, P3D);
canvas = createGraphics(400, 400, P3D);
server = new SyphonServer(this, "Processing Syphon");
}
void draw() {
canvas.beginDraw();
canvas.background(255, 0, 0, 50);
canvas.lights();
canvas.translate(width/2, height/2);
canvas.rotateX(frameCount * 0.01);
canvas.rotateY(frameCount * 0.01);
canvas.fill(0, 255, 0, 240);
canvas.box(150);
canvas.endDraw();
image(canvas, 0, 0);
server.sendImage(canvas);
}
// GetImage
import codeanticode.syphon.*;
PImage img;
SyphonClient client;
public void setup() {
size(400, 400, P2D);
client = new SyphonClient(this, "SendFrames", "Processing Syphon");
}
public void draw() {
if (client.available()) {
background(150);
strokeWeight(10);
stroke(255);
line(0, 0, width, height);
img = client.getImage(img);
image(img, 0, 0, width, height);
}
}
What steps will reproduce the problem?
What is the expected output? What do you see instead? Alpha! No alpha.
Ping Memo about this, he alerted me to the issue.
[ported from issue report in googlecode: https://code.google.com/p/syphon-implementations/issues/detail?id=22]