Syphon to draw_pixels

Dec 25, 2011 at 4:51pm

Syphon to draw_pixels

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. –
#60849
Dec 25, 2011 at 7:18pm

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

#219081
Dec 25, 2011 at 10:38pm

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.

#219082
Dec 27, 2011 at 3:03am

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?

#219083
Dec 29, 2011 at 2:50pm

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.

#219084
Dec 30, 2011 at 2:27am

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.

#219085
Jan 2, 2012 at 11:16am

Ok that’ s clear, thank you!

#219086

You must be logged in to reply to this topic.