Denis

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Syphon Server in Processing 3 not working #59179
    Denis
    Participant

    OK. If PJOGL couse this problem, maybe is the other way to make it work (send frames from processing to syphon) without using PJOGL profile ?

    in reply to: Syphon Server in Processing 3 not working #59174
    Denis
    Participant

    Also I noticed when I set hight value of “strokeWeight” it start working corectly, the lines are drawing (as line, not dots), but it still look much worse compared with code where I don’t use:

    void settings() {
      size(480, 340, P3D);
      PJOGL.profile = 1;
    }

    maybe it is due to the fact than syphon still don’t support OpenGL3+ ? and there is no sense to fight with it ? I don’t really now …

    in reply to: Syphon Server in Processing 3 not working #59173
    Denis
    Participant

    Thank you for reply, but I’m beginner processing user, and I think I don’t get it clearly. I try to search some information about “glClear”, but I think it’s to complicated to me. Can you write for me some example of using this function, that I can experiment with it ?

    in reply to: Syphon Server in Processing 3 not working #59170
    Denis
    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.
Viewing 4 posts - 1 through 4 (of 4 total)