Hello everyone. I'm having trouble using pix_compare with a pix_video stream together with a pix_image. I want to do lumakeying but the pix's don't have the same size (the videostream is not a power of 2). So I get the following from Gem:
Gem: GemPixDualObj: two images do not have equal dimensions
Anyway around? Using Windows XP + Gem 0.888-rc2
My patch:
#N canvas 0 0 767 607 12; #X msg 60 93 create; #X msg 28 92 1; #X msg 122 93 dimen 320 240; #X obj 21 163 gemwin; #X obj 31 55 t b b b; #X obj 30 25 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 420 73 pix_video; #X obj 463 110 pix_delay; #X obj 420 138 pix_diff; #X floatatom 450 499 0 0 0 0 - - -; #X obj 425 532 translateXYZ; #X floatatom 476 500 5 0 0 0 - - -; #X floatatom 525 501 5 0 0 0 - - -; #X msg 525 480 1; #X obj 420 183 pix_blur; #X obj 525 460 loadbang; #X obj 420 49 gemhead; #X obj 420 236 pix_grey; #X obj 608 308 pix_image; #X obj 598 246 gemhead; #X obj 425 557 square 4; #X obj 433 430 pix_texture; #X msg 525 42 setup; #X msg 513 68 dialog format; #X obj 407 293 pix_gain; #X msg 482 292 $1 $1 $1; #X msg 443 360 direction $1; #X obj 443 341 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 645 215 loadbang; #X msg 615 272 open dancer.jpg; #X msg 559 102 5; #X msg 532 169 0.9; #X msg 498 257 5; #X obj 433 394 pix_compare; #X connect 0 0 3 0; #X connect 1 0 3 0; #X connect 2 0 3 0; #X connect 4 0 1 0; #X connect 4 1 0 0; #X connect 4 2 2 0; #X connect 5 0 4 0; #X connect 6 0 7 0; #X connect 6 0 8 0; #X connect 7 0 8 1; #X connect 8 0 14 0; #X connect 9 0 10 1; #X connect 10 0 20 0; #X connect 11 0 10 2; #X connect 12 0 10 3; #X connect 13 0 12 0; #X connect 14 0 17 0; #X connect 15 0 13 0; #X connect 16 0 6 0; #X connect 17 0 24 0; #X connect 18 0 33 1; #X connect 19 0 18 0; #X connect 21 0 10 0; #X connect 22 0 6 0; #X connect 23 0 6 0; #X connect 24 0 33 0; #X connect 25 0 24 2; #X connect 26 0 33 0; #X connect 27 0 26 0; #X connect 28 0 29 0; #X connect 28 0 32 0; #X connect 28 0 31 0; #X connect 28 0 30 0; #X connect 29 0 18 0; #X connect 30 0 7 1; #X connect 31 0 14 1; #X connect 32 0 25 0; #X connect 33 0 21 0;
Thanks all I.