texturing video onto rectangular area

James Rojsirivat jamesr1 at access1.net
Mon Feb 21 01:21:40 CET 2000


hello,

i'm working on a project and need some advice.  in the gem_movie.pd, the example has the movie file textured onto the <cube> object...in a version of the same project i'm working on, i used the <square> object onto which my file is textured.  However, ideally, i'd like the movie to retain its shape.  in the current version i'm working on, i have the <pix_movie> object connected to a <polygon> with an argument of <4>.  the x y z coordinates are assigned so that z = 0.  the problem is that when i render, i can't get anything to show up on the screen.  what am i doing wrong?  i'm including the video section of the program.  any help is greatly appreciated.

also, is there a way to create a CASE like statement in pd?  i'm using <moses> at the moment, and it seems awfully clunky.  


james



#N canvas 130 98 600 500 10;
#X msg 322 41 bang;
#X floatatom 110 127;
#X msg 371 39 stop;
#X obj 321 66 metro 1000;
#X obj 110 100 random 255;
#X floatatom 86 267;
#X obj 86 241 + 1;
#X msg 90 184 bang;
#X obj 86 215 float;
#X obj 110 153 moses 100;
#X msg 128 268 0;
#X msg 144 128 0;
#X text 220 4 February 20 \, 2000::simulates sensors;
#X floatatom 361 217;
#X obj 361 191 + 1;
#X msg 365 134 bang;
#X obj 361 165 float;
#X msg 403 218 0;
#X obj 366 104 moses 200;
#X floatatom 456 219;
#X obj 456 193 + 1;
#X msg 460 136 bang;
#X obj 456 167 float;
#X msg 498 220 0;
#X obj 461 106 moses 255;
#N canvas 213 32 608 494 video 0;
#X msg 51 32 1;
#X msg 59 68 0;
#X msg 101 41 create;
#X msg 102 87 destroy;
#X obj 223 61 gemhead;
#X floatatom 351 135;
#X obj 351 104 counter 0 85;
#X msg 351 27 1;
#X msg 386 26 0;
#X obj 351 67 metro 50;
#X text 392 135 control which frame;
#X msg 287 196 0 0 0;
#X msg 305 294 600 400 0;
#X msg 305 261 0 400 0;
#X msg 298 228 600 0 0;
#X msg 110 128 dimen 600 400;
#X msg 11 121 border 0;
#X obj 219 320 polygon 4;
#X obj 223 167 pix_movie homer.avi;
#X obj 42 157 gemwin;
#X connect 0 0 19 0;
#X connect 1 0 19 0;
#X connect 2 0 19 0;
#X connect 3 0 19 0;
#X connect 4 0 18 0;
#X connect 5 0 18 1;
#X connect 6 0 5 0;
#X connect 7 0 9 0;
#X connect 8 0 9 0;
#X connect 9 0 6 0;
#X connect 11 0 17 1;
#X connect 12 0 17 4;
#X connect 13 0 17 3;
#X connect 14 0 17 2;
#X connect 15 0 19 0;
#X connect 16 0 19 0;
#X connect 18 0 17 0;
#X restore 12 22 pd video;
#N canvas 0 0 600 400 audio 0;
#X restore 13 47 pd audio;
#X obj 7 300 moses 20;
#X obj 71 300 moses 40;
#X obj 135 300 moses 60;
#X obj 198 300 moses 80;
#X obj 261 300 moses 100;
#X obj 225 239 select 100;
#X connect 0 0 3 0;
#X connect 1 0 9 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 5 0 27 0;
#X connect 6 0 5 0;
#X connect 6 0 8 1;
#X connect 6 0 32 0;
#X connect 7 0 8 0;
#X connect 8 0 6 0;
#X connect 9 0 7 0;
#X connect 9 1 18 0;
#X connect 10 0 5 0;
#X connect 11 0 1 0;
#X connect 14 0 13 0;
#X connect 14 0 16 1;
#X connect 14 0 32 0;
#X connect 15 0 16 0;
#X connect 16 0 14 0;
#X connect 17 0 13 0;
#X connect 18 0 15 0;
#X connect 18 1 24 0;
#X connect 20 0 19 0;
#X connect 20 0 22 1;
#X connect 20 0 32 0;
#X connect 21 0 22 0;
#X connect 22 0 20 0;
#X connect 23 0 19 0;
#X connect 24 0 21 0;
#X connect 27 1 28 0;
#X connect 28 1 29 0;
#X connect 29 1 30 0;
#X connect 30 1 31 0;
#X connect 32 0 2 0;


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20000220/6f74efd0/attachment.htm>


More information about the Pd-list mailing list