hit a brick wall here - there must be a simple solution! Im working on a reacivision/reactable setup. i want objects which are placed on the table to be illuminated by a circle of light around their base, and with information about their ID, position and angle off to the side.
however, i want the pad/circle of light to fade so that you can see where the objects have been as they are moved around the table...while the information text needs to be refreshed for every frame without fading so they can be clearly read...
hope thats clear! the problem is that with drawing black boxes or similar around the text every frame to get rid of the old info - it also trapples right over the tails of the fading circles, and they gradually accumulate coverling the screen with permanent squares....
maybe im missing s trick here, i just want to refresh the text image every frame! here is the relevant code:
Quote: buffer.beginDraw();
buffer.textFont(font, 44);
buffer.stroke(150); //border
buffer.text("test", tobj.getScreenX(width), tobj.getScreenY(height));
buffer.endDraw();
then at the end of the draw(); loop i have image(buffer,0,0);
i'm quite new to processing - i hope ive clearly described the problem...and i hope i've jsut missed something simple..
thanks in advance for any help,
FJ