capturing texture of with

    Jun 06 2015 | 10:39 am
    Hello jitter fellows,
    I have a problem capturing the texture of my with
    My goal is to output a lowres version of my render context on a jit.window, and to capture a highres offscreen version of the same render context.
    I am using with (@adapt 0 @dim 1280 720 @name sub-node @capture 1) Here i am able to get the highres texture.
    But i am unable to get this texture with I need a matrix to save it with jit.record.
    The reference says: Additionally it can reference the name of a sub-context.
    If i send a "drawto sub-node" message to my i am not getting a matrix out ...
    Capturing the texture to a jit.matrix is not an option for me, because of the low performance. In my current patch, i want to get the best capture resolution, i could get.
    I also tried and the "Syphon Recorder" application. But in my scenario i can not use it because i have to capture automatically very time slices. Applescript or Automator to control "Syphon Recorder" is to slow and buggy to do this ....
    I attached a patch with demonstrate the issue.
    Perhaps someone can give me a hint in the right direction.
    Thanks in advance, Petcode
    The patch:

    • Jun 07 2015 | 3:01 pm
      as i used it, use the size of a jit.window (and this window must be visible 1, contrary to syphon) you should probably use another window for asyncread and record it
    • Jun 07 2015 | 5:39 pm
      thanks yopla,
      but i dont want to record the texture of a window. i want to record the texture output from with the object.
      It should be possible, the reference says: Additionally it can reference the name of a sub-context.
      All the best, Petcode
    • Jun 08 2015 | 1:26 pm
      Here you go.
    • Jun 08 2015 | 1:39 pm
      Hello Andro,
      Thanks for looking into it. But I am trying to output a window in low resolution like 320 x 240. and capture a highres content of a with without dislaying it. (offscreen without a window)
      The question is, how we can get the content of a with
      Perhaps its not possible. i dont know how to get reference to a name of a sub-context, as the reference said.
      All the best, Petcode
    • Jun 08 2015 | 3:50 pm
      yes, unfortunately asyncread will only output at the resolution of your jit.window (or jit.pwindow). you could try creating a new shared context at the hi-res dimensions, and using asyncread on that context:
    • Jun 08 2015 | 4:16 pm
      Hello Rob,
      Thank you very much for your suggestion. This will work in my case ! Hopefully this will be efficient enough on my machine ;-)
      There are 2 more questions :
      1) Is there a possibility to hide the share context window ? (without movieng it offscreen ) visible 0 stops matrix output.
      2) What does the description in the helpfile of then mean ? "Additionally it can reference the name of a sub-context" For me, it implements that i can grab a window or a
      All the best, Petcode
    • Jun 08 2015 | 4:20 pm
      1 - unfortunately not, you can minimize it though
      2 - that's simply the stock gl object reference info. all gl objects have that in their ref page. you can reference a sub-context but it will keep the dimensions of the main context window.
    • Jun 08 2015 | 4:36 pm
      Hey Rob,
      Thank you very much for the expanations and the help.
      Perhaps it would be a great addition to jitter, if we could get a matrix from a texture with the efficiency of the I also tryed to build a "Syphon Recorder" app with max, but i always had to render out the texture to a window ...
      The gpu > cpu jit.matrix way is definitly to slow in the age of hd video....
      All the best, Petcode