aspect ratio & resizing issue

jirko's icon

I'm dividing my video with jit.gl.slab & td.resample.jxs, so I can render into two different jit.windows for multi projection.
But when I change the size of the window to fullscreen the video doesn't fit the screen anymore.
How do I have to handle the td.resample.jxs coords correctly to automatically fit the screen?

Any hel will be much appreciated!

Rob Ramirez's icon

jit.gl.cornerpin has a feature attribute called @preserve_aspect that may be of use for you.
otherwise you have to do the math yourself.

jirko's icon

Thanks Rob, but it doesn't work very well.
Can you help me with the math please?

Rob Ramirez's icon

what's not working with cornerpin?
post your patch.