Forums > Jitter

Multiple scaled/positioned quicktime s in one render … Multiple Videoplanes?

March 29, 2008 | 9:35 pm

This is, I assume, a fairly newb question.

I’m trying to have 5 different jit.qt.movie’s scaled and positioned in one jit.gl.render.

I’m using jit.gl.slab fa @file td.rota.jxs for positioning (i’d prefer to use it rather then scale and position in jit.gl.videoplan).

I’ve looked at Tutorial 43 (43jYourVeryOwnSlab.pat) and at examples>jitter-examples>render>jit.gl.videoplane-multi.pat

I can’t seem to get it to work with more then 1 source quicktime.

Does anyone have any ideas?

— here are my attempts —

Number 1:

max v2;
#N vpatcher 329 91 1324 797;
#P origin 0 -10;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 686 542 32 196617 print;
#P flonum 717 355 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 645 401 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 645 421 48 196617 theta $1;
#P flonum 893 398 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 857 398 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 857 418 82 196617 pak anchor 1. 1.;
#P flonum 812 399 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 776 399 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 776 419 79 196617 pak offset 1. 1.;
#P flonum 736 399 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 700 399 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 700 419 75 196617 pak zoom 1. 1.;
#P newex 645 453 76 196617 prepend param;
#P message 559 455 67 196617 getparamlist;
#P newex 547 512 143 196617 jit.gl.slab fa @file td.rota.jxs;
#P toggle 405 57 15 0;
#P newex 423 88 29 196617 gate;
#P toggle 140 52 15 0;
#P newex 156 81 29 196617 gate;
#P newex 440 57 51 196617 r movie2;
#P newex 172 49 51 196617 r movie1;
#P newex 31 262 51 196617 s movie2;
#P newex 31 286 51 196617 s movie1;
#P newex 35 184 47 196617 s plane1;
#P newex 34 159 47 196617 s plane2;
#P message 497 112 95 196617 read colorbars.pict;
#P message 465 112 28 196617 read;
#P newex 440 143 104 196617 jit.qt.movie 320 240;
#P message 239 111 82 196617 read dishes.mov;
#P message 193 106 28 196617 read;
#P newex 172 139 104 196617 jit.qt.movie 320 240;
#P user jit.fpsgui 91 350 60 196617 0;
#P flonum 333 338 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 261 384 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 261 404 48 196617 theta $1;
#P flonum 509 381 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 473 381 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 473 401 82 196617 pak anchor 1. 1.;
#P flonum 428 382 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 392 382 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 392 402 79 196617 pak offset 1. 1.;
#P flonum 352 382 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 316 382 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 316 402 75 196617 pak zoom 1. 1.;
#P newex 261 436 76 196617 prepend param;
#P newex 324 522 32 196617 print;
#P message 175 438 67 196617 getparamlist;
#P newex 21 428 70 196617 jit.window fa;
#P newex 165 545 260 196617 jit.gl.videoplane fa @depth_enable 0 @scale 1.333 1. 1.;
#P newex 21 406 77 196617 jit.gl.render fa;
#P newex 21 129 92 196617 t b b b b b b erase;
#P newex 165 495 143 196617 jit.gl.slab fa @file td.rota.jxs;
#P flonum 68 46 35 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 21 47 15 0;
#P newex 21 68 51 196617 qmetro 2;
#P connect 1 0 0 0;
#P connect 0 0 4 0;
#P connect 4 0 5 0;
#P fasten 4 6 5 0 104 150 112 150 112 333 26 333;
#P fasten 4 3 33 0 68 154 103 154 103 236 36 236;
#P fasten 4 4 32 0 78 154 102 154 102 281 36 281;
#P connect 4 1 30 0;
#P fasten 4 2 31 0 54 151 32 151 32 180 40 180;
#P connect 2 0 0 1;
#P fasten 4 5 23 0 91 151 112 151 112 332 96 332;
#P connect 37 0 36 0;
#P fasten 8 0 3 0 180 459 170 459;
#P fasten 10 0 3 0 266 459 170 459;
#P connect 24 0 3 0;
#P connect 3 0 6 0;
#P fasten 26 0 24 0 244 131 177 131;
#P fasten 25 0 24 0 198 123 177 123;
#P connect 36 0 24 0;
#P connect 34 0 36 1;
#P connect 21 0 20 0;
#P fasten 17 0 10 0 478 430 266 430;
#P fasten 11 0 10 0 321 430 266 430;
#P fasten 14 0 10 0 397 430 266 430;
#P connect 20 0 10 0;
#P connect 22 0 12 0;
#P fasten 3 1 9 0 303 517 329 517;
#P connect 12 0 11 1;
#P connect 22 0 13 0;
#P connect 13 0 11 2;
#P connect 39 0 38 0;
#P connect 15 0 14 1;
#P fasten 29 0 27 0 502 131 445 131;
#P fasten 28 0 27 0 470 131 445 131;
#P connect 38 0 27 0;
#P connect 35 0 38 1;
#P connect 16 0 14 2;
#P connect 18 0 17 1;
#P connect 19 0 17 2;
#P fasten 42 0 40 0 650 476 552 476;
#P fasten 41 0 40 0 564 476 552 476;
#P fasten 27 0 40 0 554 241;
#P connect 53 0 52 0;
#P connect 52 0 42 0;
#P fasten 46 0 42 0 781 447 650 447;
#P fasten 43 0 42 0 705 447 650 447;
#P fasten 49 0 42 0 862 447 650 447;
#P connect 40 1 55 0;
#P connect 54 0 44 0;
#P connect 44 0 43 1;
#P connect 54 0 45 0;
#P connect 45 0 43 2;
#P connect 47 0 46 1;
#P connect 48 0 46 2;
#P connect 50 0 49 1;
#P connect 51 0 49 2;
#P pop;

Number 2:

max v2;
#N vpatcher 703 158 1502 777;
#P origin 0 -18;
#P toggle 357 53 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 377 76 29 196617 gate;
#P toggle 172 53 15 0;
#P newex 192 76 29 196617 gate;
#P newex 391 50 51 196617 r movie2;
#P flonum 473 47 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 473 68 42 196617 rate $1;
#P message 438 69 28 196617 read;
#P newex 391 104 104 196617 jit.qt.movie 320 240;
#P newex 110 166 51 196617 s movie2;
#P user jit.fpsgui 11 544 60 196617 0;
#P flonum 551 251 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 589 251 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 705 250 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 639 275 109 196617 pack scale 0.1 0.1 0.1;
#P newex 519 275 115 196617 pack position 0.5 0.5 0.;
#P newex 504 210 40 196617 t b b b;
#P newex 505 175 45 196617 r plane2;
#P flonum 291 251 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 329 251 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 443 251 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 377 275 92 196617 pack scale 0. 0. 0.;
#P newex 267 275 103 196617 pack position 0. 0. 0.;
#P newex 252 210 40 196617 t b b b;
#P newex 252 176 45 196617 r plane1;
#P newex 26 208 45 196617 s plane2;
#P newex 41 186 45 196617 s plane1;
#P newex 226 51 51 196617 r movie1;
#P newex 56 167 51 196617 s movie1;
#P message 58 394 85 196617 rect 0 0 640 480;
#P toggle 47 462 15 0;
#P message 47 483 45 196617 ortho $1;
#P flonum 308 48 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 308 69 42 196617 rate $1;
#P message 273 70 28 196617 read;
#P newex 226 105 104 196617 jit.qt.movie 320 240;
#P toggle 237 415 15 0;
#P message 237 433 55 196617 floating $1;
#P hidden message 44 376 68 196617 camera 0 0 4;
#P toggle 164 415 15 0;
#P newex 125 414 35 196617 sel 27;
#P message 164 433 68 196617 fullscreen $1;
#P newex 82 457 145 196617 jit.window foo @depthbuffer 0;
#P newex 80 414 40 196617 key;
#P newex 11 89 43 196617 jit.qball;
#P number 56 40 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 11 40 15 0;
#P newex 11 66 57 196617 qmetro 30;
#P newex 11 120 85 196617 t b b b b b erase;
#P newex 226 362 305 196617 jit.gl.videoplane foo @automatic 0 @depth_enable 0 @scale 1.333;
#P newex 11 520 80 196617 jit.gl.render foo;
#P window linecount 4;
#P comment 325 179 100 196617 I’d really prfer getting this to work with the rota.jxs in a slab;
#P connect 5 0 4 0;
#P connect 4 0 7 0;
#P connect 7 0 3 0;
#P fasten 20 0 1 0 52 509 16 509;
#P hidden fasten 13 0 1 0 49 441 16 441;
#P connect 3 0 1 0;
#P fasten 3 5 1 0 91 156 132 156 132 290 16 290;
#P connect 1 0 41 0;
#P connect 3 1 26 0;
#P connect 3 2 25 0;
#P connect 21 0 20 0;
#P connect 3 3 23 0;
#P connect 6 0 4 1;
#P fasten 10 0 9 0 169 452 87 452;
#P fasten 14 0 9 0 242 452 87 452;
#P fasten 22 0 9 0 63 442 87 442;
#P fasten 3 4 42 0 76 159 115 159;
#P fasten 8 0 11 0 85 433 122 433 122 412 130 412;
#P fasten 11 0 12 0 130 432 161 432 161 412 169 412;
#P connect 12 0 10 0;
#P connect 49 0 48 0;
#P connect 24 0 48 1;
#P connect 48 0 16 0;
#P fasten 17 0 16 0 278 96 231 96;
#P fasten 18 0 16 0 313 96 231 96;
#P fasten 43 0 2 0 396 136 231 136;
#P fasten 30 0 2 0 382 308 231 308;
#P fasten 28 0 2 0 257 295 231 295;
#P fasten 29 0 2 0 272 302 231 302;
#P fasten 35 0 2 0 509 316 231 316;
#P fasten 36 0 2 0 524 323 231 323;
#P fasten 37 0 2 0 644 333 231 333;
#P connect 16 0 2 0;
#P connect 15 0 14 0;
#P connect 27 0 28 0;
#P connect 28 1 29 0;
#P fasten 33 0 29 1 296 270 303 270;
#P connect 19 0 18 0;
#P connect 32 0 29 2;
#P connect 51 0 50 0;
#P fasten 28 2 30 0 287 238 382 238;
#P connect 50 0 43 0;
#P fasten 45 0 43 0 478 95 396 95;
#P fasten 44 0 43 0 443 95 396 95;
#P connect 47 0 50 1;
#P connect 31 0 30 1;
#P connect 31 0 30 2;
#P connect 31 0 30 3;
#P connect 46 0 45 0;
#P connect 34 0 35 0;
#P connect 35 1 36 0;
#P fasten 40 0 36 1 556 273 559 273;
#P connect 39 0 36 2;
#P fasten 35 2 37 0 539 241 644 241;
#P connect 38 0 37 1;
#P connect 38 0 37 2;
#P connect 38 0 37 3;
#P pop;


March 29, 2008 | 10:04 pm

try using the right input to the rota slab to chain them together.
(seems to flip vertically for some reason, but easy to fix).

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 332 335 372 196617 jit.gl.slab fa @file td.rota.jxs @param zoom 0.25 0.25 @param offset -300 200;
#P newex 285 393 372 196617 jit.gl.slab fa @file td.rota.jxs @param zoom 0.25 0.25 @param offset -300 200;
#P newex 217 453 367 196617 jit.gl.slab fa @file td.rota.jxs @param zoom 0.25 0.25 @param offset 300 200;
#P toggle 306 62 15 0;
#P newex 324 93 29 196617 gate;
#P toggle 133 61 15 0;
#P newex 149 90 29 196617 gate;
#P newex 341 62 51 196617 r movie2;
#P newex 165 58 51 196617 r movie1;
#P newex 31 262 51 196617 s movie2;
#P newex 31 286 51 196617 s movie1;
#P newex 35 184 47 196617 s plane1;
#P newex 34 159 47 196617 s plane2;
#P message 398 117 95 196617 read colorbars.pict;
#P message 366 117 28 196617 read;
#P newex 341 148 104 196617 jit.qt.movie 320 240;
#P message 232 120 82 196617 read dishes.mov;
#P message 186 115 28 196617 read;
#P newex 165 148 104 196617 jit.qt.movie 320 240;
#P user jit.fpsgui 91 350 60 196617 0;
#P newex 21 428 70 196617 jit.window fa;
#P newex 165 545 260 196617 jit.gl.videoplane fa @depth_enable 0 @scale 1.333 1. 1.;
#P newex 21 406 77 196617 jit.gl.render fa;
#P newex 21 129 92 196617 t b b b b b b erase;
#P newex 165 495 374 196617 jit.gl.slab fa @file td.rota.jxs @param zoom 0.25 0.25 @param offset 300 200;
#P flonum 68 46 35 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 21 47 15 0;
#P newex 21 68 51 196617 qmetro 2;
#P connect 1 0 0 0;
#P connect 0 0 4 0;
#P connect 4 0 5 0;
#P fasten 4 6 5 0 104 150 112 150 112 333 26 333;
#P fasten 4 3 18 0 68 154 103 154 103 236 36 236;
#P fasten 4 4 17 0 78 154 102 154 102 281 36 281;
#P connect 4 1 15 0;
#P fasten 4 2 16 0 54 151 32 151 32 180 40 180;
#P connect 2 0 0 1;
#P fasten 4 5 8 0 91 151 112 151 112 332 96 332;
#P connect 22 0 21 0;
#P fasten 11 0 9 0 237 140 170 140;
#P fasten 10 0 9 0 191 132 170 132;
#P connect 21 0 9 0;
#P connect 19 0 21 1;
#P connect 24 0 23 0;
#P fasten 14 0 12 0 403 136 346 136;
#P fasten 13 0 12 0 371 136 346 136;
#P connect 23 0 12 0;
#P connect 20 0 23 1;
#P connect 26 0 25 1;
#P connect 25 0 3 1;
#P connect 3 0 6 0;
#P connect 9 0 26 0;
#P connect 9 0 3 0;
#P connect 12 0 27 0;
#P connect 12 0 25 0;
#P connect 27 0 26 1;
#P window clipboard copycount 28;


March 30, 2008 | 6:00 pm

Thanks Rob!


April 2, 2008 | 5:45 am

Ever figure out a fix for the inverse?


May 24, 2009 | 1:09 pm

>>Ever figure out a fix for the inverse?

Change the line that reads

vec4 smp1 = texture2DRect(tex1,texcoord0);

to

vec4 smp1 = texture2DRect(tex1,texcoord1);


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