VirtualAwesome, how it is getting touch-events?

43 views
Skip to first unread message

schizophrenie

unread,
Jun 19, 2011, 12:49:53 PM6/19/11
to va-users
Hi @ all,


i've downloaded virtual awesome to create some content for a ftir
multi-touch-table. I would like to know, how the app is getting its
touch-points? I thought that it will work with ccv or touchlib, or is
my thinking concept totally wrong?

would be nice if someone could give me an advice

thanks!

stefanix

unread,
Jun 19, 2011, 5:51:09 PM6/19/11
to va-users

Hi schizophrenie,

VA has it's own tracking and camera code. You can find it in addons/
vaTouchkit. The tracking algorithm is in BlobTracker.cpp and the
camera code is in VideoGrabber**.cpp. The addon is quite specific to
our Touchkit hardware so you might need to adapt the camera code a bit
if using anything other than a Ptgrey Firefly MV B/W. The tracking
algo on the other hand is quite universal and very concise and
reusable code.

If you want to use ccv, touchlib, or any of the OS APIs that are quite
established now you can inject the multitouch events into the VA event
model by calling the rawTouch* functions on the scene. See core/va/
include/va/scene.h for details. Or http://va.nortd.com/doc/0.4.3/classva_1_1_scene.html

vaMice, vaMultipad, and vaTouchkit are all using the above calls to
inject the multitouch event.

Cheers,

/stefan

Yafes Sahin

unread,
Jun 19, 2011, 5:55:15 PM6/19/11
to va-u...@googlegroups.com
Hi Stefan,

thank you for the fast reply. I am using a ptgrey camera (yesterday a new update appeared by the way) I compiled some apps, but i couldn't find any app where i can configure the camera like in ccv? Is there any example where i can directly see what my firefly camera sees?

Are there any other blogs of developpers about va?

thank you very much

--- stefanix <ste...@nortd.com> schrieb am So, 19.6.2011:

stefan)

unread,
Jun 19, 2011, 6:47:21 PM6/19/11
to va-u...@googlegroups.com
There is a bit more info on running the exampleTouchkitSimple here:
http://labs.nortd.com/touchkit/setup/
Basically pressing 's' will get you to setup mode where you can see
the feed and calibrate the warping. It's all reduced to the
essentials. For anything more you would have to dive into the code.

/st

Yafes Sahin

unread,
Jun 19, 2011, 9:33:06 PM6/19/11
to va-u...@googlegroups.com
Hi Stefan,

thanks again for you fast reply, did not expect an answer. With your hints i could setup now my multi-touch table, i will write a blog post later @ schiho.com maybe a tutorial.

Now my next question, the problem i am encountering with my firefly mv is, that i cannot rotate the image in the camera settings, there is only a horizontal flip (if someone knows a quicktrick, would be nice)

I would need a transpose and flip function, flip is included, but could not find transpose (should be a part of opencv normally)

If there is no solution, i have to dive into opencv geometry transformations... ;) will be funny

thanks again, great software by the way! very clean! and based on openframeworks yipppiii



--- stefan) <ste...@nortd.com> schrieb am Mo, 20.6.2011:

Yafes Sahin

unread,
Jun 20, 2011, 12:56:06 PM6/20/11
to va-u...@googlegroups.com
Hi @ all,

first of all thank you for your help, now everything is gong well, when i compile one of the va then it asks for "executable for debug session"

Should the compile process not retrieve an exe?

thankn you very much


--- stefan) <ste...@nortd.com> schrieb am Mo, 20.6.2011:

Von: stefan) <ste...@nortd.com>
Betreff: Re: [va-users] Re: VirtualAwesome, how it is getting touch-events?
An: va-u...@googlegroups.com
Datum: Montag, 20. Juni, 2011 00:47 Uhr

Yafes Sahin

unread,
Jun 22, 2011, 8:02:06 AM6/22/11
to va-u...@googlegroups.com
Hi Stefan,

i am still sucking with the ccv injection Problem, is there something like a port listener? how do i get the values into VA from ccv for the touch?

rawTouchMove( event.device,
                                                     mmouse->getX(),
                                                     mmouse->getY(),
                                                     10.0f );

This is an example from VaMice

It woud be kind if you could give me some advice, i've build a really cool touch-table with two projectors and i would like to use va instead of touchlib or any other framework for content creation

Thank you

Reply all
Reply to author
Forward
0 new messages