Forums > MaxMSP

TUIO data filtering?

February 17, 2010 | 10:13 pm

I am having some real problems routing tuio messages in order to achieve what I need:

I have ten visable blobs which are read from a video/live input, each produces an individual tuio/2DCur message in the format:

When a new blob appears, it is labelled with an [addCursor] integer (a label) and the xy positions are sent one time at positions where the blob appeared. The tuio message data is sent in the format: [addCursor int] [x pos float] [y pos float]

If the blob/blobs remain visible the cursor xy position values are constantly updated via tuio messages in the format: [updateCursor int] [x pos float] [y pos float]

When the blob disappears the cursor ID is removed the following tuio message is sent:[removeCursor int]

Basically I need to reformat the labeling so that I can route the separate blob x y data to one of ten x y controllers in max. One for each tracked blob.

I need to route the correct x y positions from [updateCursor] [x pos] and [y pos] to these ten x y controllers, routing the correct x y position data to an available xy controller currently not in use.

Because of the way the [updateCursor] values are updated constantly I am confused how to filter the data.

The [addCursor] values increase for every new blob and [updateCursor] values stay static when the blob stays visible, so, I am not sure how to route the [updateCursor] [x pos] [y pos] data to the available xy controllers, can anyone help me?

I have been trying to upload the patch but its [Denied MIME] ?

Attachments:
  1. TuioDispatcher.txt

February 19, 2010 | 4:10 pm

I have figured it out, if anyone is interested in how I achieved it I can post my patches here, even


February 20, 2010 | 8:12 pm

I’m interested, please post.
Thanks,
Brian


March 21, 2011 | 12:09 pm

I´m having the same problem. Can you post that patches?
Thank you


Viewing 4 posts - 1 through 4 (of 4 total)