XML Feeds

.

[jitter] extracting points from a model matrix

Ivica Ico Bukvic ico at vt.edu
Fri Feb 22 22:25:54 MST 2008


> last year i did it cleaned it by hand with notepad++ search\replace and 
> some duct tape, 
> then [text]>dump>setcell >[jit.matrix]
> by god it worked. 

Thanks for the reply. Ironically, I came to the same conclusion in the past
hour :-). Please see below. You can use it simply as: 

[obj2matrix somefile.obj]

And that ought to do it. Optional input takes in "read <optional
somefile.obj>".

NB: The abstraction is not real-time safe as it has been built with the
assumption that this is something you would want to do before running the
show. FWIW, I don't think jit.gl.model is any more real-time safe when it
comes to loading large files.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 170 47 43 9109513 deferlow;
#P message 168 250 14 9109513 1;
#P message 183 250 14 9109513 0;
#P newex 183 271 27 9109513 gate;
#P outlet 200 424 15 0;
#N comlet read <optional_filename>;
#P inlet 100 93 15 0;
#P message 302 104 39 9109513 read $1;
#P newex 302 81 45 9109513 loadbang;
#P message 150 378 28 9109513 clear;
#P button 128 71 15 0;
#P newex 128 89 40 9109513 uzi 1;
#P newex 277 349 27 9109513 + 1;
#P number 277 330 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 277 309 34 9109513 set \$1;
#P message 315 377 44 9109513 dim \$1 1;
#P button 180 378 15 0;
#P newex 200 399 100 9109513 jit.matrix 3 float32 1 1;
#P message 200 377 111 9109513 setcell \$4 0 val \$1 \$2 \$3;
#P newex 200 340 54 9109513 pack f f f i;
#P message 295 262 14 9109513 0;
#N counter 0 0 1;
#X flags 0 0;
#P newobj 267 282 66 9109513 counter 0 0 1;
#P button 267 263 15 0;
#P newex 200 300 59 9109513 unpack f f f;
#P message 200 119 35 9109513 line \$1;
#P newex 200 238 38 9109513 route v;
#P newex 200 212 45 9109513 route set;
#P button 170 71 15 0;
#P message 215 182 32 9109513 query;
#P newex 170 89 40 9109513 uzi 1;
#P newex 200 147 40 9109513 text;
#P connect 0 2 9 4;
#P connect 18 0 15 0;
#P connect 0 2 19 1;
#P connect 0 2 29 0;
#P connect 0 2 1 1;
#P connect 0 2 10 0;
#P connect 0 2 15 0;
#P connect 22 0 23 0;
#P connect 10 0 9 2;
#P connect 1 1 20 0;
#P connect 1 1 28 0;
#P connect 1 1 17 0;
#P connect 1 1 10 0;
#P connect 17 0 18 0;
#P connect 16 0 17 0;
#P connect 9 0 11 3;
#P connect 9 0 16 0;
#P connect 8 0 9 0;
#P connect 5 0 26 1;
#P connect 5 0 8 0;
#P connect 7 2 11 2;
#P connect 0 1 27 0;
#P connect 0 1 2 0;
#P connect 7 1 11 1;
#P connect 13 0 25 0;
#P connect 21 0 13 0;
#P connect 15 0 13 0;
#P connect 14 0 13 0;
#P connect 12 0 13 0;
#P connect 11 0 12 0;
#P connect 7 0 11 0;
#P connect 26 0 7 0;
#P connect 4 0 5 0;
#P connect 0 0 4 0;
#P connect 24 0 0 0;
#P connect 23 0 0 0;
#P connect 6 0 0 0;
#P connect 2 0 0 0;
#P connect 19 2 6 0;
#P connect 1 2 6 0;
#P connect 27 0 26 0;
#P connect 28 0 26 0;
#P connect 19 1 14 0;
#P connect 3 0 1 0;
#P connect 29 0 3 0;
#P connect 20 0 19 0;
#P window clipboard copycount 30;

Best wishes,

Ico



More information about the jitter mailing list