Forums > Jitter

Slab processing of GL objects


VG
February 13, 2007 | 1:01 pm

Hi list,

I tried to make feedback of GL objects in the graphic board with slab,
with the following patch modified from the "jit.gl.slab-op-fb.pat" example
but there is something missing somewhere that I don’t understand…

Capture seems to be OK, as when I connect the jit.gl.texture named
"CaptureTexture" directly to the videoplane, I see the capture fine.
But as soon as it goes in the slab feeback loop, I lose it.
I tried either to connect directly the jit.gl.texture to the videoplane,
and also to use the message [texture ProcessedTexture ( ….

Can anybody help?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 626 332 44 196617 texture;
#P newex 10 243 58 196617 r GLupdate;
#P window setfont "Sans Serif" 36.;
#P comment 535 296 47 196644 2;
#P button 520 285 66 0;
#P window setfont "Sans Serif" 9.;
#P message 188 190 118 196617 capture CaptureTexture;
#P message 311 190 97 196617 texture MyTexture;
#P message 520 360 128 196617 texture processedTexture;
#P newex 513 175 58 196617 r GLupdate;
#P newex 128 190 58 196617 r GLupdate;
#P newex 28 118 58 196617 s GLupdate;
#P message 411 190 43 196617 text He;
#P message 579 175 83 196617 read dishes.mov;
#P newex 513 199 63 196617 jit.qt.movie;
#B color 5;
#P message 671 173 74 196617 read chilis.jpg;
#P newex 514 221 173 196617 jit.gl.texture foo @name MyTexture;
#B color 5;
#P message 318 402 79 196617 read op.add.jxs;
#P comment 131 -26 135 196617 Interpolation des couleurs;
#P comment 172 334 149 196617 xfade amount;
#P newex 128 308 68 196617 loadmess 0.9;
#P newex 128 356 29 196617 !- 1.;
#P flonum 128 332 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 221 381 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 221 402 92 196617 param in2scale $1;
#P flonum 128 381 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 128 402 85 196617 param inscale $1;
#P newex 113 463 70 196617 jit.gl.slab foo;
#P newex 520 389 187 196617 jit.gl.videoplane foo @scale 1.333 1. 1.;
#P newex 113 441 145 196617 jit.gl.slab foo @file op.add.jxs;
#P toggle 259 33 15 0;
#P message 259 51 45 196617 sync $1;
#P toggle 186 33 15 0;
#P newex 147 32 35 196617 sel 27;
#P message 186 51 68 196617 fullscreen $1;
#P newex 104 75 145 196617 jit.window foo @depthbuffer 1;
#P newex 102 32 40 196617 key;
#P number 51 30 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 6 30 20 0;
#P newex 6 56 55 196617 qmetro 20;
#P newex 6 77 55 196617 t b b erase;
#P newex 6 167 80 196617 jit.gl.render foo;
#P newex 113 281 263 196617 jit.gl.texture foo @name CaptureTexture @dim
800 600;
#P newex 128 225 316 196617 jit.gl.text3D foo @automatic 0 @position
-0.8 0. 0. @color 1. 1. 0.2;
#B color 5;
#P newex 113 497 273 196617 jit.gl.texture foo @name processedTexture
@dim 800 600;
#P window setfont "Sans Serif" 36.;
#P comment 368 92 47 196644 1;
#P button 353 82 66 0;
#P connect 43 0 4 0;
#P connect 43 0 17 0;
#P connect 43 0 19 0;
#P connect 43 0 2 0;
#P connect 24 0 25 0;
#P connect 24 0 23 0;
#P connect 17 0 19 0;
#P connect 4 0 17 0;
#P connect 44 0 18 0;
#P connect 8 0 7 0;
#P connect 7 0 6 0;
#P fasten 6 2 5 0 55 152 11 152;
#P connect 6 0 5 0;
#P connect 6 1 35 0;
#P connect 9 0 7 1;
#P fasten 15 0 11 0 264 70 109 70;
#P fasten 12 0 11 0 191 70 109 70;
#P fasten 29 0 17 0 323 428 118 428;
#P fasten 22 0 17 0 226 425 118 425;
#P fasten 20 0 17 0 133 422 118 422;
#P connect 19 0 2 0;
#P fasten 34 0 3 0 416 215 133 215;
#P connect 36 0 3 0;
#P fasten 39 0 3 0 316 215 133 215;
#P fasten 40 0 3 0 193 215 133 215;
#P fasten 10 0 13 0 107 51 144 51 144 30 152 30;
#P fasten 13 0 14 0 152 50 183 50 183 30 191 30;
#P connect 14 0 12 0;
#P connect 0 0 40 0;
#P connect 26 0 24 0;
#P connect 25 0 21 0;
#P connect 21 0 20 0;
#P fasten 19 0 17 1 118 482 324 482 324 436 253 436;
#P connect 16 0 15 0;
#P connect 0 0 39 0;
#P connect 23 0 22 0;
#P connect 0 0 34 0;
#P fasten 31 0 32 0 676 195 518 195;
#P fasten 33 0 32 0 584 194 518 194;
#P connect 37 0 32 0;
#P connect 32 0 30 0;
#P connect 41 0 38 0;
#P connect 38 0 18 0;
#P connect 0 0 33 0;
#P window clipboard copycount 45;


February 13, 2007 | 4:46 pm

Hi Vincent, you patch works fine for me (osx 10.4.8, ati x1600, Jitter
1.6.3b1). What are your system specs.

wes



VG
February 14, 2007 | 12:22 pm


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