Mix or alternate multiple videoplanes into a single jit.window?

rbedgar@stanford.edu's icon

I'm loading a large matrix into a videoplane and offsetting it horizontally very quickly within the videoplane. I'm sending the output of the videoplane to a jit.window.

I'd like to combine the horizontally shifting videoplane output with the output of another videoplane, into the jit.window. However, I haven't found a way to do that yet. Obviously we can blend matrix' previous to the videoplane, but is there a way to blend the output of the videoplane with that of another videoplane?

Thanks for any recommendations.
Robert

rbedgar@stanford.edu's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's a simple patch showing my horizontal movement using videoplane.
The drawing context is SIMOPP_01.
What I'd like is to have a second patch that also draws to SIMOPP_01.
-r

rbedgar@stanford.edu's icon
Christopher Dobrian's icon

Set the blend_enable attribute to 1 and the depth_enable attribute to 0 in each jit.gl.videoplane.

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

Here's an example that might be helpful. (It uses two videos from the patches/media folder. Pardon the cheap hack to make a video with an alpha mask.)

rbedgar@stanford.edu's icon

Thanks. I tried it using your patch, and sending everything to the SIMOPP_01 output I have, using the "OH.MOV" source video at the same time that I send it a signal from my own patch, but when one of the videoplanes gets ahold of a jit.window, it is shown, but I'm not seeing other videoplanes that I add after that. I'll look closer at your patch this evening, it may be some other setting that I'm not aware of.

rbedgar@stanford.edu's icon

Thanks again. Upon playing with our patches this evening, I found that I had been sending my patches correctly to the jit.window, but one was hidden behind the other. A separate posting showed how to switch the layering. Got it now, thanks so much for taking the time to help! -Robert