I got a patch that takes data from a camera and runs it through a colortracker. The output is then run through a shader which draws a filled circle at the given coords.
So somebody can stand infront of the camera with a lightpen and draw on the video with it.
It works pretty good but there’s one problem, my camera renders 25 fps but that’s to slow for rapid movements, since the circles don’t overlap anymore and the line breaks up.
Now I’ve tried using a damper on the movement and that sort of works but the damper is set so high it makes the drawing difficult.
I’m wondering if there’s a simpler way to achieve my goal. I’ve tried connecting coords to points and that works but is there an easy way to connect the dots so it forms a solid line or should I try something like queueing an extra x and y, calculating a line between the last and the new coords and drawing a line with that? Or is there another way to do this that I’ve overlooked?
Thanks in advance.