Forums > Jitter

apply alphachannel of one movie to another movie

May 19, 2008 | 6:22 pm

Dear all, i was quite sure there was an example of it in the examples-tutorials..but i can’t find it..i know it is a pretty straightforward thing but at the moment i can’t get what i have in mind..something like what happens in audio convolution..thanks a lot
still max 4 here


May 19, 2008 | 7:39 pm

29jUsingTheAlphaChannel.pat


May 19, 2008 | 8:46 pm

well i messed up a little bit and obtained in an absolutely empirical way something that similar to what i had in mind..what is happening here?…how i can i make it in a clear way..
best

max v2;
#N vpatcher 10 59 897 672;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 552 190 14 196617 0;
#P message 519 266 14 196617 0;
#P newex 520 245 38 196617 sel 10;
#N counter;
#X flags 0 0;
#P newobj 518 220 66 196617 counter;
#P message 581 199 14 196617 1;
#P newex 479 247 29 196617 gate;
#P newex 501 196 27 196617 t l b;
#P message 187 145 80 196617 read dozer.mov;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 188 173 128 1441802 jit.qt.movie 320 240;
#P window setfont Times 10.;
#P comment 377 97 27 1310730 Start;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 414 49 53 1441802 loadbang;
#P newex 361 256 79 1441802 jit.pack 4;
#P newex 361 200 102 1441802 jit.unpack 4;
#P newex 188 198 80 1441802 jit.rgb2luma;
#P newex 361 138 73 1441802 t gettime b;
#P newex 350 294 94 1441802 jit.alphablend;
#B color 5;
#P user jit.pwindow 287 332 322 242 0 1 0 0 1 0;
#P message 438 139 92 1441802 read ozone.mov;
#P toggle 361 96 15 0;
#P newex 361 116 53 1441802 metro 33;
#P newex 361 165 128 1441802 jit.qt.movie 320 240;
#P connect 10 0 13 0;
#P connect 1 0 12 0;
#P connect 13 0 12 0;
#P connect 12 0 7 0;
#P fasten 5 0 4 0 355 325 293 325;
#P connect 9 0 5 0;
#P connect 2 0 1 0;
#P connect 1 0 6 0;
#P connect 6 0 0 0;
#P fasten 6 1 0 0 429 160 366 160;
#P fasten 3 0 0 0 443 160 366 160;
#P connect 0 0 8 0;
#P connect 7 0 9 0;
#P connect 8 1 9 1;
#P connect 8 2 9 2;
#P connect 8 3 9 3;
#P connect 15 0 5 1;
#P connect 10 0 3 0;
#P connect 19 0 15 0;
#P connect 16 0 15 0;
#P connect 14 0 15 1;
#P connect 0 0 14 0;
#P connect 14 1 17 0;
#P connect 18 0 19 0;
#P connect 17 0 18 0;
#P connect 20 0 17 2;
#P connect 10 0 20 0;
#P connect 10 0 16 0;
#P pop;


May 19, 2008 | 9:49 pm

i don`t know what you have in mind but i assume something like xray.jit.timecube

or

hope assumption is right

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 580 117 20 196617 20;
#P flonum 641 155 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 641 177 73 196617 slide_down $1;
#P flonum 578 155 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 574 189 60 196617 slide_up $1;
#P newex 499 214 45 196617 jit.slide;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 228 190 102 1441802 jit.unpack 4;
#P window setfont "Sans Serif" 9.;
#P message 230 139 80 196617 read dozer.mov;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 228 166 128 1441802 jit.qt.movie 320 240;
#P window setfont Times 10.;
#P comment 377 97 27 1310730 Start;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 414 49 53 1441802 loadbang;
#P newex 361 256 79 1441802 jit.pack 4;
#P newex 361 200 102 1441802 jit.unpack 4;
#P newex 350 294 94 1441802 jit.alphablend;
#B color 5;
#P user jit.pwindow 287 332 322 242 0 1 0 0 1 0;
#P message 438 139 92 1441802 read ozone.mov;
#P toggle 361 96 15 0;
#P newex 361 116 53 1441802 metro 33;
#P newex 361 165 128 1441802 jit.qt.movie 320 240;
#P fasten 1 0 10 0 366 158 233 158;
#P connect 1 0 0 0;
#P fasten 8 0 11 0 419 85 235 85;
#P fasten 8 0 3 0 419 103 443 103;
#P fasten 8 0 18 0 419 92 585 92;
#P connect 18 0 15 0;
#P connect 18 0 17 0;
#P fasten 13 0 5 1 504 282 439 282;
#P connect 0 0 6 0;
#P fasten 0 0 13 0 366 198 504 198;
#P fasten 16 0 13 0 646 196 504 196;
#P fasten 14 0 13 0 579 202 504 202;
#P connect 17 0 16 0;
#P connect 15 0 14 0;
#P connect 10 0 12 0;
#P connect 12 1 7 0;
#P connect 6 3 7 3;
#P connect 6 2 7 2;
#P connect 6 1 7 1;
#P fasten 3 0 0 0 443 160 366 160;
#P connect 2 0 1 0;
#P connect 7 0 5 0;
#P fasten 5 0 4 0 355 325 293 325;
#P connect 11 0 10 0;
#P window clipboard copycount 19;


May 19, 2008 | 10:23 pm

if you want to go the opengl route you could use the co.alphaglue.jxs shader. That’s pretty much exactly what it does.


May 20, 2008 | 8:40 pm

thanks a lot jaz!
i’ll give a look to the shader too..thanks bryan


Viewing 6 posts - 1 through 6 (of 6 total)