jit.qt.grab with OpenGL

crabhands's icon

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

Yoann's icon

see jit.gl.videoplane help (or cornerpin)

crabhands's icon

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's icon

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.

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

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?

Tommy Martinez's icon

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.

grabgl.maxpat
Max Patch