Forums > Jitter

fsaa and texture readback problem – Jit. 1.62rc1 XP

September 25, 2006 | 10:21 pm

this patch does a shared context rendering for a preview window, and also does a texture readback for recording. The Output window has fsaa on. This all is fine on my XP box with a 6800GS card, and fine on a mac mini, and fine on my G4 desktop (radeon 9800). On a dell inspiron 6400 with a 256MB ATI x1400 graphics laptop, though, if fsaa is on, the texture readback doesn’t work.

#P window setfont "Sans Serif" 9.;
#P window linecount 3;
#P comment 314 237 100 9109513 on a Dell inspiron 6400 w/ ati x1400 video card;
#P toggle 245 46 15 0;
#P window linecount 1;
#P message 245 65 44 9109513 fsaa $1;
#P newex 294 39 56 9109513 loadmess 1;
#P newex 22 149 56 9109513 loadmess 1;
#N vpatcher 25 70 367 249;
#P window setfont "Sans Serif" 9.;
#P newex 273 61 31 9109513 s pre;
#P newex 50 93 33 9109513 s last;
#P newex 234 69 34 9109513 s first;
#P newex 196 113 47 9109513 s 3plane;
#P newex 110 95 51 9109513 s 3dplane;
#P newex 193 135 45 9109513 s 2plane;
#P newex 143 117 45 9109513 s 1plane;
#P newex 201 92 40 9109513 s drive;
#P newex 96 117 45 9109513 s 0plane;
#P newex 78 50 131 9109513 t b b b b b b b b erase b;
#P inlet 78 30 15 0;
#P outlet 78 84 15 0;
#P connect 2 1 10 0;
#P connect 1 0 2 0;
#P connect 2 8 0 0;
#P connect 2 0 0 0;
#P connect 2 1 3 0;
#P connect 2 2 7 0;
#P connect 2 3 5 0;
#P connect 2 4 6 0;
#P connect 2 5 8 0;
#P connect 2 6 4 0;
#P connect 2 7 9 0;
#P connect 2 9 11 0;
#P pop;
#P newobj 22 247 41 9109513 p bangs;
#N vpatcher 25 70 625 470;
#P window setfont "Sans Serif" 9.;
#P message 32 80 78 9109513 read dishes.mov;
#P flonum 225 177 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 221 200 37 9109513 rate $1;
#P message 194 198 27 9109513 stop;
#P message 155 197 32 9109513 start;
#P newex 119 120 41 9109513 r drive;
#P outlet 42 250 15 0;
#P newex 32 57 45 9109513 loadbang;
#P message 109 78 28 9109513 read;
#P newex 40 223 165 9109513 jit.qt.movie 320 240 @autostart 1;
#B color 5;
#P connect 2 0 9 0;
#P connect 7 0 0 0;
#P fasten 1 0 0 0 114 188 45 188;
#P connect 5 0 0 0;
#P connect 6 0 0 0;
#P connect 4 0 0 0;
#P connect 9 0 0 0;
#P connect 0 0 3 0;
#P connect 8 0 7 0;
#P pop;
#P newobj 106 201 35 9109513 p mov;
#N vpatcher 25 70 625 470;
#P window setfont "Sans Serif" 9.;
#P message 32 80 73 9109513 read dozer.mov;
#P flonum 225 177 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 221 200 37 9109513 rate $1;
#P message 194 198 27 9109513 stop;
#P message 155 197 32 9109513 start;
#P newex 119 120 41 9109513 r drive;
#P outlet 42 250 15 0;
#P newex 32 57 45 9109513 loadbang;
#P message 109 78 28 9109513 read;
#P newex 40 223 165 9109513 jit.qt.movie 320 240 @autostart 1;
#B color 5;
#P connect 2 0 9 0;
#P connect 9 0 0 0;
#P connect 4 0 0 0;
#P connect 6 0 0 0;
#P connect 5 0 0 0;
#P fasten 1 0 0 0 114 188 45 188;
#P connect 7 0 0 0;
#P connect 0 0 3 0;
#P connect 8 0 7 0;
#P pop;
#P newobj 148 202 35 9109513 p mov;
#P comment 311 68 100 9109513 rasterize onoff;
#P comment 296 208 100 9109513 image to be recorded;
#P toggle 295 67 15 0;
#P user jit.pwindow 294 85 162 122 0 1 0 0 1 0;
#P user jit.pwindow 115 76 82 62 0 1 0 0 1 0;
#X name preview;
#P user jit.fpsgui 22 361 60 9109513 0;
#P window setfont "Sans Serif" 14.;
#N vpatcher 493 55 1179 604;
#P origin 18 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 0;
#P newex 12 136 61 9109514 loadmess 1;
#P inlet 232 29 15 0;
#P outlet 277 459 15 0;
#P toggle 11 159 15 0;
#P newex 296 316 38 9109514 r drive;
#P newex 295 341 29 9109514 gate;
#P newex 225 73 27 9109514 t i i;
#P newex 380 124 32 9109514 sel 1;
#P window setfont "Sans Serif" 9.;
#P newex 416 123 33 9109513 zl reg;
#P window setfont "Sans Serif" 10.;
#P newex 299 417 43 9109514 qlim 30;
#P window setfont "Sans Serif" 9.;
#P newex 296 370 375 9109513 jit.gl.texture Output @name rec @dim 160 120 @adapt 1 @colormode rgb @mode static;
#P message 180 123 118 9109513 usetexture rec , to_texture;
#P window setfont "Sans Serif" 10.;
#P newex 299 438 138 9109514 jit.resamp @yscale -0.99;
#P window setfont "Sans Serif" 9.;
#P newex 416 145 50 9109513 deferlow;
#P newex 416 193 27 9109513 t b l;
#P newex 416 171 64 9109513 prepend dim;
#N comlet window size;
#P inlet 416 101 15 0;
#P toggle 214 29 15 0;
#P window setfont "Sans Serif" 10.;
#P newex 296 393 143 9109514 jit.matrix 4 char 320 240;
#P newex 180 72 31 9109514 r pre;
#P newex 180 97 29 9109514 gate;
#P newex 299 460 82 9109514 s OutputRaster;
#P window setfont "Sans Serif" 9.;
#P newex 138 235 18 9109513 t l;
#P newex 127 170 41 9109513 sel 1 0;
#P newex 10 290 310 9109513 jit.gl.videoplane preview @scale 1.333 1 @texture previewrender;
#P message 142 215 148 9109513 shared_context , copy_texture;
#P newex 10 221 57 9109513 qmetro 33;
#P newex 10 242 55 9109513 t b erase b;
#P newex 10 267 90 9109513 jit.gl.render preview;
#P window linecount 2;
#P newex 10 318 240 9109513 jit.gl.texture preview @name previewrender @dim 160 120 @adapt 1 @colormode rgb @mode static;
#P window linecount 1;
#P message 128 194 258 9109513 shared_context preview , copy_texture previewrender;
#P window setfont "Sans Serif" 10.;
#P newex 12 177 19 9109514 t i;
#P outlet 138 257 15 0;
#P window setfont "Sans Serif" 9.;
#P message 416 221 133 9109513 colormode rgb , mode static;
#P button 446 91 15 0;
#P connect 3 0 8 0;
#P connect 8 0 7 0;
#P fasten 7 0 6 0 15 263 15 263;
#P fasten 7 1 6 0 52 262 15 262;
#P connect 1 0 5 0;
#P connect 34 0 31 0;
#P connect 31 0 3 0;
#P connect 3 0 11 0;
#P connect 11 0 4 0;
#P connect 4 0 12 0;
#P connect 9 0 12 0;
#P connect 23 0 2 0;
#P connect 12 0 2 0;
#P connect 11 1 9 0;
#P connect 28 1 14 0;
#P connect 14 0 23 0;
#P connect 15 0 14 1;
#P connect 17 0 28 0;
#P connect 33 0 28 0;
#P connect 22 0 32 0;
#P connect 28 1 29 0;
#P connect 29 0 24 0;
#P connect 20 1 16 0;
#P connect 24 0 16 0;
#P connect 16 0 25 0;
#P connect 25 0 22 0;
#P connect 22 0 13 0;
#P connect 30 0 29 1;
#P connect 28 0 27 0;
#P connect 0 0 26 0;
#P connect 18 0 26 0;
#P connect 27 0 26 0;
#P connect 26 0 21 0;
#P connect 21 0 19 0;
#P connect 19 0 20 0;
#P connect 20 0 1 0;
#P pop;
#P newobj 64 281 117 9109518 p rasterizeOutput;
#N vpatcher 551 255 1108 654;
#P origin -31 0;
#P inlet 200 118 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 3 54 50 9109513 route rect;
#P newex 378 288 23 9109513 abs;
#P newex 348 309 46 9109513 pack 0 0;
#P newex 379 267 27 9109513 -;
#P message 137 158 63 9109513 size 640 480;
#P outlet 355 330 15 0;
#P newex 69 166 48 9109513 t getrect l;
#P newex 339 290 23 9109513 abs;
#P newex 339 265 27 9109513 -;
#P newex 339 239 76 9109513 unpack 0 0 0 0;
#P newex 339 215 56 9109513 route rect;
#N vpatcher 237 607 781 783;
#P origin -30 9;
#P window setfont "Sans Serif" 9.;
#P hidden newex 337 340 93 9109513 s fullscreencoords;
#P hidden newex 348 294 62 9109513 prepend set;
#P message 318 94 88 9109513 0 0 0 1280 1024;
#P hidden newex 309 367 40 9109513 t 0 l 1;
#P hidden newex 119 424 82 9109513 prepend floating;
#P hidden newex 468 271 78 9109513 prepend coords;
#P hidden newex 472 236 88 9109513 v fullscreen_mon;
#P hidden newex 474 206 73 9109513 r fullscreenon;
#P hidden newex 538 50 76 9109513 r fullscreenoff;
#P hidden newex 124 391 67 9109513 prepend rect;
#P hidden newex 242 47 60 9109513 loadmess 1;
#P hidden newex 509 89 20 9109513 t b;
#P comment 152 113 124 9109513 no hardware acceleration;
#P hidden message 83 226 58 9109513 noaccel $1;
#P toggle 135 113 15 0;
#P comment 152 132 259 9109513 sync (only functional if the "no hw acceleration" is off);
#P hidden message 196 235 46 9109513 sync $1;
#P toggle 135 132 15 0;
#P hidden message 139 231 44 9109513 fsaa $1;
#P comment 152 93 63 9109513 anti-aliased;
#P toggle 135 93 15 0;
#P button 1 85 15 0;
#P comment 19 84 54 9109513 make 320;
#P hidden message 5 173 107 9109513 rect 10 100 330 340;
#P hidden message 83 299 101 9109513 rect 30 30 670 510;
#P hidden message 91 279 101 9109513 rect 30 30 830 630;
#P button 2 63 15 0;
#P comment 19 63 54 9109513 make 640;
#P hidden message 487 89 14 9109513 0;
#P toggle 135 25 15 0;
#P button 318 75 15 0;
#P comment 335 75 104 9109513 get monitor 2 coords;
#P button 318 58 15 0;
#P comment 337 58 104 9109513 get monitor 1 coords;
#P hidden newex 277 341 51 9109513 zl slice 1;
#P hidden newex 277 293 67 9109513 route coords;
#P hidden message 302 250 49 9109513 coords 1;
#P hidden message 283 223 49 9109513 coords 0;
#P hidden newex 277 272 61 9109513 jit.displays;
#P hidden newex 124 365 93 9109513 prepend fullscreen;
#P comment 152 70 55 9109513 fullscreen;
#P toggle 135 70 15 0;
#P hidden outlet 77 397 15 0;
#P comment 152 48 66 9109513 doublebuffer;
#P toggle 135 48 15 0;
#P hidden newex 104 334 104 9109513 prepend doublebuffer;
#P comment 152 27 150 9109513 float the window (esc unfloats);
#P button 2 43 15 0;
#P comment 19 43 54 9109513 make 800;
#P button 2 22 15 0;
#P hidden message 105 258 95 9109513 rect 0 0 1024 768;
#P comment 19 22 60 9109513 make 1024;
#P hidden connect 40 0 28 0;
#P hidden connect 30 0 28 0;
#P hidden connect 47 0 9 0;
#P hidden connect 1 0 9 0;
#P hidden connect 26 0 9 0;
#P hidden connect 27 0 9 0;
#P hidden connect 28 0 9 0;
#P hidden connect 38 0 9 0;
#P hidden connect 35 0 9 0;
#P hidden connect 33 0 9 0;
#P hidden connect 12 0 9 0;
#P hidden connect 6 0 9 0;
#P hidden connect 42 0 9 0;
#P hidden connect 37 0 38 0;
#P hidden connect 25 0 27 0;
#P hidden connect 4 0 26 0;
#P hidden connect 7 0 6 0;
#P hidden connect 2 0 1 0;
#P hidden connect 22 0 47 0;
#P hidden connect 23 0 47 0;
#P hidden connect 48 2 47 0;
#P hidden connect 10 0 12 0;
#P hidden connect 48 1 42 0;
#P hidden connect 41 0 7 0;
#P hidden connect 31 0 33 0;
#P hidden connect 34 0 35 0;
#P hidden connect 46 0 13 0;
#P hidden connect 15 0 13 0;
#P hidden connect 14 0 13 0;
#P hidden connect 13 0 16 0;
#P hidden connect 16 0 17 0;
#P hidden connect 19 0 14 0;
#P hidden connect 21 0 15 0;
#P hidden connect 17 1 48 0;
#P hidden connect 50 0 49 0;
#P hidden connect 17 1 51 0;
#P hidden connect 16 0 50 0;
#P hidden connect 45 0 46 0;
#P hidden connect 44 0 45 0;
#P hidden connect 43 0 23 0;
#P hidden connect 43 0 40 0;
#P pop;
#P newobj 69 57 90 9109513 p WindowProperties;
#P newex 106 113 45 9109513 loadbang;
#P window linecount 1;
#P newex 108 212 390 9109513 jit.window Output @visible 1 @floating 0 @grow 0 @rect 10 100 330 340 @fsaa 1 @sync 0;
#P message 106 137 70 9109513 size 320 240;
#P outlet 4 170 15 0;
#P newex 5 142 39 9109513 t front;
#P newex 3 73 49 9109513 deferlow;
#P newex 5 120 49 9109513 deferlow;
#P newex 4 97 20 9109513 t b;
#P connect 8 0 19 0;
#P connect 19 0 2 0;
#P connect 2 0 0 0;
#P connect 3 0 4 0;
#P connect 0 0 1 0;
#P connect 1 0 3 0;
#P connect 5 0 13 0;
#P connect 15 0 13 0;
#P connect 8 0 13 0;
#P connect 7 0 5 0;
#P connect 20 0 6 0;
#P connect 13 0 6 0;
#P connect 13 1 6 0;
#P connect 6 1 9 0;
#P connect 9 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 12 0;
#P connect 12 0 17 0;
#P connect 17 0 14 0;
#P connect 10 2 11 1;
#P connect 16 0 18 0;
#P connect 10 1 16 0;
#P connect 18 0 17 1;
#P connect 10 3 16 1;
#P pop;
#P newobj 194 244 75 9109518 p window;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P newex 22 323 222 9109513 jit.gl.render Output @erase_color 0 0 0 1 @scale 1.33333 1. 1. @ortho 2 @camera 0 0 2;
#P window linecount 1;
#N vpatcher 351 197 1200 817;
#P origin -220 -12;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 111 53 59 9109513 loadmess 0.5;
#P flonum 72 52 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 82 168 29 9109513 * 1.;
#P newex 14 189 29 9109513 * 1.;
#P window linecount 1;
#P newex 37 96 80 9109513 scale 0. 1. 1. 0.;
#P newex 145 321 65 9109513 r GLdrawto1;
#P newex 28 322 45 9109513 r 2plane;
#N comlet ch B;
#P inlet 323 92 15 0;
#P objectname chB;
#N comlet ch A;
#P inlet 365 92 15 0;
#P objectname chA;
#P newex 14 56 42 9109513 r xfade;
#P newex 20 155 28 9109513 !- 1.;
#P message 14 212 82 9109513 color 1. 1. 1. $1;
#P newex 60 365 22 9109513 thr;
#P message 115 195 82 9109513 color 1. 1. 1. $1;
#P newex 318 318 45 9109513 r 1plane;
#P window linecount 2;
#P newex 271 360 260 9109513 jit.gl.videoplane Output @depth_enable 0 @blend_enable 1 @color 1. 1. 1. 1. @automatic 0 @blend_mode 6 1;
#P newex 54 395 260 9109513 jit.gl.videoplane Output @depth_enable 0 @blend_enable 1 @color 1. 1. 1. 0. @automatic 0 @blend_mode 6 1;
#P connect 6 0 13 0;
#P connect 13 0 5 0;
#P connect 12 0 6 0;
#P connect 7 0 12 0;
#P connect 15 0 12 0;
#P connect 4 0 0 0;
#P connect 11 0 4 0;
#P lcolor 8;
#P connect 5 0 4 0;
#P lcolor 8;
#P connect 10 0 4 0;
#P lcolor 8;
#P connect 9 0 4 0;
#P connect 16 0 15 0;
#P connect 12 0 14 0;
#P connect 14 0 3 0;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P connect 11 0 1 0;
#P connect 8 0 1 0;
#P pop;
#P newobj 114 232 43 9109513 p planes;
#P newex 22 222 43 9109513 jit.qball;
#P toggle 22 173 15 0;
#P newex 22 197 45 9109513 metro 2;
#P newex 22 282 22 9109513 thr;
#P window linecount 2;
#P comment 116 139 100 9109513 preview window from shared context;
#P connect 18 0 3 0;
#P connect 3 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 17 0;
#P connect 17 0 1 0;
#P connect 1 0 6 0;
#P connect 8 0 6 0;
#P connect 6 0 9 0;
#P connect 12 0 8 0;
#P connect 16 0 5 0;
#P connect 15 0 5 1;
#P connect 7 1 8 1;
#P connect 20 0 7 0;
#P connect 19 0 21 0;
#P connect 21 0 20 0;
#P connect 19 0 12 0;
#P connect 8 1 11 0;
#P window clipboard copycount 23;


September 25, 2006 | 11:46 pm

On Sep 25, 2006, at 3:21 PM, pnyboer wrote:

>
> this patch does a shared context rendering for a preview window,
> and also does a texture readback for recording. The Output window
> has fsaa on. This all is fine on my XP box with a 6800GS card, and
> fine on a mac mini, and fine on my G4 desktop (radeon 9800). On a
> dell inspiron 6400 with a 256MB ATI x1400 graphics laptop, though,
> if fsaa is on, the texture readback doesn’t work.

Sorry Peter, but this patch is kind of a mess. Please strip this
down, and/or document further if you want us to look into the issue.
You need to help us help you.

Regardless, in situations like this which seem to be HW dependent and
on XP, I would always first try updating the driver. However, with
FSAA enabled there still might be issues with this card or driver and
the texture copy.

The next thing I’d try is sending the jit.gl.texture through an
instance of jit.gl.slab for prior to readback. In general I would
require this for texture readback, but it seems that some instances
work fine without that requirement.

-Joshua


September 26, 2006 | 10:36 pm

ok, sorry for the mess. scary thing is, that IS a stripped down version :). But I will strip some more and post later.
drivers were updated, btw.
i did try the gl.slab recommendation, and that improves things in general, however, i don’t know if it fixes the problem on the Dell laptop. I will keep u posted….

thanks,

P.


Viewing 3 posts - 1 through 3 (of 3 total)