Forums > Jitter

jit.qt.grab with OpenGL

February 2, 2014 | 12:55 pm

can anyone help me with the basics of opengl stuff if im trying to hook it up with jit.qt.grab, and am i even utilizing the graphics card in a way that will ease cpu usage if im literally just grabbing a live camera input with jit.qt.grab and then sending that directly to a jit.pwindow?

if there is an equivalent of jit.pwindow that renders in the patcher using the GPU then that would be perfect, assuming it’s actually beneficial to the cpu load.

thanks!

Crabhands


February 2, 2014 | 1:47 pm

see jit.gl.videoplane help (or cornerpin)


February 2, 2014 | 2:13 pm

will dive in again, thanks :)

and any idea if there would be any cpu advantage in chucking things onto the gpu if im not actually processing the video from my camera in anyway, just displaying it?

thanks



dtr
February 2, 2014 | 2:56 pm

Depends on your specific CPU, GPU and GPU bus speeds. A quick test of both options will tell you quickly. Though it will for sure offload some work of the CPU.

Lots of posts on video optimization here in the forum.


February 3, 2014 | 12:25 pm

so is it possible to do anything like this with opengl like this with any easing of the load on the cpu, and if so how would it work in the OpenGL world?

<code>

– Pasted Max Patch, click to expand. –

</code>


February 3, 2014 | 8:50 pm

Here is patch to get you started. I notice higher fps using it. Especially if your computer might need to do other things while displaying your video feed.

Attachments:
  1. grabgl.maxpat

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