Forums > Jitter

jit.gl.asyncread scaling


pm
July 26, 2010 | 3:41 pm

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. –

July 26, 2010 | 3:55 pm

@transform_reset 2 on your gl.videoplane.

let me know if you need further explanation.



pm
July 26, 2010 | 5:52 pm

It works thanks a lot!

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


July 26, 2010 | 6:06 pm

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.


Viewing 4 posts - 1 through 4 (of 4 total)