jit.gl.sketch to syphon via jit.gl.node
Hello all,
I am working on a show in which I am mapping video to a marimba, controlled by MIDI. I have managed to construct a dynamic mask with variable parameters capable of handing polyphonic MIDI input, using javascript to draw to the jit.gl.sketch object.
After all of that, I am stuck on trying to export it through Syphon to Resolume Arena, which will ultimately control the video for the rest of the show.
After looking through the forums, it seems that jit.gl.node is the way to go. However, I am having trouble making it work. What am I doing wrong here?
javascript is in the attached text file.
Thanks!
you want to provide the name of the gl.node sub-context, as the first argument to the gl.sketch.
this causes the gl.sketch to draw into the sub-context instead of the main context.
if gl.node has capturing enabled, it will output everything as a texture that you can send to syphon, and display in your main context as well.
That works perfectly, thank you!