Forums > MaxMSP

Syphon to draw_pixels

December 25, 2011 | 4:51 pm

Hello,

I trying to retrieve a QC composition as a texture for jitter.

I want to use the texture from [jit.gl.syphonclient] as a background with the draw_pixels feature.

Unfortunaltely I get this error :

jit.gl.render: destination must be a 2D matrix.

Is there a way to use my syphon texture without any jit.gl.videoplane or is it the only way?

Any idea?

Thank you.

– Pasted Max Patch, click to expand. –

December 25, 2011 | 7:18 pm

Hello Kyred,
Why not simply draw the texure from the [jit.gl.syphonclient] to a videoplane ?
You can copy/past this from the [jit.gl.syphonclient] helpfile.

All the best,
TT


December 25, 2011 | 10:38 pm

Thx but … I want the draw_pixels feature … or at least find a comprehensive way to manage the texture from syphon for a 2D use.


December 27, 2011 | 3:03 am

Using draw pixels is… not the "right/fastest/smartest" way to make a texture draw to the background of your screen. If you want to see the image from Syphon, just draw it with a video plane. What do you want to actually accomplish?


December 29, 2011 | 2:50 pm

Hi Vade,

I don’t know why draw pixels would not be the "right/fastest/smartest" way for a background texture, if you can just give a word on that.

I’m trying to get an effect as if you were inside a sphere, so you only see the back face. The textured sphere is actually rendered in QC.

In between, thanks for your syphon bridge, really great.


December 30, 2011 | 2:27 am

Because draw-pixels requires a CPU-side matrix to draw. Syphon outputs a texture that already resides on the GPU. Just draw it as a video plane, it will be faster, otherwise you would have to read back to the CPU, and then re-upload the matrix to the GPU, which defeats the whole purpose of Syphon.


January 2, 2012 | 11:16 am

Ok that’ s clear, thank you!


Viewing 7 posts - 1 through 7 (of 7 total)