Welcome to %s forums

BrainModular Users Forum

Login Register

someone could help me with multitouch tuio problem?

I need help on a Patch
Post Reply
Floego
Member
Posts: 319
Location: Venezuela
Contact:

Unread post by Floego » 14 Mar 2010, 21:08

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.

Image

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 15 Mar 2010, 07:57

not easy cause the problems occurs before Usine...?
have you ask on a tuio forum..?

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 15 Mar 2010, 10:41

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'...


Floego
Member
Posts: 319
Location: Venezuela
Contact:

Unread post by Floego » 15 Mar 2010, 15:36

thank you for your comments and the example.

I see, the implementation is more complicated than I thought!. Silly me.:P

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? :/

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 15 Mar 2010, 16:33

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.

yöyen munchausen
New member
Posts: 1
Contact:

Unread post by yöyen munchausen » 16 Mar 2010, 04:08

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

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 16 Mar 2010, 08:53

please don't ask me!!
[large]I'm a total newbie![/large]:)

Floego
Member
Posts: 319
Location: Venezuela
Contact:

Unread post by Floego » 16 Mar 2010, 09:10

Hello Olivier,

Using your patch example I found the solution!.

Image

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

Be4Be2
New member
Posts: 4
Contact:

Unread post by Be4Be2 » 31 Jul 2011, 22:09

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?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 31 Jul 2011, 22:45

If this can help you, all of interface modules in Usine have
mouse down ,y and Y move, x and y contact outlets...

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests