jit.gl.node @capture only works some of the time
I'm getting back into using Jitter after about a year off and don't remember having issues with this in particular. I use the capture attribute to do post-processing in jitter land and it seems to be behaving very inconsistently even with very simple setups as you can see below. Sometimes it works perfectly sometimes no jit_gl_texture comes out the left outlet. I've tried plugging the node into the gridshape as well but to no avail. Occasionally after rewriting things it will work and occasionally if I just change the gl_color attribute it will start pushing out the texture. Not sure if this is a bug or I'm missing something about how jit.gl works, but I thought this would be pretty straightforward
you need a graphics context for jit.gl.node capture to work - https://docs.cycling74.com/userguide/jitter/graphics_processing/#graphics-contexts
I do have a jit.world in the patch I just didn't copy it over. Other gl stuff is working correctly.
For me, just adding a [jit.world @enable 1] to your example works, consistently. Your problem might come from somewhere else. Hard to say without having a "functional" example of your issue.
ok for help diagnosing issues we need a full patch. if capture is working intermittently the first step is to check the Max Console. Next would be to try and reproduce the breakage starting from a Max restart, and then sharing those exact steps and/or the max console contents with us to help untangle.
Ok I think I figured it out. Originally had the jit.world in an abstraction. It seems the relevant texture attributes dont update if you delete the abstraction and add a jit.world back to the main patcher, so it doesn't look like that resolves anything unless you reload the patch.
I was hoping to package some reoccurring video setup in an abstraction; is that not possible with jit.world?
If you don't provide a drawto attribute to your [jit.gl.node], it will traverse patchers up to the main, parent patcher, looking for a [jit.world] to draw to. If your jit.world is in an abstraction and your jit.gl.node is not in that abstraction or in a child abstraction or subpatcher of that abstraction, jit.gl.node will not find jit.world automatically.
Is these cases, best is to manually indicate the jit.world's name to jit.gl.node as its drawto attribute.
Thanks this was very hepful, I've got everything working now.