I'm doing an installation with a top-down projection and Kinect capturing infrared bodies. Basically right now all I want is to grab the data from Kinect (the easy part) then send this through jit.touches and then have that provide the coords to render white circles on a black background which will be projected onto the participants.
I have a few problems so far but the main ones are that I can't figure out how to render the circles without them flickering like crazy, and that jit.touches needs some caressing that I haven't given it yet; once touches are released, their data is still there, so it still renders a circle.
Here is the code:
I think the problem with the flickering is that the last circles in the list only get rendered for a split second before the entire scene is cleared, whereas the first circles get more time to stay on the screen and seem more fluid. Maybe I should develop a system in which a black circle erases the last position of the user instead of clearing the screen, or maybe going with something other than jit.lcd would be best. Please help!