Fade between multiple videoplanes
Hey everyone.
I have a question.
I'm trying to create a patch with multiple video's.
The first screen contains 13 different video's (these are the top layer). Fullscreen they fill the whole screen.
I also have 4 other movies which are allready fullscreen (and need to be placed behind the 13 other video's).
But my question is right now how can i make this happen. Already tried to fix it with jit.xfade, but can't seem to get it working.
In the patch i posted with this you can see only two video's, but they are always shown.
I need the 'bigger video' behind the smaller one. And when the larger video is activated it needs to fade in over the small ones. When it's done playing it also needs to fade away again.
I hope someone can help me with this questions?
Thanks in advance.
You have 2 options:
- mix the video streams before sending to 1 videoplane
- mix multiple videoplanes using their alpha channels
Thanks for your reply!
But i don't need the video's mixed with eachother. The first 13 'small video's are video's of coloured squares that rotate (on the back you can find just normal pictures). The 'larger video's' which need to be positioned below these video's, need to fade in (seperately, so only 1 video at a time) when they're activated, this will happen trough gestures.
So what MAX/Jitter needs to do, is place the 17 video's on top of each other. First show only the 13 small ones (this fills the complete window with 13 videoplanes). Then when someone holds his hand (gestures) a larger video needs to be activated. With other words, it needs to be on top of the smaller video's now and play as long as the hand of that person is held up.
I don't know if you know how i can fix this problem? But thanks anyway!
Mix or fade are exchangeable terms.
Sounds like you need to get a grip on a couple of openGL aspects: the 'layer' attribute to control the rendering order and blending/mixing/fading videoplanes as described in the link I posted above. I'm sure there are many more examples to be found in the forum.
You are right, i need to get a grip on a couple of openGL aspects. I'm fairly new to this.
But i'm working with layers. But it still doesn't work. Perhaps that 17 video's are to much. (but the first 13 video's can be seen as one).
And in the beginning the small video's need to be the top layer, but when activated the larger video needs to be on top. And after deactivating the small video's need to be the top layer again.
And does xfade work with videoplanes, because i can't get it working..
You are right, i need to get a grip on a couple of openGL aspects. I'm fairly new to this.
But i'm working with layers. But it still doesn't work. Perhaps that 17 video's are too much. (but the first 13 video's can be seen as one).
And in the beginning the small video's need to be the top layer, but when activated the larger video needs to be on top. And after deactivating the small video's need to be the top layer again.
And does xfade work with videoplanes, because i can't get it working..
jit.xfade is for matrices, not GL objects. Usually there's nothing coming out the outlets of jit.gl.videoplane. It renders to the context destination, ie. the jit.window (unless set otherwise but that's another topic). Did you check Jitter tutorial 31?