videoplane or texture to matrix?

Sep 5, 2013 at 1:20pm

videoplane or texture to matrix?

So I expected this to be easy but I can’t figure it out. It seems that @matrixout just sends geometry. What is the best way to get this to a matrix so that I can syphon it out??

<code>

– Pasted Max Patch, click to expand. –

</code>

#264407
Sep 5, 2013 at 2:35pm

I adapted your code:

<code>

– Pasted Max Patch, click to expand. –

</code>

and added a jit.gl.node, and a jit.gl.camera to capture to a texture. from here it should be easy to pass it via syphon.

#264414
Sep 5, 2013 at 6:58pm

Great! Thanks.

#264427
Sep 8, 2013 at 3:55am

actually I just discovered another object that helps with this: jit.gl.asyncread

this acutally gives you a matrix, while the above gives you a texture. for your case the above code should be better, since your captured texture stays on the GFX card and is beeing passed directly to syphon, which is using a kind of shared GFX-Texture (I think) instead of passing it to CPU (matrix) and then to GPU (texture again) and Syphon.

#264637
Sep 8, 2013 at 9:01am

Oh man that’s great!
One weird issue… when I fullscreen it goes SLOW for some reason.

<code>

– Pasted Max Patch, click to expand. –

</code>

only when using the asyncread.

#264649
Sep 9, 2013 at 11:42am

asyncread is always going to be slower, especially for large window sizes.
best to stay in GPU domain and process with gl.slab and gl.pix.

#264740

You must be logged in to reply to this topic.