Skew perspective of jit.gl.render / jit.window?
I'm having trouble figuring out how to skew the final output video image of the patcher. It needs to be skewed in order to be displayed unskewed when projected from an angle.
I copied part of a pre-made patcher to allow full screen output to the projector. It works, but I don't know how it's working because I never connected anything to it, I just pasted it in and it started working without any cords. I suspect this is where I should apply the skew, but it isn't a matrix and I couldn't find anything that would skew a gl.render or window.
The part of my patcher that I'm referring to that allows full screen is near the bottom all the way to the left. You'll see this stack of objects (from top to bottom): qmetro 24, t b erase b, s bang, jit.gl.render @erase..., p ESC-fullscreen, jit.window alpha @depth...
Does anyone know how this is connected and working? Any suggestions to apply a skew transform?
Thank you.
you can probably use jit.gl.cornerpin for this.
you must capture all your geometry (your gl.videoplanes) to a texture, using jit.gl.node @capture 1, and then warp the texture using the gl.cornerpin.
set the drawing context of all your videoplanes to the @name attribute of your gl.node to capture them with the node.