Forums > Jitter

texture readback: I don't understand error messages in max window

August 6, 2007 | 4:10 pm

Hi all,

I’m giving texture readback and shared contexts another try. It seems things have improved, but here is something I don’t understand.

In the following patch I render twice on one render context, both times with a different shader. When I enable the metro I first see a stream of error messages. But once I assign the captured texture to an object, the errors disappear.

Steps to reproduce are inside the patch. It would be great if someone could explain me whether I do something wrong or this is a bug in jitter.

Thanks,
Mattijs

(note, please save and open before use)

#P comment 648 462 162 196617 2) change to cap2 and back to cap1 , no more error messages.;
#P window linecount 1;
#P newex 217 237 26 196617 s gs;
#P newex 243 96 26 196617 r gs;
#P newex 68 237 26 196617 s gs;
#P newex 721 256 69 196617 loadmess 0.2;
#P newex 821 172 66 196617 loadmess 25;
#P newex 721 172 69 196617 loadmess 0.1;
#P message 592 465 31 196617 cap2;
#P newex 558 484 82 196617 prepend texture;
#P message 558 465 31 196617 cap1;
#P newex 20 141 30 196617 t b b;
#P newex 40 162 30 196617 t b b;
#P newex 189 198 53 196617 t b b b b;
#P newex 203 276 50 196617 t b erase;
#P message 231 257 68 196617 capture cap2;
#P newex 325 218 182 196617 jit.gl.texture testcontext @name cap2;
#P message 217 219 82 196617 shader lumadisp;
#P newex 270 118 188 196617 jit.gl.texture testcontext @name movie;
#P message 68 219 61 196617 shader sine;
#P flonum 821 192 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 821 211 73 196617 param amp $1;
#P flonum 721 192 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 721 211 90 196617 param freq $1 $1;
#P flonum 721 276 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 721 295 88 196617 param amp $1 $1;
#P newex 721 314 312 196617 jit.gl.shader testcontext @name lumadisp @file td.lumadisplace.jxs;
#P newex 721 230 269 196617 jit.gl.shader testcontext @name sine @file td.sinefold.jxs;
#P newex 40 198 53 196617 t b b b b;
#P newex 343 484 177 196617 jit.gl.handle doftest2 @auto_rotate 1;
#P newex 343 504 256 196617 jit.gl.videoplane doftest2 @automatic 1 @texture cap1;
#P newex 20 457 50 196617 t b erase;
#P newex 325 198 182 196617 jit.gl.texture testcontext @name cap1;
#P newex 20 504 236 196617 jit.window doftest2 @depthbuffer 1 @pos 400 50;
#P newex 20 481 106 196617 jit.gl.render doftest2;
#P message 270 55 34 196617 reset;
#P newex 270 75 191 196617 jit.gl.handle testcontext @auto_rotate 0;
#P toggle 20 88 15 0;
#P newex 20 121 57 196617 qmetro 40;
#P newex 54 361 241 196617 jit.window testcontext @depthbuffer 1 @pos 20 50;
#P newex 54 276 50 196617 t b erase;
#P newex 270 96 401 196617 jit.gl.gridshape testcontext @shape cube @automatic 1 @texture movie @color 1 1 1 1;
#P window linecount 2;
#P newex 54 325 310 196617 jit.gl.render testcontext @depth_enable 1 @smooth_shading 1 @erase_color 1 0 0 1 @shared_context doftest2 @camera 0. 0. 6.;
#P window linecount 1;
#P message 82 257 68 196617 capture cap1;
#P window linecount 2;
#P comment 39 86 162 196617 1) turn metro on , error messages appear in the max window;
#P connect 24 0 23 0;
#P connect 38 0 24 0;
#P connect 19 0 18 0;
#P connect 20 0 19 0;
#P connect 39 0 20 0;
#P connect 23 0 17 0;
#P connect 21 0 17 0;
#P connect 22 0 21 0;
#P connect 37 0 22 0;
#P connect 34 0 35 0;
#P connect 36 0 35 0;
#P connect 15 0 14 0;
#P connect 35 0 14 0;
#P connect 41 0 3 0;
#P connect 8 0 3 0;
#P connect 9 0 8 0;
#P connect 31 3 29 0;
#P connect 27 0 42 0;
#P connect 31 2 27 0;
#P connect 31 1 30 0;
#P connect 32 1 31 0;
#P connect 16 3 1 0;
#P connect 25 0 40 0;
#P connect 16 2 25 0;
#P connect 1 0 2 0;
#P connect 29 0 2 0;
#P connect 4 1 2 0;
#P connect 4 0 2 0;
#P connect 30 1 2 0;
#P connect 30 0 2 0;
#P connect 16 1 4 0;
#P connect 32 0 16 0;
#P connect 33 1 32 0;
#P connect 13 1 10 0;
#P connect 13 0 10 0;
#P connect 33 0 13 0;
#P connect 6 0 33 0;
#P connect 7 0 6 0;


Viewing 1 post (of 1 total)