7 of 7
7
CsTI - CSharp Touchlib Interface
Posted: 19 May 2008 03:49 PM   [ Ignore ]   [ # 91 ]
Elite
RankRankRankRank
Total Posts:  304
Joined  2007-03-13

my apologies. new hosting plans and so is messing me around. i’ve attached the bins for touchlib beta 2 which works on vista and xp. the hosting should be working again tomorrow.

File Attachments
CSTItouchlib_beta2bins.zip  (File Size: 35KB - Downloads: 104)
 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 19 May 2008 04:05 PM   [ Ignore ]   [ # 92 ]
New Member
Rank
Total Posts:  10
Joined  2008-05-18

Donovan,
Thanks for the attachment.

I can’t wait for the weekend to finilize the hardware setup and play around with CODE smile

Regards,

Fadi.

Profile
 
 
Posted: 25 May 2008 09:35 AM   [ Ignore ]   [ # 93 ]
New Member
Rank
Total Posts:  20
Joined  2008-05-14

hey donovan, just wondering if you have updated your framework, the controls framework as i seem to get an error using your current controls with you current CSTi

Something about Parameter cannot be null..

Thanks.

Profile
 
 
Posted: 29 May 2008 04:07 AM   [ Ignore ]   [ # 94 ]
Elite
RankRankRankRank
Total Posts:  304
Joined  2007-03-13

Calvin, I haven’t done any updates to the framework. Just be sure to set the the TouchEngine.TrackBase to your TouchWindow

 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 02 June 2008 04:29 AM   [ Ignore ]   [ # 95 ]
New Member
Rank
Total Posts:  5
Joined  2008-06-02

Hi Community!
My Name is David and I am from Munich, Germany and I am currently working on my mediainformatics diploma thesis about multitouch interaction.
First, I want to thank the Nuigroup-Community and Donovan for implementing this wrapper/framework!!!

I plan to implement and compare (in a user study) several WPF controls and mouse-cursors/virtual-mice for multitouch scenarios.
As soon as my prototype works more or less stable I will start a new topic explaining my concepts in detail.

Profile
 
 
Posted: 02 June 2008 06:02 AM   [ Ignore ]   [ # 96 ]
Elite
RankRankRankRank
Total Posts:  203
Joined  2007-07-14

Hi BigPuzzl (David),
do you plan to compare the several WPF Frameworks found on this forum or just CsTI with own controls?
If first, don’t forget to test MultiTouchVista wink
Gruß aus Hamburg

Profile
 
 
Posted: 02 June 2008 07:05 AM   [ Ignore ]   [ # 97 ]
Elite
RankRankRankRank
Total Posts:  304
Joined  2007-03-13

Hi David! Welcome to the community! And it’s only a pleasure!

Daniel D! great work on MultiTouchVista!

 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 04 June 2008 05:24 PM   [ Ignore ]   [ # 98 ]
Sr. Member
RankRankRank
Total Posts:  81
Joined  2008-05-16
donovan - 14 May 2008 04:53 PM

ok. i have attached a template application that has the code you need to run a console touch application.

In your template file, it shows the construction of the CsTI object via public constructor :

static void Main(string[] args)
        
{
                
//construct new CsTI object
                
CsTI oCsTI = new CsTI();

rather than obtaining the singleton instance that you mention here:

donovan - 14 May 2008 01:37 PM

CsTI oCsTI = CsTI.Instance();

Which method is correct? (I can’t try it out for myself at the moment.. )

Profile
 
 
Posted: 04 June 2008 05:43 PM   [ Ignore ]   [ # 99 ]
Elite
RankRankRankRank
Total Posts:  304
Joined  2007-03-13

I have no idea how I uploaded such an outdated template file! It is way wrong!

Attached is the correct version, and yes you should use CsTI.Instance();

my apologies!

File Attachments
Program.txt  (File Size: 2KB - Downloads: 62)
 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 04 June 2008 05:57 PM   [ Ignore ]   [ # 100 ]
Sr. Member
RankRankRank
Total Posts:  81
Joined  2008-05-16

smile Thanks donovan.

I am kind of confused on when to use CsTI. Do frameworks like Multi-Touch Vista and WPFMultiTouch use CsTI to receive their MT events? Or do framework like those process events on their own?

Profile
 
 
Posted: 05 June 2008 01:42 AM   [ Ignore ]   [ # 101 ]
Elite
RankRankRankRank
Total Posts:  304
Joined  2007-03-13

I have no idea if they use it.

The framework I worked on did use it and any .NET framework/application could use it. However they do not *have* to. Some might use OSC. But when you use a framework you don’t have to worry about those type of things because they happen in the background.

 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 05 June 2008 07:16 AM   [ Ignore ]   [ # 102 ]
New Member
Rank
Total Posts:  11
Joined  2007-09-12

I’m having some troubles with getting this to work.

I’m doing it like this:

1) Create a new console project in VS2005, C#.
2) Put all the bins from touchlib_beta_v2.0.zip from http://www.touchlib.com in the bin folder
3) Put the bins from CSTItouchlib_beta2bins.zip in the bin folder
4) Add a reference to CsTI.dll (right click references, add reference, browse to the CsTI.dll located in the bin folder)
5) Paste the example program code from a previous post by donovan
6) Compile & Run

It compiles fine but I get this error, which seems to be because of some version mismatch or so:
Could not load file or assembly ‘CsTI, Version=1.0.3035.27924, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

Any tips to get me in the right direction are greatly appreciated!

Profile
 
 
Posted: 05 June 2008 12:43 PM   [ Ignore ]   [ # 103 ]
Elite
RankRankRankRank
Total Posts:  203
Joined  2007-07-14
amit - 04 June 2008 05:57 PM

smile Thanks donovan.

I am kind of confused on when to use CsTI. Do frameworks like Multi-Touch Vista and WPFMultiTouch use CsTI to receive their MT events? Or do framework like those process events on their own?

CsTI gives you only screen low level contact coordinates. Frameworks take this coordinates convert them in client coordinates and generate wpf events for elements that are being “touched”. They also contain some logic for rotation/move/scale. This is a quick summary about frameworks.

Profile
 
 
Posted: 05 June 2008 04:01 PM   [ Ignore ]   [ # 104 ]
Elite
RankRankRankRank
Total Posts:  304
Joined  2007-03-13

Daniel D summed it up perfectly!

bauer: most probably a missing file. check that both TouchlibWrapper.dll and CsTI.dll is in the touchlib.bin folder. Make sure it’s in the debug/bin folder for debug and release/bin for release. If still no luck then check if you have Depends.exe on your computer (more commonly known as dependency walker) open this and then open CsTI.dll. The walker will tell you what is missing.

Make sure you can run the configapp at least from the directory to check that touchlib is working. You need the visual c 2005 redist files for the wrapper to run. let me know if you can’t find it, then I’ll upload them.

 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 09 June 2008 07:58 AM   [ Ignore ]   [ # 105 ]
New Member
Rank
Total Posts:  11
Joined  2007-09-12

Great, it works now! Was missing some dependencies. Thanks a bunch.

Profile
 
 
   
7 of 7
7