jit.qt.grab with OpenGL
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.
see jit.gl.videoplane help (or cornerpin)
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?
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.
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?
----------begin_max5_patcher---------- 527.3oc0U1raiBCDG+L7TX4yrHaSv.6s9bTUUYBdScDXSMNMzspu6K1NIkjl OXqxlp8hQdlgw+8OlY3sv.Xopm2AA+DbOHH3svf.mIqgfM6CfMr940rNWXPI espbILx6xv6MNy0JVUIStXqiVlY9SB4hG074Fe9oIwnHPdQLsHGWPi.Tj0.Y XE7vlWST4x1vI7ijso5WJoQxZ3NO2oEr5wd5D+14ASFRl2rbUiPVyMNAi+vn Zk4PqdSlWa4dMBc2AvCVuuGFZWhlHXZ3ccrE7OQF7EQBNmZejPhSsaNNNRwW GdP963w0kEpVt7L3.OywCB18HIyCmiyCL4+Ifbhtlma3FsBfonKVjrAJY3y0 yfwYeKP4q20bBvrTXhe1DuPyJAETDHiLABManMBiJH1tHT144T5+xoKjSwog q0iMLiVzCi9pkRVzztVHqTquHRRHE1YJ4tAszwvnUy63RCyHTxwWj8fDEdt6 73TrWSrqs0uhHIwY4HDovV5lFSQnYnjcpXhX6yvxkAXsPd3OubnvZeeB1oVo muMc6p..eviJdmQH2gi6GgfQQ8jnph6BXa0PkniUVycTCczulSVQ1AZSPQo2 LEkLE8bfp+t0S5sSNoS66U1sqB5fy5ZWA4a5Xssuv0caRpSLCCnVpz1szH2V gzu0Mp.p4uH1FuO.ldXdkYXjwJsevaeNEFZOm2C+C.jDsMC -----------end_max5_patcher-----------
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.