multiple matrices into a jit.gl.videoplane, or multiple jit.gl.videoplanes in a single jit.gl.videoplane?
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!
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~
To make it more efficient, resize your videos offline to a 1/12 of the viewport resolution and consider encoding them as HAP. 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!
Wow, this is great - thanks for sharing!
Just trying to understand one thing here..
All of the jit.gl.videoplanes are drawing to "wall", although I'm not sure what "wall" is, in this context.
Essentially, I'm wondering if there is a way to access a single jit.gl.videoplane with all of these discrete sections rendered into it.
That should be exactly what's going on, if i understood correctly:
The individual videoplanes render to a jit.gl.node named "wall" (right part of the patch). This jit.gl.node spits out a texture containing the combined videos, which goes into yet another jit.gl.videoplane. This last jit.gl.videoplane renders to the main context and it's shown in the rendering window.

Ah, I see, thank you!
Out of curiosity, is there a generally accepted way to clear all the videos that are loaded onto the CPU? Or are they on the GPU?
I'm wondering if having all those videos loaded will be a drain, even when the jit.gl.videoplane isn't visible.
unless you do some processing on it, a loaded file wont drain anything except memory.
so to be on the safe side you could for example stop banging any matrix or gl content, just as you would do it with [toggle] or [filtergraph~]. secure knowledge about whether something still does something or not when it is not visible will no longer be required. :)
dispose message to jit.movie