Smooth Spherepen, Sans Javascript

aaron's icon

Hello,

I am trying to do basically the same thing as the jsui_spherepen example but without the Javascript (so I can do some other things in the same jit.gl.render).

Moving a sphere around with the mouse and screentoworld and the jit.gl.sketch object is no problem, but I can't figure out how to make the line smooth and unbroken.

My math and JS skills are very limited.

Has anyone made a shape drawing program with jit.gl.sketch?

Does anyone know how to do this?

Thanks,

Aaron