multiple matrices into a jit.gl.videoplane, or multiple jit.gl.videoplanes in a single jit.gl.videoplane?

bdonne's icon

Hi Cycling Forum -

I'd like to have a grid of 12x12 videos playing in a single jit.videoplane. Is there a canonical way of doing this in Jitter that is most efficient for processing power?
I could also see this being fairly time-consuming, in terms of laying out the screen and objects - I'm also curious if there is a way to maybe do this with scripting or perhaps a poly~ object?

Thanks for any and all help!

Matteo Marson's icon

Hi Bdonne,

144 independent videos are indeed quite a lot! Poly~ or v8 scripting is a way to go. Here's an example using poly~

Video wall with poly.zip
zip

To make it more efficient, resize your videos offline to a 1/12 of the viewport resolution. Also, i don't know if the videos must be totally independent of each other, but consider tiling them offline, if not all of them, maybe in 2x2 tiles.

Hope this helps to get you started!