Multiple Syphon Servers in Processing?

Home Forums Syphon Syphon Implementations – User Multiple Syphon Servers in Processing?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6383
    binarycodedbrain
    Participant

    Hi all!

    I’m working on a multilayer vjing software based on Processing and I have successfully integrated Syphon to send the entire video mix to MadMapper and such.

    Now I’m trying to create one Syphon Server per Layer, but seems that, when I create a new Server, even if every Layer publish frames only on his own Server, only the last created Server send frames and not only of the Layer that is publishing frames on it, but the entire video mix.

    Every Layer has the method “sendImage()” called after the “draw()”, “g” is the PGraphics on witch every Layer draws, then a collector draws every Layer on the main canvas, here the code used by Layer to send his graphic through Syphon:

    public void sendImage() {
    Texture tex = ((PGraphicsOpenGL) g).getTexture();
    if (server == null) {
    server = new JSyphonServer();
    server.initWithName(serverName);
    }
    if (tex != null) {
    server.publishFrameTexture(tex.glName, tex.glTarget, 0, 0, tex.glWidth, tex.glHeight, tex.glWidth, tex.glHeight, false);
    }
    }

    Any advice?

    Thank you in advance! 🙂

    #6405
    vade
    Keymaster

    It is possible there is an issue with multiple Syphon Servers in the jSyphon library (which Syphon for Processing leverages). I admit I have not tried this. Are you sure each PGraphicsOpenGL “G” is unique and each .getTexture call is properly returning a unique, populated GLuint textureID?

    Can you make a simple simple test case, and post a bug on the google code bug tracker? Thank you!

    #6407
    binarycodedbrain
    Participant
    #6409
    vade
    Keymaster

    Thanks. I can reproduce slightly different behavior. I’ve commented on the bug. I think it makes sense to continue conversation there. Thanks for putting the example together.

    #6410
    binarycodedbrain
    Participant

    Yep, I’ve read the comment on the issue 🙂 thank you for your answer!

    Let me know if I can be of any further help

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.