Thank you a lot guys!

Thanks to your suggestions, this seems to be the solution (see attached patch). I have to try it on Mac though, to see if it really fixes the issue (hard to predict since the issue itself is pretty strange), but I expect it to.

I didn't expect the spigoting-the-gemhead-trick to work: I thought that having pix_movement receive the gemlist only some of the times a frame was rendered would cause strange interactions.

The pix_texture-right-inlet-trick even allows me to monitor the movement signal which is great.



On 04/05/2011 05:03 PM, cyrille henry wrote:
depending on the aplication, it can help to separate the tracking and
the rendering on 2 diferents process (2 diferent pd).
(most computer have multiple processor now)

to slow a gemhead, you can stop it (sending it 0) and then send it bangs
with a metronome.
if you don't use it for rendering it should work...

c


Le 05/04/2011 16:47, Matteo Sisti Sette a écrit :
On 04/05/2011 04:33 PM, chris clepper wrote:
I used pix_movement and blob for basic motion detection for years. I
gated the video signal so it would only output every half second or
second

How do you gate the video signal? That may be exactly the workaround I
need


Try setting the GEM framerate to the
advertised frame rate of your device and see if that helps.

Yes it does help, it fixes the problem completely. But that is not an
option if i need to produce graphical output at a higher framerate.
It's ok to detect the movement at a rate equal to or lower than the
camera frame rate, but i can't lower the whole gem framerate because
that will affect video output.

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list



#N canvas 611 88 573 695 10;
#X obj 462 723 gemwin;
#X msg 404 671 create \, 1 \, frame 25;
#X msg 533 673 destroy;
#X obj 222 232 pix_video;
#X obj 222 259 pix_yuv;
#X obj 223 293 pix_movement 0.2;
#X obj 223 334 pix_blob;
#X floatatom 248 499 5 0 0 0 - - -;
#X floatatom 303 496 5 0 0 0 - - -;
#X floatatom 364 499 5 0 0 0 - - -;
#X obj 94 633 translateXYZ;
#X obj 94 691 square;
#X obj 202 643 * 4;
#X obj 180 545 - 0.5;
#X obj 226 544 - 0.5;
#X obj 226 574 * -8;
#X obj 40 479 rectangle 5.333 4;
#X obj 155 377 pix_texture;
#X obj 40 438 pix_texture;
#X obj 43 395 gemhead 1;
#X obj 87 553 gemhead 3;
#X obj 180 575 * 8;
#X obj 94 660 colorRGB 1 0 0;
#X obj 225 40 gemhead;
#X obj 225 70 t a b;
#X obj 252 99 f;
#X obj 285 93 + 1;
#X obj 287 122 % 3;
#X obj 252 142 == 0;
#X obj 222 201 spigot;
#X obj 404 624 loadbang;
#X text 57 362 MONITOR;
#X obj 34 361 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 17 0;
#X connect 6 1 7 0;
#X connect 6 2 8 0;
#X connect 6 3 9 0;
#X connect 7 0 13 0;
#X connect 8 0 14 0;
#X connect 9 0 12 0;
#X connect 10 0 22 0;
#X connect 12 0 11 1;
#X connect 13 0 21 0;
#X connect 14 0 15 0;
#X connect 15 0 10 2;
#X connect 17 1 18 1;
#X connect 18 0 16 0;
#X connect 19 0 18 0;
#X connect 20 0 10 0;
#X connect 21 0 10 1;
#X connect 22 0 11 0;
#X connect 23 0 24 0;
#X connect 24 0 29 0;
#X connect 24 1 25 0;
#X connect 25 0 26 0;
#X connect 25 0 28 0;
#X connect 26 0 27 0;
#X connect 27 0 25 1;
#X connect 28 0 29 1;
#X connect 29 0 3 0;
#X connect 30 0 1 0;
#X connect 32 0 19 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to