Hello jitter fellows,
I have a problem capturing the texture of my jit.gl.node with jit.gl.asyncread.
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 jit.gl.node 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 jit.gl.asyncread.
I need a matrix to save it with jit.record.
The jit.gl.asyncread reference says:
Additionally it can reference the name of a jit.gl.node sub-context.
If i send a "drawto sub-node" message to my jit.gl.asyncread 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 jit.gl.syphonserver 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,