videoplane or texture to matrix?


    Sep 05 2013 | 8:20 pm
    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??

    • Sep 05 2013 | 9:35 pm
      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.
    • Sep 06 2013 | 1:58 am
      Great! Thanks.
    • Sep 08 2013 | 10:55 am
      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.
    • Sep 08 2013 | 4:01 pm
      Oh man that's great!
      One weird issue... when I fullscreen it goes SLOW for some reason.
      only when using the asyncread.
    • Sep 09 2013 | 6:42 pm
      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.