jit.gl.videoplane position in jit.gl.render

Jun 15, 2007 at 8:33pm

jit.gl.videoplane position in jit.gl.render

hi everyone,

I try in this patch to have 2 ARGB movies (on 2 differents planes with
jit.gl.videoplane),
it seems to be ok, except i try to figure how I can prevent one to be
on the other one
(they are moving with a x-y random in the jit.gl render)
I try a “if then” method but it’s not enough,
can I get a rectangle zone (x1y1 x2y2) of my jit.gl.videoplane position
in jit.gl.render ??
(or an another method)
hope i’m clear…
thank you for any help
daltex

#P button 1106 604 15 0;
#P button 789 603 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 809 585 297 196617 if $i1==$i2 then $i1 equals $i2 else out2
$i1 does not equal $i2;
#P button 1073 673 15 0;
#P button 784 673 15 0;
#P newex 799 651 297 196617 if $i1==$i2 then $i1 equals $i2 else out2
$i1 does not equal $i2;
#P flonum 833 832 36 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 835 852 15 0;
#P button 883 851 15 0;
#P flonum 881 832 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 785 807 107 196617 unpack 1. 2. 3.;
#B color 5;
#P message 785 788 128 196617 position 0.034 -0.295 0.;
#P newex 785 769 60 196617 prepend set;
#P comment 554 833 20 196617 x;
#P comment 622 835 20 196617 y;
#P comment 607 377 20 196617 y;
#P comment 538 376 20 196617 x;
#P flonum 809 429 38 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 810 451 15 0;
#P button 854 449 15 0;
#P flonum 855 429 36 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 793 402 76 196617 unpack 1. 2. 3.;
#B color 5;
#P message 794 383 128 196617 position -0.561 0.15 0.;
#P newex 794 364 60 196617 prepend set;
#P message 306 480 235 196617 http://daltex-lab.com/cafouch/el-s_bras_2.mov;
#P message 306 42 235 196617 http://daltex-lab.com/cafouch/el-s_bras_2.mov;
#P toggle 46 710 15 0;
#P message 63 710 75 196617 auto_rotate $1;
#P message 10 710 32 196617 reset;
#P newex 10 733 207 196617 jit.gl.handle El-s @depth_enable 0 @radius1;
#P toggle 18 757 15 0;
#P message 36 758 44 196617 axes $1;
#P comment 657 691 85 196617 set blend amount;
#P flonum 620 690 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 656 689 82 196617 color 1. 1. 1. $1;
#P comment 649 260 85 196617 set blend amount;
#P flonum 608 259 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 647 259 82 196617 color 1. 1. 1. $1;
#P hidden message 660 657 17 196617 1.;
#P toggle 639 673 15 0;
#P message 656 673 80 196617 blend_enable $1;
#P hidden message 679 656 68 196617 camera 0 0 4;
#P hidden newex 661 650 50 196617 loadbang;
#P hidden message 654 225 17 196617 1.;
#P toggle 630 241 15 0;
#P message 647 241 80 196617 blend_enable $1;
#P hidden message 671 225 68 196617 camera 0 0 4;
#P hidden newex 655 208 50 196617 loadbang;
#P message 238 756 84 196617 color 1. 1. 1. $1;
#P flonum 238 734 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname color_alpha[1];
#P comment 29 148 64 196617 fenetre El-s;
#P message 224 353 84 196617 color 1. 1. 1. $1;
#P flonum 224 331 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname color_alpha[0];
#P user ubumenu 251 779 49 196617 0 1 1 0;
#X add back;
#X add front;
#X prefix_set 0 0 0;
#P objectname layer[2];
#P message 251 800 49 196617 layer $1;
#P user ubumenu 246 370 49 196617 0 1 1 0;
#X add back;
#X add front;
#X prefix_set 0 0
0;
#P objectname layer[1];
#P message 246 391 49 196617 layer $1;
#P comment 143 189 33 196617 blanc;
#P flonum 138 216 35 9 -1. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 103 216 35 9 -1. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 68 216 35 9 -1. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 33 216 35 9 -1. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 33 236 128 196617 pak erase_color 0. 0. 0. 1.;
#P number 482 277 74 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 29 191 112 196617 erase_color 1. 1. 1. 1.;
#P newex 218 845 103 196617 jit.gl.videoplane El-s;
#P message 437 783 30 196617 -0.5;
#P message 404 783 31 196617 0.85;
#P message 379 767 23 196617 0.5;
#P message 474 783 17 196617 0.;
#P message 364 783 36 196617 -0.85;
#P newex 491 659 62 196617 prepend set;
#P newex 491 634 139 196617 pak 0 0 0 200;
#P newex 636 814 98 196617 scale 0 100 -0.5 0.;
#P newex 635 781 64 196617 random 100;
#P newex 512 812 116 196617 scale 0 100 -0.85 0.85;
#P flonum 515 832 35 9 -3. 3. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 510 761 15 0;
#P number 491 746 74 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 491 695 92 196617 0 0 6024 200;
#P newex 437 683 45 196617 r metro;
#P newex 491 720 31 196617 bline;
#P button 530 721 15 0;
#P newex 512 781 64 196617 random 100;
#P flonum 421 829 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 381 830 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 393 728 41 196617 * 1.33;
#P newex 483 883 47 196617 s plane2;
#P newex 355 854 122 196617 pak scale 1. 1. 1.;
#P flonum 585 833 35 9 -1. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 483 854 99 196617 pak position 0. 0. 0.;
#P hidden message 411 509 61 196617 getduration;
#P message 214 480 88 196617 el-s_bras_2.mov;
#P message 354 540 202 196617 el-s_bras_2.mov;
#P hidden newex 338 602 62 196617 prepend set;
#P hidden newex 405 602 32 196617 sel 1;
#P hidden newex 358 582 57 196617 unpack s 0;
#P comment 526 591 65 196617 Size QT Unit;
#P number 452 589 74 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 358 561 201 196617 route read duration;
#P button 363 767 15 0;
#P newex 237 825 47 196617 r plane2;
#P hidden newex 351 508 45 196617 r metro;
#P user jit.fpsgui 220 661 60 196617 0;
#P user jit.pwindow 219 557 102 102 0 1 0 0 1 0;
#P user ubumenu 216 509 58 196617 0 1 1 0;
#X add start;
#X add stop;
#X add rate 2;
#X add rate -2;
#X add rate 0.5;
#X add read;
#X prefix_set 0 0
0;
#X pattrmode 1;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 218 538 130 1441802 jit.qt.movie 240 240;
#B color 5;
#P window setfont “Sans Serif” 9.;
#P hidden newex 285 508 65 196617 prepend read;
#P message 428 347 17 196617 0.;
#P message 389 347 31 196617 0.85;
#P message 363 328 23 196617 0.5;
#P message 447 347 23 196617 0.5;
#P message 349 348 36 196617 -0.85;
#P message 27 165 112 196617 erase_color 0. 0. 0. 1.;
#P newex 482 213 62 196617 prepend set;
#P newex 482 193 139 196617 pak 0 0 0 200;
#P newex 626 350 93 196617 scale 0 100 0. 0.5;
#P newex 626 317 64 196617 random 100;
#P newex 503 350 116 196617 scale 0 100 -0.85 0.85;
#P flonum 503 375 35 9 -3. 3. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 503 296 15 0;
#P message 482 237 92 196617 0 0 6024 200;
#P newex 427 215 45 196617 r metro;
#P newex 482 256 31 196617 bline;
#P button 521 257 15 0;
#P newex 503 317 64 196617 random 100;
#P flonum 416 380 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 371 381 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 474 424 47 196617 s plane1;
#P newex 350 401 122 196617 pak scale 1. 1. 1.;
#P flonum 569 375 35 9 -1.5 1.5 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 474 400 99 196617 pak position 0. 0. 0.;
#P hidden message 402 68 61 196617 getduration;
#P hidden newex 80 293 106 196617 bgcolor 243 169 121;
#P hidden newex 23 633 31 196617 print;
#P window setfont Times 10.;
#P comment 33 35 24 1310730 Play;
#P toggle 18 34 14 0;
#P toggle 116 347 15 0;
#P toggle 14 348 15 0;
#P window setfont “Sans Serif” 9.;
#P hidden newex 14 331 35 196617 sel 27;
#P message 47 347 68 196617 fullscreen $1;
#P newex 14 367 150 196617 jit.window El-s @size 640 480;
#P user jit.fpsgui 99 134 45 196617 0;
#P hidden newex 15 109 164 196617 t b b erase;
#P newex 15 257 86 196617 jit.gl.render El-s;
#P hidden newex 14 308 40 196617 key;
#P message 210 42 88 196617 el-s_bras_2.mov;
#P number 36 59 35 9 0 0 0 3 0 0 0 206 174 109 222 222 222 0 0 0;
#P comment 137 61 20 196617 fps;
#P hidden newex 140 27 46 196617 !/ 1000;
#P comment 72 61 20 196617 ms;
#P flonum 97 59 39 9 0. 0 1 3 0 0 0 206 183 109 222 222 222 0 0 0;
#P toggle 18 59 15 0;
#P hidden newex 15 86 57 196617 qmetro 40;
#P user panel 13 53 150 30;
#X brgb 243 169 121;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden newex 81 87 45 196617 s metro;
#P message 346 99 239 196617 el-s_bras_2.mov;
#P hidden newex 328 163 62 196617 prepend set;
#P hidden newex 396 161 32 196617 sel 1;
#P hidden newex 349 141 57 196617 unpack s 0;
#P comment 517 144 65 196617 Size QT Unit;
#P number 443 143 74 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 349 124 201 196617 route read duration;
#P button 348 328 15 0;
#P newex 225 414 47 196617 r plane1;
#P hidden newex 342 67 45 196617 r metro;
#P newex 209 436 103 196617 jit.gl.videoplane El-s;
#P user jit.fpsgui 209 224 60 196617 0;
#P user jit.pwindow 208 120 102 102 0 1 0 0 1 0;
#P user ubumenu 207 68 58 196617 0 1 1 0;
#X add start;
#X add stop;
#X add rate 2;
#X add rate -2;
#X add rate 0.5;
#X add read;
#X prefix_set 0 0
0;
#X pattrmode 1;
#P window setfont Times 10.;
#P comment 208 26 29 1310730 Open;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 209 97 130 1441802 jit.qt.movie 240 240;
#B color 5;
#P window setfont “Sans Serif” 9.;
#P hidden newex 276 67 65 196617 prepend read;
#P comment 388 327 68 196617 taille et zone;
#P comment 143 167 26 196617 noir;
#P comment 401 766 68 196617 taille et zone;
#P hidden message 110 328 66 196617 fsmenubar 0;
#P message 133 347 45 196617 sync $1;
#P user panel 6 288 186 111;
#X brgb 255 255 255;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 341 184 406 271;
#X brgb 243 169 122;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 198 22 558 440;
#X brgb 255 255 255;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 344 631 406 271;
#X brgb 243 169 122;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 198 468 558 439;
#X brgb 255 255 255;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 9 22 181 262;
#X brgb 255 255 255;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P connect 155 0 154 0;
#P fasten 156 0 154 0 68 729 15 729;
#P hidden fasten 38 0 44 0 19 326 19 326;
#P hidden fasten 44 0 45 0 19 328 19 328;
#P hidden fasten 7 0 42 0 115 364 19 364;
#P fasten 43 0 42 0 52 364 19 364;
#P fasten 6 0 42 0 138 364 19 364;
#P hidden connect 31 0 30 0;
#P hidden connect 30 0 40 0;
#P hidden fasten 119 0 39 0 34 208 20 208;
#P hidden fasten 70 0 39 0 32 185 20 185;
#P hidden fasten 40 2 39 0 174 131 20 131;
#P hidden fasten 40 0 39 0 20 130 20 130;
#P connect 121 0 39 0;
#P hidden connect 47 0 31 0;
#P hidden connect 153 0 152 0;
#P connect 45 0 43 0;
#P hidden connect 36 0 30 1;
#P lcolor 2;
#P fasten 122 0 121 1 38 233 67 233;
#P hidden connect 157 0 156 0;
#P hidden connect 30 0 28 0;
#P fasten 123 0 121 2 73 233 96 233;
#P hidden fasten 34 0 32 0 145 55 102 55;
#P hidden connect 40 1 41 0;
#P hidden fasten 44 0 7 0 19 345 115 345;
#P fasten 124 0 121 3 108 233 125 233;
#P connect 46 0 6 0;
#P hidden connect 36 0 34 0;
#P lcolor 2;
#P fasten 125 0 121 4 143 233 154 233;
#P hidden fasten 11 0 12 0 281 87 214 87;
#P hidden fasten 14 1 12 0 236 87 214 87;
#P hidden fasten 51 0 12 0 407 87 214 87;
#P hidden fasten 18 0 12 0 347 87 214 87;
#P fasten 12 0 15 0 214 121 214 121;
#P hidden connect 15 0 16 0;
#P connect 15 0 17 0;
#P fasten 132 0 17 0 229 404 214 404;
#P fasten 127 0 17 0 251 404 214 404;
#P connect 19 0 17 0;
#P hidden fasten 92 0 77 0 416 528 223 528;
#P hidden fasten 78 1 77 0 245 528 223 528;
#P hidden fasten 76 0 77 0 290 528 223 528;
#P hidden fasten 81 0 77 0 356 528 223 528;
#P connect 77 0 118 0;
#P fasten 135 0 118 0 243 784 223 784;
#P fasten 129 0 118 0 256 818 223 818;
#P connect 82 0 118 0;
#P fasten 152 0 118 0 41 781 223 781 223 834 223 834;
#P fasten 154 0 118 0 15 781 223 781;
#P fasten 77 0 79 0 223 562 225 562;
#P hidden connect 79 0 80 0;
#P connect 131 0 132 0;
#P connect 134 0 135 0;
#P connect 128 0 127 0;
#P connect 130 0 129 0;
#P hidden fasten 37 0 11 0 215 60 281 60;
#P fasten 158 0 11 0 311 60 281 60;
#P fasten 159 0 76 0 311 501 290 501;
#P hidden fasten 91 0 76 0 219 501 290 501;
#P hidden connect 24 0 26 0;
#P hidden connect 87 0 89 0;
#P hidden connect 26 0 27 0;
#P hidden fasten 25 0 20 0 401 253 353 253;
#P hidden connect 12 1 21 0;
#P hidden connect 21 0 24 0;
#P connect 20 0 71 0;
#P hidden connect 89 0 90 0;
#P hidden connect 77 1 84 0;
#P hidden connect 84 0 87 0;
#P connect 20 0 73 0;
#P hidden fasten 88 0 83 0 410 680 368 680;
#P connect 83 0 113 0;
#P hidden connect 73 0 56 0;
#P connect 83 0 115 0;
#P hidden connect 115 0 98 0;
#P connect 56 0 54 1;
#P connect 20 0 74 0;
#P connect 98 0 95 1;
#P hidden connect 24 1 25 0;
#P hidden fasten 25 0 51 0 401 179 584 179 584 65 407 65;
#P connect 83 0 116 0;
#P hidden connect 87 1 88 0;
#P hidden fasten 88 0 92 0 410 623 595 623 595 506 416 506;
#P hidden connect 73 0 57 0;
#P hidden connect 115 0 99 0;
#P connect 57 0 54 2;
#P connect 20 0 75 0;
#P connect 99 0 95 2;
#P connect 83 0 117 0;
#P hidden connect 21 1 22 0;
#P connect 20 0 72 0;
#P hidden connect 84 1 85 0;
#P connect 52 0 55 0;
#P hidden fasten 146 0 55 0 652 419 479 419;
#P hidden fasten 138 0 55 0 652 418 479 418;
#P fasten 54 0 55 0 355 421 479 421;
#P connect 83 0 114 0;
#P connect 68 0 69 0;
#P fasten 59 0 62 0 526 296 582 296 582 232 487 232;
#P connect 69 0 62 0;
#P connect 62 0 60 0;
#P connect 61 0 60 0;
#P connect 60 0 120 0;
#P connect 93 0 96 0;
#P hidden fasten 149 0 96 0 661 874 488 874;
#P hidden fasten 143 0 96 0 661 873 488 873;
#P fasten 95 0 96 0 360 874 488 874;
#P connect 111 0 112 0;
#P connect 112 0 104 0;
#P fasten 101 0 104 0 535 737 569 737 569 686 496 686;
#P connect 104 0 102 0;
#P connect 103 0 102 0;
#P connect 102 0 105 0;
#P connect 60 1 63 0;
#P connect 63 0 58 0;
#P connect 58 0 65 0;
#P connect 65 0 64 0;
#P connect 64 0 52 1;
#P connect 102 1 106 0;
#P connect 106 0 100 0;
#P connect 100 0 108 0;
#P connect 107 0 93 1;
#P connect 108 0 107 0;
#P connect 60 1 59 0;
#P hidden fasten 25 0 59 0 401 253 526 253;
#P fasten 178 1 101 0 1091 716 535 716;
#P fasten 181 1 101 0 1101 715 535 715;
#P hidden fasten 88 0 101 0 410 681 535 681;
#P connect 102 1 101 0;
#P connect 53 0 52 2;
#P connect 94 0 93 2;
#P hidden fasten 71 0 65 3 354 340 571 340;
#P fasten 22 0 68 2 448 167 573 167;
#P connect 67 0 53 0;
#P hidden fasten 113 0 108 3 369 803 580 803;
#P fasten 85 0 111 2 457 613 582 613;
#P connect 110 0 94 0;
#P hidden fasten 74 0 65 4 394 340 592 340;
#P hidden fasten 116 0 108 4 409 803 601 803;
#P fasten 63 0 66 0 508 314 631 314;
#P connect 66 0 67 0;
#P hidden connect 140 0 139 0;
#P fasten 106 0 109 0 515 778 640 778;
#P connect 109 0 110 0;
#P hidden connect 145 0 144 0;
#P connect 139 0 138 0;
#P hidden connect 147 0 146 0;
#P hidden connect 136 0 140 0;
#P connect 144 0 143 0;
#P hidden connect 150 0 149 0;
#P hidden connect 141 0 145 0;
#P hidden connect 136 0 137 0;
#P hidden fasten 75 0 67 3 433 340 679 340;
#P hidden connect 141 0 142 0;
#P hidden fasten 117 0 110 3 442 809 692 809;
#P hidden fasten 72 0 67 4 452 340 695 340;
#P hidden fasten 114 0 110 4 479 809 709 809;
#P connect 178 0 179 0;
#P fasten 93 0 171 0 488 879 765 879 765 759 790 759;
#P connect 171 0 172 0;
#P fasten 93 0 173 0 488 878 765 878 765 809;
#P connect 181 0 182 0;
#P connect 52 0 162 0;
#P connect 52 0 160 0;
#P connect 160 0 161 0;
#P connect 163 0 178 0;
#P connect 162 1 166 0;
#P connect 166 0 181 0;
#P connect 166 0 165 0;
#P connect 173 1 177 0;
#P connect 177 0 176 0;
#P connect 163 0 164 0;
#P connect 162 2 163 0;
#P connect 173 2 174 0;
#P connect 174 0 175 0;
#P connect 178 1 180 0;
#P connect 173 2 178 1;
#P connect 173 1 181 1;
#P connect 181 1 183 0;
#P window clipboard copycount 184;

#32486
Jun 15, 2007 at 9:28pm

I think I know what you mean. I notice your using two bline objects which when finished trigger the next random position. Could you not just use one of these objects and order the bangs so that one of the planes is positioned first (thus giving you your X/Y co-ordinates) and then set the second planes co-ordinates with respect to the first plane?

Does that make sense or have I got your idea wrong? Or do you need both bline objects?

Andy

#106982
Jun 16, 2007 at 8:10am

#106983

You must be logged in to reply to this topic.