2 of 2
2
multi touch in other script languages
Posted: 03 August 2007 12:47 PM   [ Ignore ]   [ # 16 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

oh,ok. to compile the wrapper you need to be able to compile touchlib.

can you send me ‘adll.h’? any idea what it is?

 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: 03 August 2007 05:50 PM   [ Ignore ]   [ # 17 ]
New Member
Rank
Total Posts:  36
Joined  2007-07-28

the adll.h, its my engine header. its contains some tranformations macros, or .. variable conversions, to be able to run, as a dll in my engine. And yeah i can send it.. But don’t compile it right now! First i would like you to go to msn, when you could go of corse, so i could give you the adll thing, and to talk a litlle about what to put inside your script..

Profile
 
 
Posted: 05 August 2007 07:41 AM   [ Ignore ]   [ # 18 ]
New Member
Rank
Total Posts:  36
Joined  2007-07-28

Ok i’ve been doing scripting on my engine, to acept such input data, since i guess the c++ code canot create a direct dot(blob) on the screen or the like, i have to transform the c++ code you give with some conversion..

OK so everytime a finger down occours, you have to call my engine script which is this one:

function create_dot (dotx,doty,dot_id){
    blob_id
=dot_id//carry out the id with the assume_dot function
    
dot_handles[dot_id]=handle(   ent_create("dot.pcx",vector(0,dotx,doty),assume_dot)   ); // notice null x value, due to 3d perpective: it might BE BUGGY when camera change view.. fix later
    
wait(1);
    return;        
}

Ok so it basicly creates a dot image could be jpg, but pcx is faster.. And the positions are given, by your videowrapper, i assume the id is also already given by your script, so i just worried me with the creation event.

now you must be online, for a direct messaging. I have some questions to do, and we have to try too what works and not.

you can add me MSN:

Profile
 
 
Posted: 07 August 2007 11:26 AM   [ Ignore ]   [ # 19 ]
New Member
Rank
Total Posts:  36
Joined  2007-07-28

Does your dll, can do everything touch lib does? like opening the webcam source and such??? Realy need to know that?

Profile
 
 
Posted: 08 August 2007 06:51 PM   [ Ignore ]   [ # 20 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

ok, here is a test dll. just check if you can still use it in your engine. i needed to change a few project settings to get the unresolved symbols resolved. you can call startTracking()

in c++ the method looks like:

DLLFUNC var startTracking()
{
    
//starts touchlib
    
TouchDLL *touch = new TouchDLL();
    return 
true;
}

so when you call startTracking() the touchlib screens should start. i compiled it with the touchlib rev 58 files. if you touchlib gives an error, please download this. it is the touchlib rev58 bins. copy all the files wherever you copy the dll to.

hopefully it works grin

File Attachments
engine-dll.zip  (File Size: 18KB - Downloads: 44)
 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: 08 August 2007 09:16 PM   [ Ignore ]   [ # 21 ]
New Member
Rank
Total Posts:  36
Joined  2007-07-28

LOl you said you changed something in #define DLLFUNC extern “C” __declspec(dllexport)
but you should’t! it must be #define DLLFUNC extern “C” __declspec(dllexport)

Also make sure the sampledll.cpp in the top, also contains this:
#define DLL_USE
#include “adll.h”

well the dll, is not working, it doesn’t detect it as function DLL , Anyway with the changed you did, i guess you did not removed the linker dependency adll.lib and libcmt.lib
That are necessary, but we talk in msn.

Profile
 
 
Posted: 09 August 2007 06:59 AM   [ Ignore ]   [ # 22 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

i removed libcmt.lib to solve unresolved symbols.i’ll put it back and i didnt change the extern ‘C’ part!

 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 August 2007 07:16 AM   [ Ignore ]   [ # 23 ]
New Member
Rank
Total Posts:  36
Joined  2007-07-28

the eventual unresolved simbols you get, the error message you can show me, maybe i know what it is.
and its “C” not ‘C’ i guess you know that hehe

Profile
 
 
Posted: 14 August 2007 07:46 PM   [ Ignore ]   [ # 24 ]
New Member
Rank
Total Posts:  36
Joined  2007-07-28

Hello Donovan.. you have been away for a while.
Since you said my visual studio wasn’t compatible, maybe the reason for error was there.
I changed for visual studio 2005, and i did a winrar file, with all the files compressed, and the Linker already set. So just press Build and it must go without any error.

Ok i hope everything is ok with you, and take care.
hugz

Profile
 
 
Posted: 18 August 2007 08:09 AM   [ Ignore ]   [ # 25 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

sorry, i’ve been away for work..very busy, but i’m back home now so we can continue! i’ll be msn tomorrow, then we can talk again. sorry hey!

 Signature 

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

Profile
 
 
   
2 of 2
2