Forums > Jitter

Smooth camera following obtainable?

February 22, 2007 | 10:21 pm

I’ve created a simple patch that is supposed to have the two related shapes follow the exact same random path and have the camera constantly track their movement.

However, it seems that just occasionally the camera/shapes twitch or, dare I say it, jitter about the screen?! Whats going on?

max v2;
#N vpatcher 339 44 1615 800;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 519 251 31 196617 0.04;
#P message 501 251 14 196617 1;
#P flonum 532 316 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 494 316 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 454 316 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 429 343 85 196617 pak scale 1. 1. 1.;
#P message 350 347 70 196617 rad_minor $1;
#P flonum 350 320 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 299 389 233 196617 jit.gl.gridshape ball @shape torus @texture sound;
#B color 5;
#P toggle 631 552 15 0;
#P message 631 570 55 196617 floating $1;
#P toggle 558 552 15 0;
#P newex 519 551 35 196617 sel 27;
#P message 558 570 68 196617 fullscreen $1;
#P newex 476 592 149 196617 jit.window ball @depthbuffer 1;
#P newex 474 551 40 196617 key;
#P newex 407 235 52 196617 s Camera;
#P newex 407 199 61 196617 pak 0. 0. 0.;
#N vpatcher 604 317 1204 717;
#P button 199 76 15 0;
#P window setfont "Sans Serif" 9.;
#P flonum 286 142 35 9 4. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 269 181 27 196617 + 4;
#P flonum 94 103 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 58 103 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 22 103 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 22 134 89 196617 pak lookat 0. 0. 0.;
#P newex 22 62 76 196617 unpack 0. 0. 0.;
#P newex 22 32 52 196617 r Camera;
#P flonum 269 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 232 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 195 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 196 242 95 196617 pak camera 0. 0. 0.;
#P outlet 22 330 15 0;
#P comment 325 144 100 196617 Zoom Control + or -;
#P connect 6 0 7 0;
#P connect 7 0 9 0;
#P connect 8 0 1 0;
#P fasten 2 0 1 0 201 297 27 297;
#P fasten 9 0 8 1 27 126 53 126;
#P fasten 7 1 10 0 60 88 63 88;
#P fasten 10 0 8 2 63 126 79 126;
#P fasten 7 2 11 0 93 89 99 89;
#P fasten 14 0 11 0 204 97 99 97;
#P fasten 11 0 8 3 99 126 105 126;
#P connect 9 0 3 0;
#P fasten 13 0 14 0 291 166 238 166 238 61 204 61;
#P fasten 3 0 2 1 200 234 229 234;
#P fasten 4 0 2 2 237 234 257 234;
#P connect 11 0 12 0;
#P connect 12 0 5 0;
#P fasten 5 0 2 3 274 234 285 234;
#P connect 13 0 12 1;
#P pop;
#P newobj 646 151 85 196617 p CameraControl;
#P hidden message 664 120 68 196617 camera 0 0 4;
#P user jit.fpsgui 791 195 60 196617 0;
#P newex 747 138 43 196617 jit.qball;
#P toggle 747 89 15 0;
#P newex 747 115 55 196617 metro 20;
#P newex 747 169 55 196617 t b erase b;
#P newex 747 260 84 196617 jit.gl.render ball;
#P toggle 566 233 15 0;
#P newex 459 43 48 196617 loadbang;
#P newex 566 262 58 196617 metro 100;
#P newex 566 291 97 196617 jit.noise 1 char 1 1;
#P newex 566 344 150 196617 jit.gl.texture ball @name sound;
#P newex 299 285 239 196617 jit.gl.gridshape ball @shape sphere @texture sound;
#B color 5;
#P flonum 403 154 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 364 153 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 327 154 31 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 299 197 95 196617 pak position 0. 0. 0.;
#P newex 60 60 96 196617 v CurrentXPosition;
#P newex 110 144 37 196617 + 200;
#P newex 90 270 53 196617 t b b b b;
#P newex 110 123 70 196617 random 5000;
#P newex 85 96 64 196617 random 100;
#P message 60 210 79 196617 46. , 39. 3485.;
#P message 60 186 82 196617 set $1 \, $2 $3;
#P newex 60 164 61 196617 pak 0. 0. 0.;
#P newex 60 239 40 196617 line 0.;
#P window setfont "Sans Serif" 20.;
#P window linecount 3;
#P comment 549 93 100 196628 Camera controls in here–>;
#P connect 11 0 9 0;
#P fasten 7 2 9 0 123 303 201 303 201 53 65 53;
#P connect 9 0 2 0;
#P connect 2 0 3 0;
#P connect 18 0 4 0;
#P connect 3 0 4 0;
#P fasten 7 0 4 0 95 322 221 322 221 204 65 204;
#P connect 4 0 1 0;
#P fasten 7 1 5 0 109 311 209 311 209 90 90 90;
#P connect 5 0 2 1;
#P connect 1 1 7 0;
#P fasten 7 3 6 0 137 293 189 293 189 117 115 117;
#P connect 6 0 8 0;
#P connect 8 0 2 2;
#P connect 10 0 14 0;
#P connect 39 0 37 0;
#P connect 10 0 37 0;
#P connect 40 0 37 0;
#P fasten 1 0 11 0 65 355 279 355 279 138 332 138;
#P connect 11 0 10 1;
#P connect 38 0 39 0;
#P fasten 12 0 10 2 369 187 360 187;
#P fasten 13 0 10 3 408 187 388 187;
#P connect 11 0 28 0;
#P connect 28 0 29 0;
#P connect 12 0 28 1;
#P connect 44 0 41 0;
#P connect 41 0 40 1;
#P connect 13 0 28 2;
#P fasten 32 0 31 0 563 589 481 589;
#P fasten 35 0 31 0 636 589 481 589;
#P fasten 42 0 40 2 499 337 484 337;
#P connect 45 0 42 0;
#P connect 18 0 44 0;
#P fasten 43 0 40 3 537 337 509 337;
#P connect 18 0 45 0;
#P fasten 30 0 33 0 479 570 516 570 516 549 524 549;
#P connect 44 0 43 0;
#P fasten 33 0 34 0 524 569 555 569 555 549 563 549;
#P connect 34 0 32 0;
#P connect 18 0 19 0;
#P connect 19 0 17 0;
#P connect 17 0 16 0;
#P connect 16 0 15 0;
#P connect 36 0 35 0;
#P connect 18 0 26 0;
#P connect 18 0 23 0;
#P connect 23 0 22 0;
#P connect 22 0 24 0;
#P connect 24 0 21 0;
#P connect 27 0 20 0;
#P connect 26 0 20 0;
#P connect 21 0 20 0;
#P fasten 21 1 20 0 774 233 752 233;
#P connect 21 2 25 0;
#P pop;

Thanks

Rhys


February 22, 2007 | 11:50 pm

Aha! It only does it when I open the patcher CameraControl! Why I wonder??



VG
February 23, 2007 | 9:22 am


February 23, 2007 | 9:20 pm

I did and found the problem to be occuring when fsaa was on so I disabled it!

Many thanks guys.


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