jit.gl.asyncread scaling

Jul 26, 2010 at 3:41pm

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!

– Pasted Max Patch, click to expand. –
#51524
Jul 26, 2010 at 3:55pm

@transform_reset 2 on your gl.videoplane.

let me know if you need further explanation.

#184758
Jul 26, 2010 at 5:52pm

It works thanks a lot!

I’d really appreciate if you could explain with this solved my issue.

#184759
Jul 26, 2010 at 6:06pm

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.

#184760

You must be logged in to reply to this topic.