thanks for your help
About compositing 3D I can't use pix_snap because my GLoutput is in 1024 768 and I think that the computer will cry to pix_snap and pix_resize continuously
About the problem with the pix_mix object at the begining, I put a pix_flip object before the right inlet with a result strange : picture is alternativelly flipped up and down
the solution that I found is by the pix_film source object : before, I used a metro to changing number of image (to get the possibility to change the rate)
in fact, if I replace this metro by a derivating bang from the gemhead of the pix_film, the path pix_flip>pix_mix is working well
You can see the exemple patch next
the last problem is that, if I put a rate < 1 (in the |pd lecteur_video_boucle|) the hysteric flip is recoming
but it's now very better!!!!
#N canvas 669 62 517 429 12; #N canvas 370 25 496 355 inpoutCamera 0; #X msg 68 -5; #X obj 157 179 gemhead; #X obj 155 277 pix_video; #X msg 327 183 device 0; #X msg 327 213 driver 0; #X msg 326 157 enumerate; #X msg 123 125 dialog; #X text 44 98 configure the device via a pop-up dialog (on Windows(r)) ; #X msg 44 177 dimen 320 240; #X msg 72 20; #X obj 44 143 loadbang; #X obj 155 372 outlet; #X connect 1 0 2 0; #X connect 2 0 11 0; #X connect 3 0 2 0; #X connect 4 0 2 0; #X connect 5 0 2 0; #X connect 6 0 2 0; #X connect 8 0 2 0; #X connect 10 0 8 0; #X restore -87 -11 pd inpoutCamera; #N canvas 495 136 636 348 ecran 0; #X obj 397 223 gemwin; #X msg 151 61 create; #X msg 166 95 1; #X msg 175 130 0; #X msg 216 171 destroy; #X text 206 97 turn on/off rendering; #N canvas 95 194 336 225 Gem.init 0; #X obj 83 30 loadbang; #X msg 161 76 reset; #X obj 134 146 outlet; #X obj 88 51 t b b; #X msg 45 75 dimen 640 480; #X msg 221 80 title mOins_tU_bOuges_et_plus_le_passé_ressurgit; #X connect 0 0 3 0; #X connect 1 0 2 0; #X connect 3 0 4 0; #X connect 3 0 5 0; #X connect 3 1 1 0; #X connect 4 0 2 0; #X connect 5 0 2 0; #X restore 192 220 pd Gem.init; #X obj 94 21 loadbang; #X obj 96 48 t b b; #X msg 406 176 color $1 0 0; #X floatatom 403 137 5 0 0 0 - - -; #X msg 474 199 color 1 1 1; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 0 0; #X connect 6 0 0 0; #X connect 7 0 8 0; #X connect 7 0 11 0; #X connect 8 0 2 0; #X connect 8 1 1 0; #X connect 9 0 0 0; #X connect 10 0 9 0; #X connect 11 0 0 0; #X restore 37 -11 pd ecran; #X obj -82 317 pix_mix; #X obj -27 282 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X floatatom -30 299 5 0 0 0 - - -; #X obj 123 43 bng 25 250 50 0 empty empty ouvrunpointmov 0 -6 0 8 -262144 -1 -1; #X obj -62 82 openpanel; #N canvas 280 0 804 686 lecteur_video_boucle 0; #X obj 77 17 inlet; #X obj 91 591 outlet; #X obj 24 57 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 114 390 unpack 0 0 0; #X floatatom 100 413 5 0 0 3 length - -; #X floatatom 149 413 5 0 0 3 width - -; #X floatatom 199 413 5 0 0 3 height - -; #X obj 154 377 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144 -1 -1; #X floatatom 144 335 5 0 10000 1 frame# - -; #X obj 23 86 openpanel; #X msg 97 245 open $1; #X msg 103 288 auto $1; #X obj 103 270 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X msg 114 312 colorspace Grey; #X text 132 18 nom de la contrib à lire; #X obj 192 259 f; #X obj 194 96 t b a b; #X msg 282 219 0; #X obj 192 284 + 1; #X msg 197 149 1; #X obj 85 355 pix_film; #X obj 85 -2; #X msg 229 149 0; #X obj 380 19 inlet; #X text 422 16 bang/stop; #X obj 352 47 t b b; #X obj 58 125 gemhead 45; #X obj 138 190 spigot 0; #X floatatom 585 190 5 0 0 0 - - -; #X obj 247 281 int; #X obj 315 285 change; #X msg 227 217 14; #X obj 81 163 t a b b; #X obj 482 355 < 1; #X obj 482 379 sel 0 1; #X obj 159 549 pix_flip; #X msg 462 506 vertical; #X msg 342 493 none; #X obj 589 358; #N canvas 0 0 462 312 mon_switch 0; #X obj 91 176 spigot 1; #X obj 220 176 spigot 0; #X obj 156 248 outlet; #X obj 100 29 inlet; #X obj 226 28 inlet; #X obj 28 30 inlet; #X obj 42 79 sel 0 1 2; #X msg 42 99 0; #X msg 112 97 1; #X msg 143 98 0; #X msg 267 97 1; #X msg 233 98 0; #X connect 0 0 2 0; #X connect 1 0 2 0; #X connect 3 0 0 0; #X connect 4 0 1 0; #X connect 5 0 6 0; #X connect 6 0 7 0; #X connect 6 1 8 0; #X connect 6 1 9 0; #X connect 6 2 11 0; #X connect 6 2 10 0; #X connect 7 0 0 1; #X connect 7 0 1 1; #X connect 8 0 0 1; #X connect 9 0 1 1; #X connect 10 0 1 1; #X connect 11 0 0 1; #X restore -30 466 pd mon_switch; #X obj -45 442 + 1; #X obj 146 454 t a b; #X obj 183 486 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 389 440 sel 0 1; #X obj 313 365 int; #X obj 313 389 + 1; #X obj 386 366 < 1; #X obj 389 390 sel 4; #X text 508 163 vitesse de lecture (rate); #X connect 0 0 16 0; #X connect 2 0 9 0; #X connect 3 0 4 0; #X connect 3 1 5 0; #X connect 3 2 6 0; #X connect 7 0 17 0; #X connect 8 0 20 1; #X connect 9 0 10 0; #X connect 10 0 20 0; #X connect 11 0 20 0; #X connect 12 0 11 0; #X connect 13 0 20 0; #X connect 15 0 18 0; #X connect 16 0 19 0; #X connect 16 1 10 0; #X connect 16 2 17 0; #X connect 17 0 15 1; #X connect 18 0 15 1; #X connect 18 0 29 0; #X connect 19 0 27 1; #X connect 20 0 41 0; #X connect 20 1 3 0; #X connect 20 2 7 0; #X connect 22 0 27 1; #X connect 23 0 25 0; #X connect 25 0 22 0; #X connect 26 0 32 0; #X connect 27 0 15 0; #X connect 28 0 18 1; #X connect 28 0 33 0; #X connect 29 0 30 0; #X connect 30 0 8 0; #X connect 31 0 15 1; #X connect 32 0 20 0; #X connect 32 1 27 0; #X connect 33 0 34 0; #X connect 35 0 1 0; #X connect 36 0 35 0; #X connect 37 0 35 0; #X connect 40 0 39 0; #X connect 41 0 35 0; #X connect 41 1 42 0; #X connect 42 0 43 0; #X connect 43 0 36 0; #X connect 43 1 37 0; #X connect 44 0 45 0; #X connect 46 0 47 0; #X restore -62 107 pd lecteur_video_boucle; #X obj 117 88 bng 15 250 50 0 empty empty stop 0 -6 0 8 -262144 -1 -1; #X obj -78 353 pix_draw; #X connect 0 0 2 0; #X connect 2 0 9 0; #X connect 3 0 4 0; #X connect 4 0 2 2; #X connect 5 0 6 0; #X connect 6 0 7 0; #X connect 7 0 2 1; #X connect 8 0 7 1;
an error in the previous patch :
this one is good :
#N canvas 669 62 521 433 12; #N canvas 370 25 496 355 inpoutCamera 0; #X msg 68 -5; #X obj 157 179 gemhead; #X obj 155 277 pix_video; #X msg 327 183 device 0; #X msg 327 213 driver 0; #X msg 326 157 enumerate; #X msg 123 125 dialog; #X text 44 98 configure the device via a pop-up dialog (on Windows(r)) ; #X msg 44 177 dimen 320 240; #X msg 72 20; #X obj 44 143 loadbang; #X obj 155 372 outlet; #X connect 1 0 2 0; #X connect 2 0 11 0; #X connect 3 0 2 0; #X connect 4 0 2 0; #X connect 5 0 2 0; #X connect 6 0 2 0; #X connect 8 0 2 0; #X connect 10 0 8 0; #X restore -87 -11 pd inpoutCamera; #N canvas 495 136 636 348 ecran 0; #X obj 397 223 gemwin; #X msg 151 61 create; #X msg 166 95 1; #X msg 175 130 0; #X msg 216 171 destroy; #X text 206 97 turn on/off rendering; #N canvas 95 194 336 225 Gem.init 0; #X obj 83 30 loadbang; #X msg 161 76 reset; #X obj 134 146 outlet; #X obj 88 51 t b b; #X msg 45 75 dimen 640 480; #X msg 221 80 title mOins_tU_bOuges_et_plus_le_passé_ressurgit; #X connect 0 0 3 0; #X connect 1 0 2 0; #X connect 3 0 4 0; #X connect 3 0 5 0; #X connect 3 1 1 0; #X connect 4 0 2 0; #X connect 5 0 2 0; #X restore 192 220 pd Gem.init; #X obj 94 21 loadbang; #X obj 96 48 t b b; #X msg 406 176 color $1 0 0; #X floatatom 403 137 5 0 0 0 - - -; #X msg 474 199 color 1 1 1; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 0 0; #X connect 6 0 0 0; #X connect 7 0 8 0; #X connect 7 0 11 0; #X connect 8 0 2 0; #X connect 8 1 1 0; #X connect 9 0 0 0; #X connect 10 0 9 0; #X connect 11 0 0 0; #X restore 37 -11 pd ecran; #X obj -82 317 pix_mix; #X obj -27 282 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X floatatom -30 299 5 0 0 0 - - -; #X obj 123 43 bng 25 250 50 0 empty empty ouvrunpointmov 0 -6 0 8 -262144 -1 -1; #X obj -62 82 openpanel; #N canvas 280 0 808 690 lecteur_video_boucle 0; #X obj 77 17 inlet; #X obj 91 591 outlet; #X obj 24 57 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 114 390 unpack 0 0 0; #X floatatom 100 413 5 0 0 3 length - -; #X floatatom 149 413 5 0 0 3 width - -; #X floatatom 199 413 5 0 0 3 height - -; #X obj 154 377 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144 -1 -1; #X floatatom 144 335 5 0 10000 1 frame# - -; #X obj 23 86 openpanel; #X msg 97 245 open $1; #X msg 103 288 auto $1; #X obj 103 270 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X msg 114 312 colorspace Grey; #X text 132 18 nom de la contrib à lire; #X obj 192 259 f; #X obj 194 96 t b a b; #X msg 282 219 0; #X obj 192 284 + 1; #X msg 197 149 1; #X obj 85 355 pix_film; #X obj 85 -2; #X msg 229 149 0; #X obj 380 19 inlet; #X text 422 16 bang/stop; #X obj 352 47 t b b; #X obj 58 125 gemhead 45; #X obj 138 190 spigot 0; #X floatatom 585 190 5 0 0 0 - - -; #X obj 247 281 int; #X obj 315 285 change; #X msg 227 217 14; #X obj 81 163 t a b b; #X obj 482 355 < 1; #X obj 482 379 sel 0 1; #X obj 159 549 pix_flip; #X msg 462 506 vertical; #X msg 342 493 none; #X obj 589 358; #N canvas 0 0 462 312 mon_switch 0; #X obj 91 176 spigot 1; #X obj 220 176 spigot 0; #X obj 156 248 outlet; #X obj 100 29 inlet; #X obj 226 28 inlet; #X obj 28 30 inlet; #X obj 42 79 sel 0 1 2; #X msg 42 99 0; #X msg 112 97 1; #X msg 143 98 0; #X msg 267 97 1; #X msg 233 98 0; #X connect 0 0 2 0; #X connect 1 0 2 0; #X connect 3 0 0 0; #X connect 4 0 1 0; #X connect 5 0 6 0; #X connect 6 0 7 0; #X connect 6 1 8 0; #X connect 6 1 9 0; #X connect 6 2 11 0; #X connect 6 2 10 0; #X connect 7 0 0 1; #X connect 7 0 1 1; #X connect 8 0 0 1; #X connect 9 0 1 1; #X connect 10 0 1 1; #X connect 11 0 0 1; #X restore -30 466 pd mon_switch; #X obj -45 442 + 1; #X obj 146 454 t a b; #X obj 183 486 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X obj 389 440 sel 0 1; #X obj 313 365 int; #X obj 313 389 + 1; #X obj 386 366 < 1; #X obj 389 390 sel 4; #X text 508 163 vitesse de lecture (rate); #X connect 0 0 16 0; #X connect 2 0 9 0; #X connect 3 0 4 0; #X connect 3 1 5 0; #X connect 3 2 6 0; #X connect 7 0 17 0; #X connect 8 0 20 1; #X connect 9 0 10 0; #X connect 10 0 20 0; #X connect 11 0 20 0; #X connect 12 0 11 0; #X connect 13 0 20 0; #X connect 15 0 18 0; #X connect 16 0 19 0; #X connect 16 1 10 0; #X connect 16 2 17 0; #X connect 17 0 15 1; #X connect 18 0 15 1; #X connect 18 0 29 0; #X connect 19 0 27 1; #X connect 20 0 41 0; #X connect 20 1 3 0; #X connect 20 2 7 0; #X connect 22 0 27 1; #X connect 23 0 25 0; #X connect 25 0 22 0; #X connect 26 0 32 0; #X connect 27 0 15 0; #X connect 28 0 18 1; #X connect 28 0 33 0; #X connect 29 0 30 0; #X connect 30 0 8 0; #X connect 31 0 15 1; #X connect 32 0 20 0; #X connect 32 1 27 0; #X connect 33 0 34 0; #X connect 35 0 1 0; #X connect 36 0 35 0; #X connect 37 0 35 0; #X connect 40 0 39 0; #X connect 41 0 35 0; #X connect 42 0 43 0; #X connect 43 0 36 0; #X connect 43 1 37 0; #X connect 44 0 45 0; #X connect 46 0 47 0; #X restore -62 107 pd lecteur_video_boucle; #X obj 117 88 bng 15 250 50 0 empty empty stop 0 -6 0 8 -262144 -1 -1; #X obj -78 353 pix_draw; #X connect 0 0 2 0; #X connect 2 0 9 0; #X connect 3 0 4 0; #X connect 4 0 2 2; #X connect 5 0 6 0; #X connect 6 0 7 0; #X connect 7 0 2 1; #X connect 8 0 7 1;
The problem you see has to do with DirectShow using a different set of coordinates for drawing. An AVI clip opened with pix_film that also uses DirectShow should not have this problem. An updated version of GEM that does this can be found at http://gem.iem.at/download/SNAPSHOTS/gem-CVS20060914-w32-i686-bin-doc.zip
pix_draw is not the fastest way to get images drawn. Try pix_texture and the rectangle object. A 640x480 or 1024x768 window is filled with [rectangle 5.33 4].
On 12/8/06, cdriko@free.fr cdriko@free.fr wrote:
thanks for your help
About compositing 3D I can't use pix_snap because my GLoutput is in 1024 768 and I think that the computer will cry to pix_snap and pix_resize continuously
About the problem with the pix_mix object at the begining, I put a pix_flip object before the right inlet with a result strange : picture is alternativelly flipped up and down
the solution that I found is by the pix_film source object : before, I used a metro to changing number of image (to get the possibility to change the rate)
in fact, if I replace this metro by a derivating bang from the gemhead of the pix_film, the path pix_flip>pix_mix is working well
You can see the exemple patch next
the last problem is that, if I put a rate < 1 (in the |pd lecteur_video_boucle|) the hysteric flip is recoming
but it's now very better!!!!