Unexpected cropping out of jit.gl.videoplane

Zeesy's icon

I have a patch that scales a live video feed up and down through a series of jit.matrix objects, and is finally output in two layers through two combined jit.gl.videoplane objects. Somehow, the image is cropped around the edges of the display window, and again when the image is fullscreen. No source dimensions are defined in the patch, and all of the jit.matrix dimensions are congruent. I've tried it on two separate computers with two cameras, same problem.

Can anyone point me in the direction of where my problem might be? I suspect that the @scale attribute of jit.gl.videoplane might be part of it, but there may be another attribute I'm overlooking.

Andro's icon

Hard to say without a patch to examine.

yaniki's icon

Try to send "transform_reset 2" message to your videoplanes - this should fit them to actual window size and to help examine the patch.

Rob Ramirez's icon

the easiest way to display an image of any aspect ratio on any size display without distorting the image is to use jit.gl.cornerpin @preserve_aspect 1 in place of your jit.gl.videoplane

Zeesy's icon

In the end, it was the @scale attribute, which needed to be 0. Rob, how processor intensive is jit.gl.cornerpin? Very excited to play with these suggestions.