jit.gl.asyncread scaling
I'm trying to make a patch that captures a frame of what is displayed in a jitter window.
The best way to go seems to be jit.gl.asyncread, but it seems that the scaling of the resulting image has changed... Anyone can help me to solve this issue?
Thanks a lot!
@transform_reset 2 on your gl.videoplane.
let me know if you need further explanation.
It works thanks a lot!
I'd really appreciate if you could explain with this solved my issue.
without transform_reset, gl.videoplane is square. your window is rectangular, and therefore there are grey bars on either side of the videoplane in the window.
when you readback this as a texture, and again play it with another videoplane without transform_reset, the original grey bars are there in the readback texture, and new grey bars are also there, because again, the videoplane defaults to square dimensions without transform_reset (or some scaling).
sorry, can't really explain better than that.