Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Processing to Resolume via Syphon

$
0
0

Have been working on an interactive sketch to output to my Resolume program, and found some resources on using the Syphon server. I got as far as having Resolume recognize the output, but the signal seems glitched and totally off.

The image will be a slit-scan type of live feed... still in the works.

Any help here?

`import processing.video.*; import codeanticode.syphon.*; PGraphics canvas; SyphonServer server; Capture cam;

void setup() { size(600,400, P3D); canvas = createGraphics(600, 400, P3D); // Create syhpon server to send frames out. server = new SyphonServer(this, "Slitscan"); ////CAPTURE//// String[] cameras = Capture.list();

if (cameras.length == 0) { println("There are no cameras available for capture."); exit(); } else { println("Available cameras:"); for (int i = 0; i < cameras.length; i++) { println(cameras[i]); } cam = new Capture(this, cameras[0]); cam.start();
}

} void draw() { canvas.beginDraw(); canvas.background(0); if (cam.available() == true) { cam.read(); } image(cam, 0, 0); for (int high = 800; high > 0; high=high-50){ image(cam, 0, 0, 800, high); } server.sendImage(canvas); //server.sendScreen(); }`

This is what the receiving image looks like: Screen Shot 2017-03-23 at 10.57.07 PM


Viewing all articles
Browse latest Browse all 2896

Trending Articles