ola, cyrille,
well, yes it's obvious i'm almost new to gem, but things are getting better and worse ( see attached patch ) :
as expected, this patch did not draw anything in single buffer. you have to bang the gemhead.
i do it now at each cube rotation, what i get is a double rendering in double buffer mode and still _no_ rendering in gem window in single buffer mode ..
_but_, one thing is better, i get frames captured in pdp window in single buffer mode, that's the only mode that works with a pdp_xv
something is wrong in my patch now?
this patch have also an other problem : pix_write is before the cube. so you just write the image before rendering the cube. if you swap both objects, then everything will work as expected in both mode.
yeh here you're right
ciao, sevy
#N canvas 188 58 909 767 12; #X obj 38 229 gemwin; #X msg 70 12 create; #X obj 526 46 gemhead; #X msg 76 39 destroy; #X msg 15 88 1; #X msg 14 113 0; #X floatatom 612 120 0 0 0 0 - - -; #X obj 526 106 color; #X msg 628 51 1 1 1; #X obj 526 157 rotateXYZ; #N canvas 203 49 600 400 init 0; #X obj 73 30 loadbang; #X obj 73 53 t b b; #X msg 113 77 reset; #X msg 73 103 lighting 1; #X obj 73 129 outlet; #X connect 0 0 1 0; #X connect 1 0 3 0; #X connect 1 1 2 0; #X connect 2 0 4 0; #X connect 3 0 4 0; #X restore 92 156 pd init; #X msg 628 16 1 1 0; #X text 217 440 gem2pdp : bridge between gem and PDP; #X text 218 458 written by Yves Degoyon ( ydegoyon@free.fr ); #X text 70 259 ========================================================== ; #X text 70 313 ========================================================== ; #X text 292 19 Gem field; #X text 79 393 PDP field; #X obj 278 281 gem2pdp; #X msg 151 280 stop; #X obj 127 282 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X obj 198 280 metro 70; #X obj 239 336 pdp_spigot; #X obj 355 327 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X msg 126 360 dim 320 240; #X obj 43 359 loadbang; #X obj 674 157 metro 10; #X obj 713 185 + 1; #X obj 673 184 f; #X msg 686 119 bang; #X obj 686 90 loadbang; #X obj 239 362 pdp_transform; #X obj 377 365 hdl 15 1 0 6 empty empty empty 0 -6 0 8 -262144 -1 -1 0; #X text 352 281 Convert to PDP frames; #X msg 84 99 dimen 320 240; #X obj 84 73 loadbang; #X obj 543 362 pdp_rec~; #X msg 587 318 open /tmp/output.mov; #X msg 643 356 start; #X msg 655 386 stop; #X floatatom 543 395 5 0 0 0 - - -; #X msg 562 287 compressor divx; #X msg 100 185 buffer 1; #X msg 102 217 buffer 2; #X msg 406 230 bang; #X msg 527 12 bang; #X obj 526 231 pix_write; #X obj 239 390 pdp_xv; #X obj 526 194 cube; #X obj 292 111 world_light; #X obj 292 82 gemhead; #X msg 378 192 file /tmp/gem gif; #X connect 1 0 0 0; #X connect 2 0 7 0; #X connect 3 0 0 0; #X connect 4 0 0 0; #X connect 5 0 0 0; #X connect 6 0 9 1; #X connect 6 0 9 2; #X connect 6 0 45 0; #X connect 7 0 9 0; #X connect 8 0 7 1; #X connect 9 0 48 0; #X connect 10 0 0 0; #X connect 11 0 7 1; #X connect 18 1 22 0; #X connect 18 1 36 0; #X connect 19 0 21 0; #X connect 20 0 21 0; #X connect 21 0 18 0; #X connect 22 0 47 0; #X connect 22 1 31 0; #X connect 23 0 22 1; #X connect 24 0 47 0; #X connect 25 0 24 0; #X connect 26 0 28 0; #X connect 27 0 28 1; #X connect 28 0 27 0; #X connect 28 0 6 0; #X connect 29 0 26 0; #X connect 30 0 29 0; #X connect 31 0 47 0; #X connect 32 0 31 1; #X connect 34 0 0 0; #X connect 35 0 34 0; #X connect 36 0 40 0; #X connect 37 0 36 0; #X connect 38 0 36 0; #X connect 39 0 36 0; #X connect 41 0 36 0; #X connect 42 0 0 0; #X connect 43 0 0 0; #X connect 44 0 46 0; #X connect 45 0 2 0; #X connect 48 0 46 0; #X connect 50 0 49 0; #X connect 51 0 46 0;