videoplane or texture to matrix?

prismspecs's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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??

maybites's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I adapted your 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.

prismspecs's icon

Great! Thanks.

maybites's icon

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.

prismspecs's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

only when using the asyncread.

Rob Ramirez's icon

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.