XML Feeds

.

[jitter] Multiple Versions of a model

Andy Brennan breakoutfoo at hotmail.com
Tue Nov 13 11:26:29 MST 2007


Hi guys,

I want to be able to use multiple versions of an animated model that I can move and scale independantly of each other. I have written a patch that does this (below) and works well using the apple model in the extras folder that comes with Jitter. 

The problem is that the .obj I wish to use is about 30Mb in size and contains group ID's for me to animate. My patch really doesn't like this and the frame rate drops to something like 17 - even without any animation going on.

Am I going about this the right way as I'm not sure what is causing the bottle neck and making the frame rate drop so drastically?

Cheers

Andy


max v2;
#N vpatcher 38 367 1632 1013;
#P origin 0 -21;
#P window setfont "Sans Serif" 9.;
#P flonum 1366 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 1404 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 1487 231 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1454 256 110 196617 pack scale 0.3 0.3 0.3;
#P newex 1334 256 115 196617 pack position 0.5 0.5 0.;
#P newex 1319 191 40 196617 t b b b;
#P flonum 1098 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 1136 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 1219 231 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1186 256 110 196617 pack scale 0.3 0.3 0.3;
#P newex 1066 256 115 196617 pack position 0.5 0.5 0.;
#P newex 1051 191 40 196617 t b b b;
#P flonum 838 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 876 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 957 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 924 256 109 196617 pack scale 0.3 0.3 0.3;
#P newex 814 256 103 196617 pack position 0. 0. 0.;
#P newex 799 191 40 196617 t b b b;
#P message 255 256 30 196617 read;
#P window linecount 3;
#P comment 277 99 183 196617 turn automatic off. this prevents the object from rendering automatically when jit.gl.render is banged;
#P user jit.fpsgui 14 525 60 196617 0;
#P flonum 589 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 627 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 710 231 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 677 256 110 196617 pack scale 0.3 0.3 0.3;
#P newex 557 256 115 196617 pack position 0.5 0.5 0.;
#P newex 542 191 40 196617 t b b b;
#P flonum 329 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 367 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 448 232 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 415 256 109 196617 pack scale 0.3 0.3 0.3;
#P newex 305 256 103 196617 pack position 0. 0. 0.;
#P newex 290 191 40 196617 t b b b;
#P message 61 375 85 196617 rect 0 0 640 480;
#P toggle 50 443 15 0;
#P message 50 464 45 196617 ortho \$1;
#P toggle 240 396 15 0;
#P message 240 414 55 196617 floating \$1;
#P hidden message 47 357 68 196617 camera 0 0 4;
#P toggle 167 396 15 0;
#P newex 128 395 35 196617 sel 27;
#P message 167 414 68 196617 fullscreen \$1;
#P newex 85 438 145 196617 jit.window foo @depthbuffer 0;
#P newex 83 395 40 196617 key;
#P number 61 46 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 14 46 15 0;
#P newex 14 72 57 196617 qmetro 20;
#P newex 14 101 209 196617 t b b b b b b erase;
#P newex 255 297 78 196617 jit.gl.model foo;
#P newex 14 501 80 196617 jit.gl.render foo;
#P connect 4 0 3 0;
#P connect 3 0 2 0;
#P fasten 14 0 0 0 55 490 19 490;
#P hidden fasten 11 0 0 0 52 422 19 422;
#P connect 2 0 0 0;
#P fasten 2 6 0 0 217 339 19 339;
#P connect 0 0 29 0;
#P connect 15 0 14 0;
#P connect 5 0 3 1;
#P fasten 8 0 7 0 172 433 90 433;
#P fasten 12 0 7 0 245 433 90 433;
#P fasten 16 0 7 0 66 423 90 423;
#P fasten 6 0 9 0 88 414 125 414 125 393 133 393;
#P fasten 9 0 10 0 133 413 164 413 164 393 172 393;
#P connect 10 0 8 0;
#P connect 13 0 12 0;
#P fasten 25 0 1 0 682 288 260 288;
#P fasten 46 0 1 0 1459 288 260 288;
#P fasten 40 0 1 0 1191 288 260 288;
#P fasten 17 0 1 0 295 288 260 288;
#P fasten 18 0 1 0 310 288 260 288;
#P fasten 19 0 1 0 420 288 260 288;
#P fasten 23 0 1 0 547 288 260 288;
#P fasten 24 0 1 0 562 288 260 288;
#P fasten 31 0 1 0 260 288 260 288;
#P fasten 33 0 1 0 819 288 260 288;
#P fasten 34 0 1 0 929 288 260 288;
#P fasten 39 0 1 0 1071 288 260 288;
#P fasten 32 0 1 0 804 288 260 288;
#P fasten 38 0 1 0 1056 288 260 288;
#P fasten 45 0 1 0 1339 288 260 288;
#P fasten 44 0 1 0 1324 288 260 288;
#P fasten 2 5 17 0 184 154 295 154;
#P connect 17 1 18 0;
#P fasten 22 0 18 1 334 251 341 251;
#P fasten 21 0 18 2 372 251 372 251;
#P fasten 17 2 19 0 325 220 420 220;
#P fasten 20 0 19 1 453 251 453 251;
#P fasten 20 0 19 2 453 251 486 251;
#P fasten 20 0 19 3 453 251 519 251;
#P fasten 2 4 23 0 151 154 547 154;
#P fasten 23 1 24 0 562 232 562 232;
#P fasten 28 0 24 1 594 251 597 251;
#P fasten 27 0 24 2 632 251 632 251;
#P fasten 23 2 25 0 577 220 682 220;
#P fasten 26 0 25 1 715 251 715 251;
#P fasten 26 0 25 2 715 251 748 251;
#P fasten 26 0 25 3 715 251 781 251;
#P fasten 2 3 32 0 118 154 804 154;
#P fasten 32 1 33 0 819 232 819 232;
#P fasten 37 0 33 1 843 251 850 251;
#P fasten 36 0 33 2 881 251 881 251;
#P fasten 32 2 34 0 834 220 929 220;
#P fasten 35 0 34 1 962 251 962 251;
#P fasten 35 0 34 2 962 251 995 251;
#P fasten 35 0 34 3 962 251 1028 251;
#P fasten 2 2 38 0 85 154 1056 154;
#P fasten 38 1 39 0 1071 232 1071 232;
#P fasten 43 0 39 1 1103 251 1106 251;
#P fasten 42 0 39 2 1141 251 1141 251;
#P fasten 38 2 40 0 1086 220 1191 220;
#P fasten 41 0 40 1 1224 251 1224 251;
#P fasten 41 0 40 2 1224 251 1257 251;
#P fasten 41 0 40 3 1224 251 1290 251;
#P fasten 2 1 44 0 52 154 1324 154;
#P fasten 44 1 45 0 1339 232 1339 232;
#P fasten 49 0 45 1 1371 251 1374 251;
#P fasten 48 0 45 2 1409 251 1409 251;
#P fasten 44 2 46 0 1354 220 1459 220;
#P fasten 47 0 46 1 1492 251 1492 251;
#P fasten 47 0 46 2 1492 251 1525 251;
#P fasten 47 0 46 3 1492 251 1558 251;
#P pop;



More information about the jitter mailing list