Direct render to syphon server


    Apr 19 2017 | 3:12 pm
    I'm looking to share with syphon server without using jit.wold
    I'm looking to have good dimensions and scale.
    It's only for a preview in a second patch, i just want to change fps and quality.

    • Apr 19 2017 | 3:27 pm
      i'm not sure what you are asking
    • Apr 19 2017 | 3:33 pm
      Is it possible to Gl render directly to syphon server ? or i need a rendering in jit.window or jit.world.
      Just looking for best performance.
    • Apr 19 2017 | 3:38 pm
      yes you need the jit.world / window.
      the patch you posted looks correct to me
    • Apr 19 2017 | 3:43 pm
      ok ! thanks
    • Apr 19 2017 | 6:06 pm
      I want to replace in this patch, a jit.movie by a jit.syphonclient but there is nothing.
      syphonclient have a texture out ?
    • Apr 19 2017 | 6:23 pm
      you have to bang it
    • Apr 19 2017 | 7:10 pm
      yep.
      Last element, how to preserve ratio of each video.
    • Apr 19 2017 | 10:33 pm
      Someone can have a look at these patches ?
      Aspect ratio is not good when changing input ratio.
      These 2 patches running together are not stable. i don't know what to do.
      Thanks for the help !
    • Apr 20 2017 | 2:20 pm
      for aspect ration calculations, it's easiest to use gl.cornerpin @preserve_aspect 1. but you have to understand that the calculations are relative to window size (or texture size if capturing the cornerpin) and video input dimensions. so you need to make some decisions about those aspect ratios and dimensions first, and set attributes accordingly.
      for example in the patch below, i make a determination that the final aspect ratio should be two 4:3 aspect ratios next to each other (8:3), so i set each capturing node dims to 4:3, and the corresponding gl.cornerpin will preserve the input video appropriately to that aspect ratio.
      adjust dims to suit your needs.
    • Apr 20 2017 | 2:49 pm
      Ho great ! I was trying with gl.cornerpin @preserve_aspect 1 and resize with texture but that was not the good way.
      [jit.gl.node] is prety good for that, new object for me. thanks a lot !!
    • Apr 20 2017 | 3:18 pm
      Is Syphon, the best solution to share videos thru 2 Max standalone app, on the same computer.
      The first app is my engine without pwindows, ans my second app the remote with a lot of pwindow.
    • Apr 20 2017 | 3:50 pm
      And if i want to send and receive data between 2 max standalone on the same computer, is OSC the best solution ?
    • Apr 20 2017 | 6:15 pm
      Another option is to use (udpsend) or (jit.net.send) using localhost as your destination.
    • Apr 21 2017 | 1:46 pm
      syhpon will be better than jit.net assuming your source and destination are GL textures.
    • Apr 21 2017 | 2:17 pm
      Agreed. I always recommend testing all reasonable options as sometimes there are tradeoffs like speed/memory or speed/stability.
      The two options I provided are good for sending messages and matrices, not textures.
    • Apr 21 2017 | 2:23 pm
      @rob , what do you think about the best solution to transmit data between standalone applications. (Only data, no Msp,no jitter)
      I know quite well osc/udpsend on localhost
      i'm looking for somethink different that interact only with Max standalones, and whynot with objects names but i don't beleave in...standalone look isolated
    • Apr 21 2017 | 8:54 pm
      as mentioned udpsend/receive.
      if it's large datasets pack into a matrix and use jit.net.send/recv