Oops, i forgot to attach the patch ! ++ Jack
Le dimanche 20 septembre 2009 à 16:57 +0200, Jack a écrit : > See this patch. > You needn't [pix_separator] in this case but [separator]. > To capture, first, draw what you want to save, then, capture. To do > this, use [gemhead] to draw and [gemhead 51] to capture. See the help > patch about [gemhead]. > ++ > > Jack > > > Le dimanche 20 septembre 2009 à 02:22 +0200, [email protected] a > écrit : > > hi list, > > this is my first post... > > i try to make a patch which will mirror my webcaminput and then display it. > > to be more precise: it should take half of the picture and send it to the > > other side, where normally the other half would be, additionally it should > > be mirrored horizontally. the effect achieved looks like a photobooth > > effect (in osx) don't know the name though. so the patch is fairly easy to > > setup. i just did a pix_crop to get half of the webcam and then sent the > > signal through two pix_separator's. after i applied on one a pix_flip > > horizontally. to display this i used two pix_textures going to two > > rectangle objects. the positioning is done via translateXYZ. so far so > > good. i can see the picture that i want in the gemwindow. > > > > however, i see no way to save the picture. the pix_write object > > just takes one pix "stream", so the mirroring effect will be lost. is there > > a way to combine to streams into one again, like pix_join or merge? or is > > there another way? > > > > also, the positioning of the first rectangle does affect the > > positioning of the second, if i move the first (created) rectangle via > > translateXYZ the second one get's moved as well. why is that? maybe i do it > > all wrong, im not an experienced pd/gem user, just did audio so far. > > > > thanks for your time and answers, > > > > simon > > > > ps: i attached the patch. > > _______________________________________________ [email protected] mailing list > > UNSUBSCRIBE and account-management -> > > http://lists.puredata.info/listinfo/pd-list > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list
#N canvas 177 49 477 471 10; #X obj 31 84 gemwin; #X msg 41 58 destroy; #X obj 32 129 gemhead; #X obj 96 119 loadbang; #X msg 31 28 dimen 600 450 \, create \, 1; #X obj 43 196 loadbang; #X obj 32 264 pix_crop; #X obj 32 170 pix_video; #X msg 54 241 120; #X msg 96 142 dimen 160 120; #X msg 43 217 80; #X obj 32 332 pix_texture; #X floatatom 238 358 5 0 0 0 - - -; #X obj 195 411 rectangle -2.666 4; #X obj 32 412 rectangle 2.666 4; #X floatatom 77 358 5 0 0 0 - - -; #X obj 195 296 separator; #X obj 195 331 pix_texture; #X obj 32 296 separator; #X obj 32 382 translateXYZ -2.666 0 0; #X obj 195 382 translateXYZ 2.666 0 0; #X obj 321 145 gemhead 51; #X obj 336 177 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 356 176 <- capture; #X obj 321 205 pix_write; #X connect 1 0 0 0; #X connect 2 0 7 0; #X connect 3 0 9 0; #X connect 4 0 0 0; #X connect 5 0 10 0; #X connect 5 0 8 0; #X connect 6 0 16 0; #X connect 6 0 18 0; #X connect 7 0 6 0; #X connect 8 0 6 2; #X connect 9 0 7 0; #X connect 10 0 6 1; #X connect 11 0 19 0; #X connect 12 0 20 1; #X connect 15 0 19 1; #X connect 16 0 17 0; #X connect 17 0 20 0; #X connect 18 0 11 0; #X connect 19 0 14 0; #X connect 20 0 13 0; #X connect 21 0 24 0; #X connect 22 0 24 0;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
