TUIO data filtering?

evengravy's icon

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] ?

60.TuioDispatcher.txt
txt
evengravy's icon

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

m1interactive's icon

I'm interested, please post.
Thanks,
Brian

marta_verde's icon

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

Apostolos Kolonis's icon

@EVENGRAVY and ten years later i need that too. i hope you are alive and still have the patch :P