[PD] GEM: writing an image different from the one displayed

Jack jack at rybn.org
Wed Nov 18 12:14:03 CET 2009


Yep, this is better and more simple.
I wanted to use the texture in my exemple ;)
++

Jack


Le mardi 17 novembre 2009 à 08:50 +0100, IOhannes m zmölnig a écrit :
> This is a multi-part message in MIME format.
> --------------080002020704010006050600
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
> 
> Jack wrote:
> > I have done this patch.
> > It works with a [gemwin] with [dimen 800 600( and capture a picture wit=
> h
> > dimen =3D 1600x1200.
> > Hoping it helps.
> > ++
> 
> and another alternative, based on jacks example.
> no real need to segment the image.
> 
> 
> i also suggest starting to use [pix_writer] instead of [pix_write] (what
> names!), which does not have the grabbing code built in.
> eventually [pix_write] will vanish. (it can easily be built with
> [pix_snap] and [pix_writer].)
> 
> mfasdr
> IOhannes
> 
> --------------080002020704010006050600
> Content-Type: text/x-puredata;
>  name="captureFB.pd"
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: inline;
>  filename="captureFB.pd"
> 
> #N canvas 180 0 590 585 10;
> #X obj -189 148 gemhead;
> #X obj -189 185 gemframebuffer;
> #X obj 129 -10 s gemchain;
> #X obj -189 211 translateXYZ 0 0 -4;
> #X msg -176 5 destroy;
> #X obj -107 121 loadbang;
> #X obj -190 287 r gemchain;
> #X obj -190 307 separator;
> #X obj -190 367 cube 0.1;
> #X obj -190 347 rotateXYZ 0 45 0;
> #X obj -190 327 translateXYZ -3 -1 0;
> #X obj -50 287 r gemchain;
> #X obj -50 307 separator;
> #X obj -50 327 translateXYZ 2 2 0;
> #X obj -50 347 scaleXYZ 2 1 1;
> #X obj -50 367 sphere 0.1 20;
> #X msg -107 148 dimen 1600 1200;
> #X obj 279 404 gemhead 51;
> #X obj 80 287 r gemchain;
> #X obj 80 307 separator;
> #X obj 80 347 pix_video;
> #X obj 80 367 pix_texture;
> #X obj 80 387 rectangle 4 3;
> #X obj 80 327 translateXYZ 0 0 -1;
> #X obj 279 427 pix_texture;
> #X obj -189 38 gemwin;
> #X msg -189 -25 dimen 800 600 \, create \, 1;
> #X obj -50 407 r gemchain;
> #X obj -50 427 separator;
> #X obj -138 399 loadbang;
> #X msg -138 423 draw line;
> #X text -11 -27 <- 1;
> #X obj -50 447 sphere 5 20;
> #X obj 86 -11 t a a;
> #X obj 86 135 pix_snap 0 0 1600 1200;
> #X obj 86 45 spigot 0;
> #X obj 131 23 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
> 1;
> #X obj 86 69 t a b;
> #X obj 86 91 t b a;
> #X obj 86 113 t a;
> #X obj 86 207 pix_writer;
> #X obj 86 159 t b a;
> #X obj 86 181 t a;
> #X obj 279 449 rectangle 4 3;
> #X text 242 475 just for display;
> #X text 168 201 the grabber code;
> #X text -132 264 the scene...;
> #X text 149 23 <- 2;
> #X connect 0 0 1 0;
> #X connect 1 0 3 0;
> #X connect 1 1 24 1;
> #X connect 3 0 33 0;
> #X connect 4 0 25 0;
> #X connect 5 0 16 0;
> #X connect 6 0 7 0;
> #X connect 7 0 10 0;
> #X connect 9 0 8 0;
> #X connect 10 0 9 0;
> #X connect 11 0 12 0;
> #X connect 12 0 13 0;
> #X connect 13 0 14 0;
> #X connect 14 0 15 0;
> #X connect 16 0 1 0;
> #X connect 17 0 24 0;
> #X connect 18 0 19 0;
> #X connect 19 0 23 0;
> #X connect 20 0 21 0;
> #X connect 21 0 22 0;
> #X connect 23 0 20 0;
> #X connect 24 0 43 0;
> #X connect 26 0 25 0;
> #X connect 27 0 28 0;
> #X connect 28 0 32 0;
> #X connect 29 0 30 0;
> #X connect 30 0 32 0;
> #X connect 33 0 35 0;
> #X connect 33 1 2 0;
> #X connect 34 0 41 0;
> #X connect 35 0 37 0;
> #X connect 36 0 35 1;
> #X connect 37 0 38 0;
> #X connect 37 1 36 0;
> #X connect 38 0 39 0;
> #X connect 38 1 39 0;
> #X connect 39 0 34 0;
> #X connect 41 0 42 0;
> #X connect 41 1 42 0;
> #X connect 42 0 40 0;
> 
> --------------080002020704010006050600--
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list