Smooth animation of jit.gl objects position
Hi,
I'm trying to animate the position of jit.gl objects (text and gridshape) but I'm getting a jittery movement of the objects. Is there a way to make the movement smooth?
I tried different settings (antialias, fsaa, sync on the objects, their master node and also render and jit.window with line and jit.anim.drive) but with no success. Am I missing something here?
Thanks.
Why do you have qmetro 30? 1000 / 30 = 33.33 fps
Connect a "jit.fpsgui" to qmetro and confirm it.
The refresh rate of your monitor is probably 60 Hz. The "sync 1" message is doing nothing in this context, as it limits the frame rate to the refresh rate of the monitor when the frame rate is higher, not lower.
Try it with "qmetro 2" or something like it and leave "sync 1" and the animation will be smoother (frame rate = refresh rate).
Another area where you could improve the "smoothness" of the animation is in the "line" object. This object is pre-configured to output with a 20 ms interval (1000/20 = 50 fps, insufficient for the 60 fps target). You could lower the interval writing something like "line 0. 10" or even better, use "bline" instead.
In my opinion to get a smooth animation in Jitter you must use bline instead of line. But yes, also change your qmetro for a qmetro @interval 60 hz to match your monitor refresh rate.
or just use jit.world