Roman Haefeli wrote:
On Sun, 2008-05-25 at 14:11 +0200, yves degoyon wrote:
in fact, it seems that all rendering in single-buffer mode doesn't work ( see attached patch for testing ) and, as the pixels capture only works in single-buffer mode, all objects depending on it fail, including gem2pdp, pix_write and pix_snap.
if i am not totally mistaken (or misunderstanding the underlying concept of Gem), i used to use [pix_snap] or [pix_write] in double buffer mode. it's just a matter of correct order to get expected results. what makes you think, that those classes only work in single buffer mode?
nothing 'makes me think', that's what i get with the attached test patch, gem from cvs on an nvidia 7000
sevy
roman
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
#N canvas 5 49 822 360 10; #X obj 33 16 gemwin; #X obj 521 -167 gemhead; #X floatatom 629 -95 0 0 0 0 - - -; #X obj 521 -107 color; #X msg 623 -162 1 1 1; #X obj 521 -56 rotateXYZ; #X obj 392 -141 world_light; #N canvas 203 0 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 79 -76 pd init; #X msg 623 -197 1 1 0; #X obj 669 -56 metro 10; #X obj 708 -28 + 1; #X obj 668 -29 f; #X msg 681 -94 bang; #X obj 681 -123 loadbang; #X msg 79 -114 dimen 320 240; #X obj 79 -140 loadbang; #X msg 200 -111 buffer 1; #X msg 97 4 buffer 2; #X obj 519 28 cube; #X msg 65 -201 create , 1; #X msg 71 -174 0 , destroy; #X obj 520 -13 pix_write; #X msg 387 -78 file /tmp/gem.jpg; #X msg 385 -36 bang; #X msg 197 -171 1; #X text 264 -109 <-- click here and rendering dies; #X text 108 -36 click here and it will save a black image -->; #X text 146 -200 <-- normal rendering; #X connect 1 0 3 0; #X connect 1 0 6 0; #X connect 2 0 5 1; #X connect 2 0 5 2; #X connect 3 0 5 0; #X connect 4 0 3 1; #X connect 5 0 21 0; #X connect 7 0 0 0; #X connect 8 0 3 1; #X connect 9 0 11 0; #X connect 10 0 11 1; #X connect 11 0 10 0; #X connect 11 0 2 0; #X connect 12 0 9 0; #X connect 13 0 12 0; #X connect 14 0 0 0; #X connect 15 0 14 0; #X connect 16 0 0 0; #X connect 17 0 0 0; #X connect 19 0 0 0; #X connect 20 0 0 0; #X connect 21 0 18 0; #X connect 22 0 21 0; #X connect 23 0 21 0; #X connect 24 0 0 0;