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
Le samedi 17 février 2007 à 04:44 +1100, 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
What OS and GEM version?
On OSX the pix_film/movie object defaults to YUV. Send a 'colorspace RGBA' message to the object before loading the clip if you need the alpha from the clip. pix_image uses RGBA by default. If you have problems with PNG the try uncompressed or TIFF.
Also, put the alpha object after the pix_objects.
On 2/16/07, Item State itemstatechanged@yahoo.de wrote:
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
hi,
i'm on osx 10.4 intel with pd-0.39.2-extended-test7, gem says "GEM: ver: 0.91-cvs", "GEM: compiled: Jan 5 2007".
the wrong colours appear equally when using TIFF images. to which object should i send the colorspace message? if i put it into [pix_movie], i get:
"error: pix_movieDarwin: no method for 'colorspace'".
interestingly, if i remove all the [pix_texture] objects and use [pix_draw] instead, the colours are displayed correctly (only i'm worried since the help says pix_draw is very slow compared to pix_texture, and i need to draw lots of CPU for audio later on).
also, if i use [pix_draw] instead of [pix_texture], i am able to use [pix_mix] (doesn't work with pix_texture?), so i can crossfade to a totally transparent picture, which does almost the fade-in/out i want. however, the pixel mixing is strange: the image becomes white before it's faded out. that is, pix_mix seems to to be assuming something like "alpha premultiplied", like stolidly multiplying each channel separately and not using alpha information for R/G/B multiplication:
http://sciss.de/test/Bild%203.png (you see the background of the text in the second screen from the left has gotten white instead of staying black ; this is the patch "gemTest2G.pd", using this transparent image : http://sciss.de/test/transp.png)
last not least, the images appear 180 degrees rotated when using pix_draw instead of pix_texture (see also Bild 3.png)
ciao, -sciss-
--- chris clepper cgclepper@gmail.com wrote:
What OS and GEM version?
On OSX the pix_film/movie object defaults to YUV. Send a 'colorspace RGBA' message to the object before loading the clip if you need the alpha from the clip. pix_image uses RGBA by default. If you have problems with PNG the try uncompressed or TIFF.
Also, put the alpha object after the pix_objects.
On 2/16/07, Item State itemstatechanged@yahoo.de wrote:
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
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Send instant messages to your online friends http://au.messenger.yahoo.com
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;
For what it's worth, I think that the color effects on 'Bild 201.png' look pretty sweet.
~Kyle
On 2/16/07, cyrille henry cyrille.henry@la-kitchen.fr wrote:
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;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
thanks, cyrille for your patch. yes mine looks chaotic but that's because i'm justing testing until i know everything works, before pasting that into the real patch.
unfortunately i have the same problem with your patch (psychedelic colours). the [colorRGB] is pretty cool, it does exactly what i want, but this only works here with [pix_texture] but have no effect when using [pix_draw] instead...
ciao, -sciss-
--- cyrille henry cyrille.henry@la-kitchen.fr wrote:
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
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;
Send instant messages to your online friends http://au.messenger.yahoo.com
ok, it works now. i have to add all the paths containing [pix_texture] objects _after_ the GEM window has been created. that is, exclude them initially with a closed [gate], create the window, then open the gate. strangely, then everything's painted correctly. ...so i can use texture + colorRGB, nice.
thanks for your help + patience. ciao, -sciss-
--- Item State itemstatechanged@yahoo.de wrote:
thanks, cyrille for your patch. yes mine looks chaotic but that's because i'm justing testing until i know everything works, before pasting that into the real patch.
unfortunately i have the same problem with your patch (psychedelic colours). the [colorRGB] is pretty cool, it does exactly what i want, but this only works here with [pix_texture] but have no effect when using [pix_draw] instead...
ciao, -sciss-
--- cyrille henry cyrille.henry@la-kitchen.fr wrote:
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
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;
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
Send instant messages to your online friends http://au.messenger.yahoo.com
i dont really understand but here is small advice : use spigot instead of gate (pd internal), don't use spigot , but send a 0 to gemhead.
cyrille
Item State a écrit :
ok, it works now. i have to add all the paths containing [pix_texture] objects _after_ the GEM window has been created. that is, exclude them initially with a closed [gate], create the window, then open the gate. strangely, then everything's painted correctly. ...so i can use texture + colorRGB, nice.
thanks for your help + patience. ciao, -sciss-
--- Item State itemstatechanged@yahoo.de wrote:
thanks, cyrille for your patch. yes mine looks chaotic but that's because i'm justing testing until i know everything works, before pasting that into the real patch.
unfortunately i have the same problem with your patch (psychedelic colours). the [colorRGB] is pretty cool, it does exactly what i want, but this only works here with [pix_texture] but have no effect when using [pix_draw] instead...
ciao, -sciss-
--- cyrille henry cyrille.henry@la-kitchen.fr wrote:
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
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;
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
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
On Sat, 2007-02-17 at 06:32 +1100, Item State wrote:
unfortunately i have the same problem with your patch (psychedelic colours). the [colorRGB] is pretty cool, it does exactly what i want, but this only works here with [pix_texture] but have no effect when using [pix_draw] instead...
i hope i can clarify this a bit in my own (maybe not too correct) words. there are actually two different domains in Gem: opengl and 'pix'es. all opengl-based stuff is renderend on the gpu (graphic card's cpu), whereas all pixel-based objects are calculated on the cpu. playing and processing videos and pictures happens in the pix-domain (afaik, all pix_*-objects work in that domain). pix_texture is used to convert an image (from a picture or a video) to a texture, that can be applied to a vertex . that means the picture is then in the opengl-domain and cannot be processed with pix_*-objects anymore. so there are actually two (or more?) ways of alpha-blending a picture:
sure anymore about that) 2) give it to the opengl-domain using [pix_texture] and use the fourth (alpha-channel-)inlet of [colorRGB]. the latter approach has the advantage, that everything is rendered on gpu, which saves you a lot of cpu-power. whenever you can, i would do stuff in the opengl-domain (unless you don't have any 3d-acceleration enabled).
i hope i didn't tell you something completely wrong (please someone correct me, if i did)
roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
ok, thanks for clarification.
but what about pix_movie, it seems to be in another domain than pix_image because i cannot apply the processes to it that i can apply to pix_image. also pix_image "needs" either pix_draw or pix_texture -> pix_rectangle, while pix_movie goes directly into pix_rectangle without an intermitting pix_texture, and it cannot be plugged into pix_draw ...?
ciao, -sciss-
--- Roman Haefeli reduzierer@yahoo.de wrote:
On Sat, 2007-02-17 at 06:32 +1100, Item State wrote:
unfortunately i have the same problem with your
patch
(psychedelic colours). the [colorRGB] is pretty
cool,
it does exactly what i want, but this only works
here
with [pix_texture] but have no effect when using [pix_draw] instead...
i hope i can clarify this a bit in my own (maybe not too correct) words. there are actually two different domains in Gem: opengl and 'pix'es. all opengl-based stuff is renderend on the gpu (graphic card's cpu), whereas all pixel-based objects are calculated on the cpu. playing and processing videos and pictures happens in the pix-domain (afaik, all pix_*-objects work in that domain). pix_texture is used to convert an image (from a picture or a video) to a texture, that can be applied to a vertex . that means the picture is then in the opengl-domain and cannot be processed with pix_*-objects anymore. so there are actually two (or more?) ways of alpha-blending a picture:
- do everything in the pix-domain and use
[pix_alpha] (i'm not quite sure anymore about that) 2) give it to the opengl-domain using [pix_texture] and use the fourth (alpha-channel-)inlet of [colorRGB]. the latter approach has the advantage, that everything is rendered on gpu, which saves you a lot of cpu-power. whenever you can, i would do stuff in the opengl-domain (unless you don't have any 3d-acceleration enabled).
i hope i didn't tell you something completely wrong (please someone correct me, if i did)
roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Send instant messages to your online friends http://au.messenger.yahoo.com
On Sat, 2007-02-17 at 08:10 +1100, Item State wrote:
ok, thanks for clarification.
but what about pix_movie, it seems to be in another domain than pix_image because i cannot apply the processes to it that i can apply to pix_image.
this is because [pix_movie] has [pix_texture] already 'built-in'. the equivalent to [pix_image] would be [pix_film], which requires an extra [pix_texture] to be textured onto a 3d-object.
also pix_image "needs" either pix_draw or pix_texture -> pix_rectangle,
yes (though i think you mean [rectangle] here instead of [pix_rectangle], which does something different).
while pix_movie goes directly into pix_rectangle without an intermitting pix_texture, and
yes (also here i assume you mean [rectangle])
it cannot be plugged into pix_draw ...?
exactly, because [pix_draw] wants a pix, not a texture.
roman
ciao, -sciss-
--- Roman Haefeli reduzierer@yahoo.de wrote:
On Sat, 2007-02-17 at 06:32 +1100, Item State wrote:
unfortunately i have the same problem with your
patch
(psychedelic colours). the [colorRGB] is pretty
cool,
it does exactly what i want, but this only works
here
with [pix_texture] but have no effect when using [pix_draw] instead...
i hope i can clarify this a bit in my own (maybe not too correct) words. there are actually two different domains in Gem: opengl and 'pix'es. all opengl-based stuff is renderend on the gpu (graphic card's cpu), whereas all pixel-based objects are calculated on the cpu. playing and processing videos and pictures happens in the pix-domain (afaik, all pix_*-objects work in that domain). pix_texture is used to convert an image (from a picture or a video) to a texture, that can be applied to a vertex . that means the picture is then in the opengl-domain and cannot be processed with pix_*-objects anymore. so there are actually two (or more?) ways of alpha-blending a picture:
- do everything in the pix-domain and use
[pix_alpha] (i'm not quite sure anymore about that) 2) give it to the opengl-domain using [pix_texture] and use the fourth (alpha-channel-)inlet of [colorRGB]. the latter approach has the advantage, that everything is rendered on gpu, which saves you a lot of cpu-power. whenever you can, i would do stuff in the opengl-domain (unless you don't have any 3d-acceleration enabled).
i hope i didn't tell you something completely wrong (please someone correct me, if i did)
roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
pix_movie directly textures the image. On OSX it uses some tricks to improve performance when dealing with HD resolution clips. I will have a look into the 'colorspace' issue although I will say that RGB isn't the most efficient path to use.
On 2/16/07, Item State itemstatechanged@yahoo.de wrote:
ok, thanks for clarification.
but what about pix_movie, it seems to be in another domain than pix_image because i cannot apply the processes to it that i can apply to pix_image. also pix_image "needs" either pix_draw or pix_texture -> pix_rectangle, while pix_movie goes directly into pix_rectangle without an intermitting pix_texture, and it cannot be plugged into pix_draw ...?
ciao, -sciss-