jit.op alternative ?

Jul 15, 2007 at 2:17pm

jit.op alternative ?

Sorry to insist, but is there another way to mix several matrix ?

ex :

max v2;
#N vpatcher 10 59 818 482;
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P newex 502 242 138 196617 jit.matrix 4 char 320 240 @usesrcdim 1 @usedstdim 1;
#P newex 359 242 138 196617 jit.matrix 4 char 320 240 @usesrcdim 1 @usedstdim 1;
#P newex 215 241 138 196617 jit.matrix 4 char 320 240 @usesrcdim 1 @usedstdim 1;
#P newex 68 241 138 196617 jit.matrix 4 char 320 240 @usesrcdim 1 @usedstdim 1;
#P window linecount 1;
#P newex 173 292 258 196617 jit.expr @inputs 4 @expr “in[0] + in[1] in[2] + in[3] “;
#P newex 245 163 64 196617 jit.op @op +;
#P newex 324 130 64 196617 jit.op @op +;
#P window linecount 2;
#P newex 488 74 138 196617 jit.matrix 4 char 320 240 @usesrcdim 1 @usedstdim 1;
#P newex 345 74 138 196617 jit.matrix 4 char 320 240 @usesrcdim 1 @usedstdim 1;
#P window linecount 1;
#P newex 171 131 64 196617 jit.op @op +;
#P window linecount 2;
#P newex 201 73 138 196617 jit.matrix 4 char 320 240 @usesrcdim 1 @usedstdim 1;
#P newex 54 73 138 196617 jit.matrix 4 char 320 240 @usesrcdim 1 @usedstdim 1;
#P window linecount 1;
#P comment 59 35 142 196617 is there an alternative way ?;
#P connect 1 0 3 0;
#P connect 9 0 8 0;
#P connect 2 0 3 1;
#P connect 3 0 7 0;
#P connect 10 0 8 1;
#P connect 6 0 7 1;
#P connect 4 0 6 0;
#P connect 11 0 8 2;
#P connect 5 0 6 1;
#P connect 12 0 8 3;
#P pop;

#32891
Jul 15, 2007 at 3:35pm

Yup, you can do it on the GPU. See also the patch composite.shaders-
help.mxb in examples/jitter-examples/render/slab-helpers/.

#P window setfont “Sans Serif” 9.;
#P flonum 529 362 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 529 384 88 196617 param amount $1;
#P flonum 530 317 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 530 339 88 196617 param amount $1;
#P flonum 265 281 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 265 303 88 196617 param amount $1;
#P newex 241 399 164 196617 jit.gl.slab mix @file co.normal.jxs;
#P newex 241 366 164 196617 jit.gl.slab mix @file co.normal.jxs;
#P newex 241 330 164 196617 jit.gl.slab mix @file co.normal.jxs;
#P message 611 218 30 196617 read;
#P newex 585 242 107 196617 jit.qt.movie @adapt 1;
#P message 497 218 30 196617 read;
#P newex 471 242 107 196617 jit.qt.movie @adapt 1;
#P message 383 218 30 196617 read;
#P newex 357 242 107 196617 jit.qt.movie @adapt 1;
#P message 275 218 30 196617 read;
#P newex 221 450 262 196617 jit.gl.videoplane mix @transform_reset 2
@automatic 0;
#P newex 241 242 107 196617 jit.qt.movie @adapt 1;
#P newex 241 168 65 196617 qlim 33.333;
#P newex 221 145 30 196617 t b b;
#P toggle 66 36 15 0;
#P newex 66 62 51 196617 qmetro 2;
#P newex 66 100 58 196617 t b b erase;
#P newex 57 450 150 196617 jit.window mix @depthbuffer 1;
#P newex 66 253 85 196617 jit.gl.render mix;
#P connect 16 0 17 0;
#P connect 23 0 18 0;
#P connect 24 0 23 0;
#P connect 21 0 17 0;
#P connect 22 0 21 0;
#P connect 19 0 16 0;
#P connect 14 0 18 1;
#P connect 17 0 18 0;
#P connect 18 0 8 0;
#P connect 12 0 17 1;
#P connect 10 0 16 1;
#P connect 7 0 16 0;
#P connect 20 0 19 0;
#P connect 6 0 7 0;
#P fasten 6 0 10 0 246 213 362 213;
#P fasten 6 0 12 0 246 213 476 213;
#P fasten 6 0 14 0 246 213 590 213;
#P connect 15 0 14 0;
#P connect 13 0 12 0;
#P connect 11 0 10 0;
#P connect 5 0 8 0;
#P connect 2 0 0 0;
#P connect 2 2 0 0;
#P connect 9 0 7 0;
#P connect 5 1 6 0;
#P fasten 2 1 5 0 95 131 226 131;
#P connect 3 0 2 0;
#P connect 4 0 3 0;
#P window clipboard copycount 25;

#108851
Jul 15, 2007 at 4:08pm

Great !
thanks a lot

#108852

You must be logged in to reply to this topic.