weird behaviour in jit.gl.sketch with message framecircle ?

Jan 12, 2009 at 3:54pm

weird behaviour in jit.gl.sketch with message framecircle ?

There’s something weird with the way framecircle message to
jit.gl.sketch works :
If one make a framecircle with, say:
- theta start = 180
- theta end = 360
The frame is slightly shifted, angle wise, up to 15 degrees.
This phase shift increases with the angle value.

I dont know if I make myself clear, but it is easy to observe this issue
with the patch below.
I found no hint in the forum, nor in OpenGL documentation… Anyone knows ?

#P user hslider 113 121 42 294 360 1 0 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 12 107 60 196617 loadmess 1;
#P window setfont “Sans Serif” 20.;
#P flonum 113 170 99 20 0 0 0 3 0 0 0 255 227 23 222 222 222 0 0 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P message 113 214 235 196617 reset , move -1. 0 0 , lineto 1 0 0 ,
moveto 0 -1 0 , lineto 0 1 0 , moveto 0 0 0 , framecircle 0.8 0 $1;
#P toggle 98 309 15 0;
#P window linecount 1;
#P newex 59 308 35 196617 sel 27;
#P newex 5 184 43 196617 jit.qball;
#P message 98 327 68 196617 fullscreen $1;
#P number 50 135 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 5 135 15 0;
#P newex 5 161 55 196617 metro 20;
#P newex 5 215 55 196617 t b erase b;
#P newex 113 251 79 196617 jit.gl.sketch foo;
#B color 5;
#P newex 5 263 80 196617 jit.gl.render foo;
#P newex 16 351 145 196617 jit.window foo @depthbuffer 1;
#P newex 14 308 40 196617 key;
#P window setfont “Sans Serif” 20.;
#P window linecount 2;
#P comment 113 57 322 196628 incrase theta and watch where the circle
starts … whats that?;
#P connect 16 0 14 0;
#P connect 15 0 7 0;
#P connect 14 0 13 0;
#P connect 7 0 6 0;
#P connect 6 0 10 0;
#P connect 10 0 5 0;
#P fasten 5 1 3 0 32 251 10 251;
#P connect 5 0 3 0;
#P connect 8 0 6 1;
#P connect 13 0 4 0;
#P fasten 9 0 2 0 103 346 21 346;
#P fasten 1 0 11 0 19 327 56 327 56 306 64 306;
#P fasten 11 0 12 0 64 326 95 326 95 306 103 306;
#P connect 12 0 9 0;
#P window clipboard copycount 17;

#41650

You must be logged in to reply to this topic.