Home › Forums › Syphon › Syphon Implementations – User › Syphon Server in Processing 3 not working › Reply To: Syphon Server in Processing 3 not working
June 9, 2016 at 7:48 am
#59170
Participant
I try to send frames from processing to resolume, I have the same problem as guys above.
void settings() {
size(480, 340, P3D);
PJOGL.profile = 1;
}
Thats code solve problem, but … the resolution of generate image looks worst.
Without using PJOGL: https://drive.google.com/file/d/0B8ynmra1gIBNNGpsREhOdE9JQ2s/view
With using PJOGL:
https://drive.google.com/file/d/0B8ynmra1gIBNVTZ2VUdpWURBT2c/view
I don’t now why it’s happend ? Do you have any solution ?
This is source code:
ArrayList history = new ArrayList();
float dist = 80;
void setup() {
size(1280, 720);
background(0);
stroke(255);
strokeWeight(.1);
noFill();
}
void draw() {
}
void mouseDragged() {
PVector d = new PVector(mouseX, mouseY, 0);
history.add(0, d);
for (int p=0; p<history.size (); p++) {
PVector v = (PVector) history.get(p);
float join = p/history.size() + d.dist(v)/dist;
if (join < random(2) ) {
line(d.x, d.y, v.x, v.y);
}
}
}
void keyPressed() {
if (key == 'x') {
background(0);
history.clear();
}
if (key == 's') {
saveFrame( "######.tiff");
}
}
-
This reply was modified 4 years, 9 months ago by
Denis.