hello, your patch is really a mess. here is how i would have done it with gem.
cyrille
Item State a écrit :
hi,
i'm trying to port a former jitter patch to pd/gem (http://lists.puredata.info/pipermail/pd-list/2006-11/043853.html). i have problems getting overlayed images to display properly. i have four rectangles fed by pix_movie, then i need to fade in and out a rendered text image. i tried using pix_image -> pix_texture and [alpha 1]. the images are .png with transparent portions. i once got it to display correctly, but now if i open the patch, the videos all show up with wrong colours:
http://sciss.de/test/Bild%201.png (see attached patch gemTest2.pd)
once i remove the pix_image and pix_texture, save the patch and re-open it, the videos show up correctly again:
http://sciss.de/test/Bild%205.png (see attached patch gemTest2B.pd)
... also, i don't know how to fade in the text (the "action" string). is there an alpha-channel multiplier for pix_image? thanks for hints!
is it possible to stretch the video so that the rectangle stays the same, but only the top part of the video is shown (vertically zoomed without interpolation, so that you can see the pixels)?
ciao, -sciss-
Send instant messages to your online friends http://au.messenger.yahoo.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
#N canvas 1215 158 1520 612 10; #X msg 434 470 destroy; #N canvas 547 142 502 352 gemwin 0; #X obj 185 283 gemwin; #X obj 66 107 outlet; #X obj 67 10 inlet; #X obj 67 41 route create; #X msg 67 70 set destroy; #X msg 178 68 set create; #X msg 212 143 destroy , reset; #X obj 357 10 inlet; #X obj 367 158 int; #X obj 123 178 t b b; #X msg 93 214 dimen 1024 768 , fullscreen $1 , create , 20; #X obj 357 38 t b f b; #X obj 263 38 delay 500; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 3 0 9 0; #X connect 3 1 5 0; #X connect 3 1 6 0; #X connect 4 0 1 0; #X connect 5 0 1 0; #X connect 6 0 0 0; #X connect 7 0 11 0; #X connect 8 0 10 0; #X connect 9 0 8 0; #X connect 10 0 0 0; #X connect 11 0 12 0; #X connect 11 1 8 1; #X connect 11 2 6 0; #X connect 12 0 9 0; #X restore 451 501 pd gemwin; #X obj 105 60 gemhead; #X obj 105 267 rectangle 4 3; #X obj 105 240 pix_movie; #X msg 41 190 auto $1; #X obj 41 170 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X msg 41 149 1; #X obj 9 122 loadbang; #X obj 105 107 scale 0.333333; #X obj 510 474 tgl 15 0 empty empty fullscreen 0 -6 0 8 -262144 -1 -1 0 1; #X obj 23 521 pix_image; #X msg 101 402 open /home/cyrille/pd/Gem/examples/data/fractalAlpha.TIF ; #X obj 23 566 rectangle 4 3; #X obj 105 84 alpha; #X obj 23 543 pix_texture; #X obj 23 342 loadbang; #X msg 23 366 1; #X obj 23 392 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 ; #X obj 23 469 scale 0.333333; #X obj 23 442 alpha; #X obj 23 495 colorRGB 1 1 1 0.5; #X floatatom 144 475 5 0 0 0 - - -; #X msg 244 154 open $1; #X obj 244 134 openpanel; #X obj 244 115 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 244 175 set $1 , bang; #X obj 466 59 gemhead; #X obj 466 266 rectangle 4 3; #X obj 466 239 pix_movie; #X msg 402 189 auto $1; #X obj 402 169 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X msg 402 148 1; #X obj 370 121 loadbang; #X obj 466 106 scale 0.333333; #X obj 466 83 alpha; #X msg 402 212 open /home/cyrille/pd/Gem/examples/data/anim-1.mov; #X obj 605 133 openpanel; #X obj 605 114 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 829 58 gemhead; #X obj 829 362 rectangle 4 3; #X msg 765 188 auto $1; #X obj 765 168 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X msg 765 147 1; #X obj 733 120 loadbang; #X obj 829 105 scale 0.333333; #X obj 829 82 alpha; #X msg 968 152 open $1; #X obj 968 132 openpanel; #X obj 968 113 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 968 173 set $1 , bang; #X obj 1192 59 gemhead; #X obj 1192 266 rectangle 4 3; #X obj 1192 239 pix_movie; #X msg 1128 189 auto $1; #X obj 1128 169 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X msg 1128 148 1; #X obj 1096 121 loadbang; #X obj 1192 106 scale 0.333333; #X obj 1192 83 alpha; #X msg 1331 153 open $1; #X obj 1331 133 openpanel; #X obj 1331 114 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 1331 174 set $1 , bang; #X obj 23 419 gemhead 55; #X obj 103 348 openpanel; #X obj 103 329 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 605 160 set open $1 , bang; #X msg 41 213 open /home/cyrille/pd/Gem/examples/data/anim-1.mov; #X msg 765 211 open /home/cyrille/pd/Gem/examples/data/anim-1.mov; #X msg 1128 212 open /home/cyrille/pd/Gem/examples/data/anim-1.mov ; #X obj 1192 128 translate 12 1 0 0; #X obj 829 127 translate 4 1 0 0; #X obj 466 128 translate -4 1 0 0; #X obj 105 129 translate -12 1 0 0; #X msg 103 374 set open $1 , bang; #X obj 829 336 pix_coordinate; #X floatatom 922 291 5 0 0 0 - - -; #X msg 922 309 0 $1 1 $1 1 1 0 1; #X text 190 472 <-----------------; #X text 970 289 <-----------------; #X obj 829 304 pix_texture; #X obj 843 259 loadbang; #X msg 842 283 quality $1; #X obj 904 258 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 829 238 pix_film; #X connect 0 0 1 0; #X connect 1 0 0 0; #X connect 2 0 14 0; #X connect 4 0 3 0; #X connect 5 0 4 0; #X connect 6 0 5 0; #X connect 7 0 6 0; #X connect 8 0 7 0; #X connect 8 0 68 0; #X connect 9 0 74 0; #X connect 10 0 1 1; #X connect 11 0 15 0; #X connect 12 0 11 0; #X connect 14 0 9 0; #X connect 15 0 13 0; #X connect 16 0 17 0; #X connect 16 0 12 0; #X connect 17 0 18 0; #X connect 18 0 64 0; #X connect 19 0 21 0; #X connect 20 0 19 0; #X connect 21 0 11 0; #X connect 22 0 21 4; #X connect 23 0 26 0; #X connect 24 0 23 0; #X connect 25 0 24 0; #X connect 26 0 68 0; #X connect 27 0 35 0; #X connect 29 0 28 0; #X connect 30 0 29 0; #X connect 31 0 30 0; #X connect 32 0 31 0; #X connect 33 0 32 0; #X connect 33 0 36 0; #X connect 34 0 73 0; #X connect 35 0 34 0; #X connect 36 0 29 0; #X connect 37 0 67 0; #X connect 38 0 37 0; #X connect 39 0 46 0; #X connect 41 0 85 0; #X connect 42 0 41 0; #X connect 43 0 42 0; #X connect 44 0 43 0; #X connect 44 0 69 0; #X connect 45 0 72 0; #X connect 46 0 45 0; #X connect 47 0 50 0; #X connect 48 0 47 0; #X connect 49 0 48 0; #X connect 50 0 69 0; #X connect 51 0 59 0; #X connect 53 0 52 0; #X connect 54 0 53 0; #X connect 55 0 54 0; #X connect 56 0 55 0; #X connect 57 0 56 0; #X connect 57 0 70 0; #X connect 58 0 71 0; #X connect 59 0 58 0; #X connect 60 0 63 0; #X connect 61 0 60 0; #X connect 62 0 61 0; #X connect 63 0 70 0; #X connect 64 0 20 0; #X connect 65 0 75 0; #X connect 66 0 65 0; #X connect 67 0 36 0; #X connect 68 0 4 0; #X connect 69 0 85 0; #X connect 70 0 53 0; #X connect 71 0 53 0; #X connect 72 0 85 0; #X connect 73 0 29 0; #X connect 74 0 4 0; #X connect 75 0 12 0; #X connect 76 0 40 0; #X connect 77 0 78 0; #X connect 78 0 76 1; #X connect 81 0 76 0; #X connect 82 0 83 0; #X connect 83 0 81 0; #X connect 84 0 83 0; #X connect 85 0 81 0;