Forums > Jitter

please help — 'no data available from jit.matrix'

November 19, 2007 | 1:16 am

Hi jitter list

I am trying to extract a 512×1 1-plane matrix from a 10-plane 512×512
matrix (control matrix for nurb) using jit.gl.nurbs. But when I send a
rand message to the nurbs obj, then bang to render,

No data available from jit.matrix

appears in the console.

Searched the forums for this message to no avail,

Todd

max v2;
#N vpatcher 5 45 906 664;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 695 211 32 196617 print;
#P newex 695 190 72 196617 jit.matrixinfo;
#P newex 513 63 32 196617 print;
#P message 513 46 43 196617 -mark-;
#P button 74 25 15 0;
#P newex 74 42 30 196617 t b b;
#P user jit.cellblock 418 190 691 387 3 9 512 1 45 17 0 1 1 0 0 0 1 1
1 0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0
4 0 0 0;
#P newex 431 130 124 196617 pak offset 0 0;
#P newex 418 159 186 196617 jit.submatrix @dim 512 1 @offset 0 0;
#P message 104 107 56 196617 dim $1 $1;
#P newex 287 38 40 196617 cycle~;
#P user jit.cellblock 134 159 407 356 3 9 512 512 45 17 0 1 1 0 0 0 1
1 1 0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1
0 4 0 0 0;
#P toggle 168 367 15 0;
#P message 168 385 55 196617 floating $1;
#P toggle 94 367 15 0;
#P newex 55 366 35 196617 sel 27;
#P message 94 385 68 196617 fullscreen $1;
#P newex 10 366 40 196617 key;
#P newex 58 405 164 196617 jit.window ter.foo @depthbuffer 1;
#P newex 11 86 50 196617 t b erase;
#P newex 11 66 45 196617 jit.qball;
#P toggle 11 26 15 0;
#P newex 11 43 52 196617 metro 20;
#P newex 11 160 99 196617 jit.gl.render ter.foo;
#P toggle 194 90 15 0;
#P message 194 107 84 196617 matrixoutput $1;
#P message 162 107 30 196617 rand;
#P newex 134 126 94 196617 jit.gl.nurbs ter.foo;
#P connect 6 0 5 0;
#P fasten 22 0 7 0 79 62 16 62;
#P connect 5 0 7 0;
#P connect 7 0 8 0;
#P fasten 0 0 4 0 139 148 16 148;
#P fasten 8 1 4 0 56 108 16 108;
#P connect 8 0 4 0;
#P fasten 10 0 12 0 15 385 52 385 52 364 60 364;
#P fasten 14 0 9 0 173 402 63 402;
#P fasten 11 0 9 0 99 402 63 402;
#P connect 23 0 22 0;
#P fasten 12 0 13 0 60 385 91 385 91 364 99 364;
#P connect 13 0 11 0;
#P fasten 18 0 0 0 109 124 139 124;
#P fasten 1 0 0 0 167 124 139 124;
#P fasten 2 0 0 0 199 124 139 124;
#P connect 0 0 16 0;
#P connect 22 1 1 0;
#P connect 15 0 14 0;
#P connect 3 0 2 0;
#P fasten 0 0 19 0 139 148 423 148;
#P fasten 20 0 19 0 436 149 423 149;
#P connect 19 0 21 0;
#P connect 24 0 25 0;
#P fasten 19 0 26 0 423 183 700 183;
#P connect 26 0 27 0;
#P pop;


November 19, 2007 | 6:01 am

i looked at your patch, and it seemed like the second jit.cellblock was causing that error.

i sent the matrixout of the nurbs to a jit.unpack 12 (nurbs outputs 12 planes, not 10). i took the first output of the unpack and sent that to the jit.submatrix (with a dim of 20 1).
i connected this output to a jit.print, and the data appeared as expected.

i’m not sure why jit.cellblock was having issues with that matrix.

-rob


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