Page 1 of 1
Posted: 14 Mar 2010, 21:08
by Floego
hello,
I'm building a diy touch screen with a modified "cheap webcam method", using "CCV" to interact with Usine through OSC.
One touch work wonders, and even 2 touches, but not 3 simultaneus touches. I learnt there is something wrong with the message sent or received. As far as I know, tuio 2dcur messages pack 7 parameters, the third and fourth are the coordinates, normalized with values between [0,1]. Everytime I do multi touches, the coordinates fly out of range (say 120, 240, etc).
Anyone has this kind of troubles?. Please ask everything you need.

Posted: 15 Mar 2010, 07:57
by nay-seven
not easy cause the problems occurs before Usine...?
have you ask on a tuio forum..?
Posted: 15 Mar 2010, 10:41
by senso
here is the tuio specification for 2Dcur messages:
Code: Select all
/tuio/2Dcur source application@address
/tuio/2Dcur alive s_id0 ... s_idN
/tuio/2Dcur set s_id x_pos y_pos x_vel y_vel m_accel
/tuio/2Dcur fseq f_id
It means that only under the /tuio/2Dcur there several data's are sent.
You are looking for 'set' data's only.
So you have to filter /tuio/2Dcur message in order to get only 'set' msg. Use
pass event and
math =
Also I have discovered a bug in Usine: the last char of strings (tag 's') is truncated..
So you get 'se' instead of 'set' 'aliv' instead of 'alive' etc.
will be correct in the next release,soon. But I think you can live with it, just enter 'se' 'aliv'...
Posted: 15 Mar 2010, 10:44
by senso
Posted: 15 Mar 2010, 15:36
by Floego
thank you for your comments and the example.
I see, the implementation is more complicated than I thought!. Silly me.
I don't fully understand the way tuio handles more than 1 cursor.
How to get the id of each cursor?
There exist a fixed id for the first, the second, the third cursor, etc?.
I did not find this info anywhere in the TUIO.ORG page!.
Could you please help me with that? :/
Posted: 15 Mar 2010, 16:33
by senso
I can't really answer, since I'm totally newbie, maybe on the tuio forum?
but as I know the ID is incremented on each mouse down message.
Posted: 16 Mar 2010, 04:08
by yöyen munchausen
hi oliver, i've been banished for a while but i'm back and i wonder if exist a kind of osc tuto couse i've been tried to conect my MT interface but don't work........., i'm newbie with this and usine recive osc data but i have non reaction at all, non touch events.......
help please
:S
Posted: 16 Mar 2010, 08:53
by senso
please don't ask me!!
[large]I'm a total newbie![/large]

Posted: 16 Mar 2010, 09:10
by Floego
Hello Olivier,
Using your patch example I found the solution!.
My difficulty relied on the way
osc receive patch works, each out of the patch are independently flowing data, for example, the set data gets mixed with the alive data and with the fseq data on a certain moment, due to the different pace of each other.
So while 1 touch worked as expected, 2, 3 or 4 touches got scrambled data. BUT, I found the data out array where perfectly aligned. So I used it and could separate the different data on many data arrays. Everything got perfect!!.
Sorry if I couldn't explain the solution better, maybe I could try to explain in other ways.
Thank you very much,
Floego.
Oh I forgot, the modified patch :
tuio example
Posted: 31 Jul 2011, 22:09
by Be4Be2
Good patch!
Question:Can i transform it's data to use Usine multitouch instead of WINDOWS 7 native?
I guess it a Mouse msg moudle?
Posted: 31 Jul 2011, 22:45
by nay-seven
If this can help you, all of interface modules in Usine have
mouse down ,y and Y move, x and y contact outlets...