Issues with textures while sending jit.gl.render to matrix. (For Spout/Syphon)

jbl's icon

My patch is built around jit.gl. Mostly gridshape for now. I'm trying to send it to resolume with spout.

Many effects require me to use the matrix output with gridshape. As far as I know, this stops me from drawing to a jit.gl.node since it would bypass my chain.

Or is there a better way to use the node here?

I believe a pretty good solution is to drawto a jit.matrix instead of a jit.window and send it directly to resolume. It seems to work, however, it ignores my textures from jit.gl.textures.

How do I use textures while drawing to a jit.matrix with jit.gl.render?

I found an alternative in the jitter render examples using jit.gl.sketch to send the content of my jit.window to a matrix and this works but I need the window.

Thanks.

Nathan M's icon

Hello JBl,

Unfortunately I don't have an answer to your question. But I would like to ask for a favor;
I am currently trying a similar thing as you but I can't get spout to send anything from gl.render to Resolume. Would you be able to upload your patch so I could figure out what I am doing wrong. It would be greatly appreciated!

Greetings,

Nathan

Rob Ramirez's icon

anything that's drawn in the gl-context window can be sent via texture to spout or syphon. there is no need to convert to a matrix, as this will greatly impact performance. if you are having trouble rendering to a texture, check the following link, and post your patch.
https://cycling74.com/wiki/index.php?title=Sending_to_syphon