Forums > Jitter

looping of 3d objects

September 19, 2006 | 1:12 pm

Hi people,

The patch below demonstrates a way to have a 3d object seem to move endlessly through the screen. Ultimately I want to do this with jit.gl.model.
I’ve made it so that this illusion works, but it is not very dynamic… something I’m struggling with e.g. is lens_angle/z-position of objects.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 307 210 48 196617 loadbang;
#P newex 275 179 21 196617 t 0;
#P newex 253 179 21 196617 t 1;
#P newex 253 204 29 196617 gate;
#P newex 298 153 66 196617 split 0.8 1.2;
#P newex 298 180 115 196617 scale 0.8 1.2 -1.2 -0.8;
#P message 4 80 72 196617 lens_angle 40;
#P newex 222 130 110 196617 scale 0. 100. -0.8 1.2;
#N counter 0 100;
#X flags 0 0;
#P newobj 222 106 74 196617 counter 0 100;
#P message 134 231 84 196617 position $1 0. 0.;
#P message 222 231 84 196617 position $1 0. 0.;
#P message 307 231 83 196617 reset , sphere 0.2;
#P newex 136 58 48 196617 loadbang;
#P toggle 77 39 15 0;
#P newex 77 58 57 196617 qmetro 10;
#P message 136 81 43 196617 ortho 1;
#P newex 215 252 149 196617 jit.gl.sketch test @automatic 0;
#P newex 165 106 53 196617 t b b b b;
#P newex 77 127 79 196617 jit.window test;
#P newex 77 79 58 196617 t b b erase;
#P newex 77 106 86 196617 jit.gl.render test;
#P comment 60 39 16 196617 >>;
#P fasten 9 0 15 0 141 77 9 77;
#P connect 9 0 6 0;
#P connect 8 0 7 0;
#P connect 7 0 2 0;
#P fasten 15 0 1 0 9 101 82 101;
#P fasten 6 0 1 0 141 101 82 101;
#P fasten 2 2 1 0 130 101 82 101;
#P connect 2 0 1 0;
#P fasten 16 0 12 0 303 226 139 226;
#P fasten 4 1 12 0 184 174 139 174;
#P fasten 2 1 4 0 106 101 170 101;
#P fasten 18 0 5 0 258 228 220 228;
#P fasten 4 2 5 0 198 153 220 153;
#P fasten 12 0 5 0 139 249 220 249;
#P fasten 11 0 5 0 227 249 220 249;
#P fasten 10 0 5 0 312 249 220 249;
#P fasten 2 1 13 0 106 101 227 101;
#P connect 13 0 14 0;
#P connect 14 0 11 0;
#P fasten 4 3 11 0 212 151 227 151;
#P fasten 17 0 19 0 303 172 258 172;
#P fasten 20 0 18 0 280 199 258 199;
#P connect 19 0 18 0;
#P fasten 4 0 18 1 170 201 277 201;
#P fasten 17 1 20 0 359 174 280 174;
#P fasten 14 0 17 0 227 150 303 150;
#P connect 17 0 16 0;
#P connect 21 0 10 0;
#P window clipboard copycount 22;


Viewing 1 post (of 1 total)