is it possible to use a mask (an alphamask) globaly on jit.gl.render? (with slab: alphaclue or alphablend?) I have different videoplanes and need the same mask on each of them. It would be cool to mix the videoplanes together and use the mask afterwards….
(or is it even possible to use an alphaimage on a videoplane on the upper layer and use this for masking everthing beneath?)
Second question: is it possible to crop a liveimage (jit.qt.grab)? I only need a part of the image and since the cameraresolution is quite high, maybe it would also help the performance of my computer, if I "throw" the rest away. Or doesnt it make any difference in performance what I output ( I only mask the image), because the input is always the entire image anyway?
might be better to use gl.sketch to consolidate your different video planes into one pipeline and apply the mask that way..or yeah, try messing with your layers and ‘blend enable’ on the videoplanes
as for cropping, have a look at jit.scissors or a more efficient but just a bit more work: jit.submatrix…if you’re doing a lot of processing and don’t need all of the resolution it’s always best to just use what you need
you can mask an entire opengl scene if your capture that scene to a jit.gl.texture, and apply a mask to that single texture. as mentioned, jit.gl.sketch will assist you in rendering your entire scene to one texture.