Forums > Jitter

newbie 3D question

February 1, 2008 | 12:05 pm

Hi,

I’m familiar with MAX, but a newbie in jitter. For a project I’m working on I want to load a 3D model into Jitter and manipulate it. For instance blow up, shrink, move and toss points around to distort the object. The example in Tutorial 36 is something like it, but moving points around with noise is too random for me. What is a good way to start with this project?

Kind regards,
Rutger


February 1, 2008 | 12:20 pm

I meant tutorial 37


February 1, 2008 | 12:54 pm

You could take a look at jit-ogre and "pre-make" some animations and then control them in jitter.

Or you could check out this technique : http://abstrakt.vade.info/ILOVETHEMAXLIST/Gl-Keyframe-Example.zip

Or you can experiment with matrixoutput, xfade and jit.gl.mesh

Or you can do something like this:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 436 61 48 196617 loadbang;
#P newex 509 83 20 196617 t b;
#P user jit.fpsgui 334 421 60 196617 0;
#P message 436 83 30 196617 read;
#P newex 436 105 242 196617 jit.gl.model vectors @matrixoutput 1 @automatic 0;
#P newex 290 102 60 196617 loadmess 0;
#P newex 481 231 48 196617 loadbang;
#P message 131 350 34 196617 reset;
#P newex 131 367 203 196617 jit.gl.handle vectors @inherit_transform 1;
#N vpatcher 30 89 161 286;
#P outlet 8 116 15 0;
#P window setfont "Sans Serif" 9.;
#P message 8 96 70 196617 fullscreen $1;
#P toggle 8 73 15 0;
#P newex 8 48 52 196617 select 27;
#P newex 8 25 40 196617 key;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P pop;
#P newobj 9 411 25 196617 p fs;
#P newex 33 368 41 196617 s pulse;
#P newex 9 432 324 196617 jit.window vectors @floating 1 @fsaa 0 @fsmenubar 0 @pos 800 274;
#P toggle 9 304 15 0;
#P newex 9 343 58 196617 t b b erase;
#P newex 9 323 51 196617 qmetro 5;
#P newex 9 390 284 196617 jit.gl.render vectors @erase_color 0 0 0 1 @camera 0. 0. 6.;
#P newex 277 146 69 196617 prepend expr;
#P user ubumenu 135 125 294 196617 0 1 1 0;
#X add "in[0].p[0]*0.1" "in[0].p[1]*0.1";
#X add "-in[0].p[1]*0.1" "in[0].p[0]*0.1";
#X add "in[0].p[1]*0.1" "in[0].p[0]*0.1";
#X add "0.1*in[0].p[0]/sqrt(in[0].p[0]*in[0].p[0] + in[0].p[1]*in[0].p[1])" "0.1*in[0].p[1]/sqrt(in[0].p[0]*in[0].p[0] + in[0].p[1]*in[0].p[1])";
#X add "(in[0].p[0]*-in[0].p[1])*0.1" "(in[0].p[1]-in[0].p[0])*0.1";
#X add "0.05*(in[0].p[0]-(in[0].p[1]*in[0].p[1]))" "((in[0].p[0]*in[0].p[0])+in[0].p[1])*0.05";
#X add "in[0].p[1]*0.1" "-in[0].p[0]*0.1";
#X add "0.05*(in[0].p[0]+(in[0].p[1]*in[0].p[1]))" "((in[0].p[0]*in[0].p[0])-in[0].p[1])*0.05";
#X add "(sqrt(in[0].p[0]*in[0].p[0]+in[0].p[1]*in[0].p[1]))*(-in[0].p[1]*0.1)" "(sqrt(in[0].p[0]*in[0].p[0]+in[0].p[1]*in[0].p[1]))*(in[0].p[0]*0.1)";
#X prefix_set 0 0 0;
#P newex 436 190 108 196617 jit.op @op * @val 0.1;
#P newex 382 211 64 196617 jit.op @op +;
#P message 394 252 249 196617 color 0.2 0.2 0.2 1. , blend_enable 1 , blend_mode 3 8;
#P newex 382 272 206 196617 jit.gl.mesh vectors @draw_mode line_strip;
#P newex 382 231 98 196617 jit.matrix particles;
#P newex 436 169 243 196617 jit.expr @expr "snorm[0]*0.01" "snorm[1]*0.01";
#P newex 539 123 41 196617 r pulse;
#P newex 436 146 235 196617 jit.matrix particles 3 float32 5 @adapt 1 @thru 0;
#N counter 0 8;
#X flags 0 0;
#P newobj 367 101 66 196617 counter 0 8;
#P newex 367 60 67 196617 select 32 13;
#P newex 367 41 40 196617 key;
#P comment 25 305 52 196617 < < start;
#P window linecount 4;
#P comment 265 43 100 196617 space: change field , esc: fullscreen , enter: reset particles;
#P window linecount 1;
#P newex 194 234 48 196617 loadbang;
#P newex 9 234 184 196617 jit.slide @slide_up 10 @slide_down 10;
#P newex 119 172 243 196617 jit.expr @expr "snorm[0]*0.01" "snorm[1]*0.01";
#P newex 65 193 64 196617 jit.op @op +;
#P message 21 258 249 196617 color 0.6 0. 0. 0. , blend_enable 1 , blend_mode 1 1;
#P newex 9 277 183 196617 jit.gl.mesh vectors @draw_mode lines;
#P newex 9 214 66 196617 jit.multiplex;
#P newex 9 81 41 196617 r pulse;
#P newex 9 102 280 196617 jit.gencoord 2 float32 20 20 @offset -2 -2 -2 @scale 4 4 4;
#P newex 285 249 99 196617 prepend draw_mode;
#P user ubumenu 286 226 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 prefix_set 0 0
0;
#X pattrmode 1;
#P connect 3 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 9 0;
#P connect 9 0 5 0;
#P fasten 6 0 5 0 26 275 14 275;
#P connect 29 0 27 0;
#P connect 27 0 28 0;
#P fasten 28 2 26 0 62 364 14 364;
#P connect 28 0 26 0;
#P fasten 33 0 26 0 136 387 14 387;
#P connect 32 0 30 0;
#P fasten 10 0 6 0 199 254 26 254;
#P connect 28 1 31 0;
#P fasten 2 0 7 0 14 186 70 186;
#P connect 7 0 4 1;
#P fasten 25 0 8 0 282 167 124 167;
#P fasten 2 0 8 0 14 146 124 146;
#P connect 8 0 7 1;
#P connect 34 0 33 0;
#P fasten 15 0 24 0 372 121 140 121;
#P fasten 36 0 24 0 295 121 140 121;
#P connect 24 1 25 0;
#P fasten 0 1 1 0 320 245 290 245;
#P fasten 26 0 39 0 14 409 339 409;
#P connect 13 0 14 0;
#P connect 14 0 15 0;
#P fasten 16 0 22 0 441 166 387 166;
#P connect 22 0 19 0;
#P fasten 21 0 20 0 399 269 387 269;
#P connect 19 0 20 0;
#P fasten 1 0 20 0 290 268 387 268;
#P fasten 35 0 21 0 486 250 399 250;
#P connect 41 0 38 0;
#P fasten 40 0 37 0 514 102 441 102;
#P connect 38 0 37 0;
#P fasten 17 0 16 0 544 142 441 142;
#P connect 37 0 16 0;
#P fasten 25 0 18 0 282 168 441 168;
#P connect 16 0 18 0;
#P connect 18 0 23 0;
#P connect 23 0 22 1;
#P fasten 14 1 40 0 400 80 514 80;
#P window clipboard copycount 42;


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