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:
-
var tdbg:TuioDebug = TuioDebug.init(stage);
Next you have to add it to your TuioClient as a listener like this:
-
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.
February 8th, 2011 - 13:20
hello, how can i get thw width and the height os a blob/cursor?
thans
February 8th, 2011 - 20:33
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.
December 13th, 2011 - 11:44
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
December 13th, 2011 - 21:33
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.