Divall
YaBB Newbies
Offline
Posts: 2
reacTIVision and Processing via OSCP5
Dec 10th , 2005, 1:28am
Hi all The famous reacTIVision "robust tracking of fiducial markers in a real-time video stream" came out open source last week! Basicly, it track marker without any special camera system, Collect the video data and send it to the underlying applications layers through Open Sound Control. (One application for the tracking, one for the visual projection, PROCESSING!!!). Unfortunately, I'm not really comfortable with OSC. I found the www.sojamo.de Lib. It sounds interesting. I already did some Open Sound Control transfer from Max/MSP but I'm asking our community if somebody can help me to make the link between reacTIVision Tuio protocol using Open Sound Control and Processing. It sound really easy but again, I'm new in OSC and there is no information on reacTIVision and Processing. There is the link to reacTIVision: http://www.iua.upf.es/mtg/reacTable/?software There is some Java code that show how to Received and unpack OSC messages. I begin to cross that code to Processing. Any comments, news or help will be appreciate. We already did a Tangible interface like reacTable with Jitter but we want to move on a tracking fiducial markers system that use Processing for more power, less trouble and more fun. Jitter and flash was a.... experience. Don't try that at home. Application Programming Interface: ---------------------------------- First you need to create an instance of TuioClient. This class is listening to TUIO messages on the specified port and generates higher level messages based on the object events. Your application needs to implement the TuioListener interface, and has to be added to the TuioClient in order to receive messages. A TuioListener needs to implement the following four methods: * addTuioObj(int id): this is called when an object becomes visible * removeTuioObj(int id): an object was removed from the table * updateTuioObj(int id, etc.): the parameters of an object are updated these include the id and current position and orientation * refresh(): this method is called after each bundle, use it to repaint your screen for example //********** TuioListener **************** public interface TuioListener { public void addTuioObj(int id); public void updateTuioObj(int id, int c, float x, float y, float a, float X, float Y, float A, float m, float r); public void removeTuioObj(int id); public void refresh(); } Divall Thanks A Lot !!!