Multiple video layers split up in to different sections.
I have 6 videos all taken from the same position. They are all the same however the focus varies from the distance to the foreground of the shot. I want to be able to split each video in to a grid of 13 by 6 squares.
I then want to play all the grids together as layers. The reason for splitting each video up to a grid is so that a user would be able to tap on a section (or for randomly changes) and then see the section behind it in the video grid behind.
I've had a look at jit.multiplex and I'm fairly sure you can only use 2 videos with that. I'm also not too sure about how I would split up the videos in to the grid and then have it be modified as it runs.
I've have mocked this up in After Effects with masks and attached a screenshot of this to illustrate what I'm trying to do.
Any help would be great.
Thanks!
Create a jit.gl.videoplane for each video. Plug the output of each movie into its own videoplane. Use the position command to each videoplane to put them into position.
great concept!
you are definitely going to want to use jit.movie @output_texture 1 in order to play 6 movies, and display each layer with a jit.gl.videoplane.
you should set @depth_enable 0 and @blend_enable 1 on each videoplane, in order to alpha blend the layers (and possibly @transform_reset 2 to stretch each layer to fill the window).
you can mask using a simply multiplication with a mask layer, facilitated by jit.gl.pix.
basic example using 3 videoplanes:
@Rob
Crazy how efficient your patch is!!
Thanks
Thanks you reply.
With “0, setcell 0 0 val 255, bang” I see “0 0” is the x, y location of the mask and 255 controls the transparency. Though I’m currently unsure how you are defining the size of the mask. I tried using “@srcdimstart 0 0 @srcdimend 160 180” added on to “jit.matrix 4 char 320 240” to set the start and end of the section, this didn’t work. I tried it because I had used it based on the jit.matrix example but that just updated frame frame when button was clicked. (This is the attached image, what I was working on before you replied)
I would also need to add multiple masks, I had assumed I would be able to do this by duplicating the “jit.gl.videoplane” and then plugging them all in to “jit.gl.pix” but that did’t add an extra mask. Could you explain how the masking would work in a bit more detail please?
Hi Elliot ,
this is how you would have different sections/ cells set to white for multiple masks
hope this helps
I thought I would just post back with the work that I have done on it since your help.
I managed to get all my video files in to the patch and allow the different masks to added at the correct size.
I had a look at using clocks to generate new masks. Then I had a play with touchOSC and created buttons to allow for adding and resetting masks randomly on each video which I really like.
I've attached it if you want to look at it.
I'm going to have a look at trying to alter the audio levels for each video depending on how many masks are showing up for that video. That could prove quite interesting.
Cheers for all your help.
Elliot
1 st of all , congrats on your achievements so for.
And thanks for sharing.
Although I couldn't test your patch , a couple of thing jumped out right away in your patching approach.
1. try avoiding as many UI objects as possible. They get in the way of Jitter's performance.
2. If you want operations to be triggered in a certain order, it's better to use [t b b b ] than many [button] objects.
because you know that events will always happen sequentially in Max, and for this reason, you want to have control on what happens 1st , 2nd , 3rd etc....
I know it's mentioned in the very 1st tutorials , that things happen from bottom to top and from right to left, but we can tend to forget this as we start hooking wire together from TOP to BOTTOM
Below is an example patch demonstrating what I mean and how I suggest you could patch.
Again thanks for sharing