Display different videos on individual monitors/projectors

Conall Ó Maoláin's icon

Hi all,

I'm trying to create a patch that will show different videos on different displays. Trying to be as efficient as I can be, I want to render everything in the same jit.world, however since all my videos will be rendered in the same world it means they share the same window and it doesn't seem possible to connect a texture to a jit.window object (there is the sendtexture message but I don't fully understand how this works).
In the patch below I have a demo version of what I want to do except Ideally I wouldn't have to use multiple worlds. I was thinking I could render each video to a different node but them I got stuck on how to display each node.
I really hope I'm making sense here!

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

You can use a single jit.world to span across multiple displays, assuming the displays are setup and arranged properly by your OS (or if you're using something like a matrox box, you have to use a single jit.world). You can use jit.gl.videoplane @transform_reset 2 with proper scaling and positioning to act as a "screen" for each display.

However if your displays setup is not conducive for this, there is nothing wrong with using multiple jit.world objects. You would typically want to use one as the main context that manages rendering, and the second simply as a display for captured textures from the first.


Conall Ó Maoláin's icon

If I were to use multiple jit.worlds, could I use say 10?
How can I set up one for rendering and the others for display? When I set the drawto attribute for my second world ("second") to my main world ("main") I get an error saying 'object already registered under name: main'.

Conall Ó Maoláin's icon

Is this what you mean?

Max Patch
Copy patch and select New From Clipboard in Max.