[maxmspjitter]NooB

Aug 30, 2007 at 1:57pm

[maxmspjitter]NooB

Hello list in the jittertutorial i discovered this:

Appendix B of the Jittertutorial16 mentions a connection matrix.
like: jit_matrix [geometry matrix] [connections matrix] [draw
primitive].

Can someone give me an working example ?

further:
The jit.gl.mesh object accepts these matrices (vertex, texcoord,
normal, color, specular, edgeflag, tangent, bitangent, and index data).

Is there a working example ?

Can you achieve the same result as with jit.gl.model ?

Next i’ll send a DemoPatch with a switch between [matrix]
[drawprimitive]
and [matrix] [connections matrix] [drawprimitive] so far as i though
i got it.

Regards
D. Okma

max v2;
#N vpatcher 8 50 765 529;
#P origin -37 15;
#P button 308 172 13 0;
#P window setfont “Sans Serif” 9.;
#P message 153 126 81 196617 color 1. 1. 1. 1.;
#P message 153 146 112 196617 erase_color 0. 0. 0. 1.;
#P message 419 180 22 196617 < 4;
#B color 5;
#P window setfont “Sans Serif” 14.;
#P message 308 147 54 196622 Switch;
#P button 401 179 15 0;
#P window setfont “Sans Serif” 9.;
#P message 487 43 22 196617 3 >;
#B color 5;
#P message 278 49 22 196617 2 >;
#B color 5;
#P message 99 52 22 196617 < 1;
#B color 5;
#P number 361 270 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user gswitch2 323 170 39 32 1 0;
#P window setfont “Sans Serif” 12.;
#P number 540 133 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 504 133 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 468 133 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 389 133 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 9.;
#P newex 373 179 27 196617 t b l;
#P newex 373 157 115 196617 pak setcell 0 0 val 0 0;
#P newex 381 201 103 196617 jit.matrix 2 long 4 1;
#P window setfont “Sans Serif” 12.;
#P newex 352 235 39 196620 zl join;
#P window setfont “Sans Serif” 9.;
#P newex 389 312 60 196617 prepend set;
#P window setfont Times 10.;
#P comment 398 270 95 1310730 Drawing Primitive;
#P window setfont “Sans Serif” 9.;
#P user ubumenu 360 289 68 196617 0 1 1 0;
#X add points;
#X add lines;
#X add line_strip;
#X add line_loop;
#X add triangles;
#X add tri_strip;
#X add tri_fan;
#X add quads;
#X add quad_strip;
#X add polygon;
#X add tri_grid;
#X add quad_grid;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P newex 323 333 85 196617 append quad_grid;
#P newex 511 100 61 196617 jit.fill geom;
#P window linecount 4;
#P message 511 43 96 196617 plane 0 , 1 -1 -1 1 , plane 1 , -1 -1
1 1 , plane 3 , 1 0 0 1 , plane 4 , 1 1 0 0;
#P window linecount 1;
#P newex 352 113 144 196617 jit.matrix geom 5 float32 4 1;
#P button 78 52 15 0;
#P newex 78 78 79 196617 t b b 6 b b b;
#P toggle 123 184 15 0;
#P message 123 207 94 196617 smooth_shading $1;
#P message 27 146 112 196617 erase_color 1. 1. 1. 1.;
#P toggle 222 184 15 0;
#P message 222 207 90 196617 lighting_enable $1;
#P toggle 35 184 15 0;
#P message 35 207 81 196617 depth_enable $1;
#P message 139 113 14 196617 1;
#P newex 304 89 114 196617 t b b erase;
#P newex 304 355 172 196617 jit.gl.render Raam @camera 0. 0. 4.;
#P newex 413 335 261 196617 jit.window Raam @border 1 @floating 1
@depthbuffer 1;
#P number 335 49 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 304 69 52 196617 metro 50;
#P toggle 304 49 15 0;
#P connect 14 0 11 0;
#P fasten 6 0 8 0 144 181 40 181;
#P connect 8 0 7 0;
#P connect 15 0 14 0;
#P fasten 6 0 13 0 144 181 128 181;
#P connect 13 0 12 0;
#P connect 14 1 6 0;
#P fasten 6 0 10 0 144 181 227 181;
#P connect 10 0 9 0;
#P connect 0 0 1 0;
#P connect 1 0 5 0;
#P connect 40 0 4 0;
#P connect 39 0 4 0;
#P connect 9 0 4 0;
#P connect 12 0 4 0;
#P connect 7 0 4 0;
#P connect 11 0 4 0;
#P connect 5 2 4 0;
#P connect 5 0 4 0;
#P connect 19 0 4 0;
#P connect 37 0 41 0;
#P connect 41 0 31 0;
#P fasten 22 0 19 0 394 331 328 331;
#P connect 23 0 19 0;
#P connect 31 0 19 0;
#P connect 2 0 1 1;
#P fasten 5 1 16 0 361 110 357 110;
#P connect 16 0 31 1;
#P connect 31 1 23 0;
#P connect 32 0 20 0;
#P fasten 14 2 32 0 272 151 272 264 366 264;
#P connect 25 0 26 0;
#P connect 26 1 24 0;
#P connect 26 0 24 0;
#P connect 36 0 24 0;
#P connect 24 0 23 1;
#P connect 20 1 22 0;
#P connect 27 0 25 1;
#P connect 28 0 25 4;
#P connect 29 0 25 5;
#P connect 17 0 18 0;
#P pop;

#33471

You must be logged in to reply to this topic.