Tuio Flash Blog

Using TuioDebug

The debugging class "TuioDebug" enables you to quickly visualize received tuio messages to see if everything is configured correctly.

To use TuioDebug you simply have to initialize it like that:

  1. var tdbg:TuioDebug = TuioDebug.init(stage);

Next you have to add it to your TuioClient as a listener like this:

  1. yourTuioClient.addListener(tdbg);

If everything works correctly you should see your tracked fingers(cursors)/objects represented by rings/rectangles and some additional information on the stage.

Of course you can customize the rings by changing the color, linethickness and alpha for fingers(cursors) and objects separately.

For more information have a look at the asdoc, all the functions should be self explanatory. If you happen to run into any problems or have suggestions how to improve the TuioDebug class write a comment or send me an email.

Comments (4) Trackbacks (0)
  1. hello, how can i get thw width and the height os a blob/cursor?
    thans

  2. You can only get the width & height of a blob or an object. Are you using the TuioManager or implement a custom ITuioListener?
    In any case you can get the width & height values from the TuioBlob/TuioObject via the w and h properties.

  3. hi, is it possible to change the color of the text that accompanies each ring? i have a black background and the hence text is not visible

  4. Hi, you can change the color by setting line 433 in org.tuio.debug.TuioDebug to “format.color = 0xffffff;”
    In the current svn version there is already a variable which controls that -> TuioDebug .debugTextColor. So this will be easier in a future release.


Leave a comment


No trackbacks yet.