Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: N3uRo on May 30, 2012, 03:09:31 PM

Title: NGUI and uniTUIO integration please!!!
Post by: N3uRo on May 30, 2012, 03:09:31 PM
Hi Aren,

Can you integrate uniTUIO in NGUI? As you know is an open source and free multitouch framework to make it compatible with Windows 7 API.

In case the answer is no, can you guide us to integrate it? I know that the logic is in UICamera but most of the methods are private so I can't override them.

I don't know where to start.

If you want to try it: http://www.xtuio.com/index.php/projectsmain/

It's the first download called "uniTUIO for Unity3"
Title: Re: NGUI and uniTUIO integration please!!!
Post by: ArenMook on May 30, 2012, 03:58:31 PM
I've never heard of it, and with how little time I have there isn't much I can do. You're welcome to grab the free version of NGUI and do what you want in there. You don't need to change the UICamera. All you need is to create your own input manager class (which is what the UICamera is), and make it send out NGUI events (OnClick, OnPress, etc).
Title: Re: NGUI and uniTUIO integration please!!!
Post by: N3uRo on May 30, 2012, 04:03:13 PM
Ok, thanks!

We will try to implement it then.
Title: Re: NGUI and uniTUIO integration please!!!
Post by: N3uRo on June 02, 2012, 05:11:46 AM
I have integrated yesterday with the NGUI API.

I copied your UICamera and modified the required code. Now appart from your events OnClick, OnPress, OnSelect, OnDrag and OnDrop I have two events like OnDoubleTouch and OnManyTouches that have a List of Touches as argument.

It was pretty easy it only took a couple of hours.

UniTUIO it's the only framework at the moment that supports Windows 7 API. Unity doesn't seem to be interested on implement them the API. So we are going to fight the battle for a long time.

Thanks!!
Title: Re: NGUI and uniTUIO integration please!!!
Post by: ArenMook on June 02, 2012, 02:19:29 PM
Likely something to do with the fact that no one uses Windows 7 phones :P

Depending on whom you believe:

(http://www.email-marketing-reports.com/images/smart1.png)

(http://www.email-marketing-reports.com/images/smartniel.png)

Source: http://www.email-marketing-reports.com/wireless-mobile/smartphone-statistics.htm
Title: Re: NGUI and uniTUIO integration please!!!
Post by: N3uRo on June 02, 2012, 02:47:29 PM
I'm not speaking about Windows phone, this topic it's not about that.

It's about Windows 7 for standalone build.

Tuio only works on Windows 7 PCs.
Title: Re: NGUI and uniTUIO integration please!!!
Post by: ArenMook on June 02, 2012, 02:48:46 PM
Oh. I didn't know Win7 even had a touch-based API. Same reason though no doubt -- no one uses it.
Title: Re: NGUI and uniTUIO integration please!!!
Post by: N3uRo on June 02, 2012, 02:55:44 PM
It's weird to do a multitouch based game or app if you're not a company... Nobody has a multitouch screen at home.

If you want to do with Unity a multitouch based project (on Windows 7 - PC standalone) Tuio it's the only way.
Title: Re: NGUI and uniTUIO integration please!!!
Post by: cyrus104 on June 28, 2012, 10:49:51 PM
N3uRo,  I wanted to see if there was any way to get your class to integrate TUIO with Unity. I understand where you are coming from, our touch tables are Win7 PC because they can run on large screens with overlay frames or ir/projector setups. I blame Unity for not taking advantage operating system API for one of the most popular operating systems out there.

Thanks
Title: Re: NGUI and uniTUIO integration please!!!
Post by: Wumpee on November 22, 2012, 07:49:13 PM
It's weird to do a multitouch based game or app if you're not a company... Nobody has a multitouch screen at home.

If you want to do with Unity a multitouch based project (on Windows 7 - PC standalone) Tuio it's the only way.

Actually, quite a few people are having to use horrible hacky workarounds for Windows 7 based Touch Screen software.

We've worked on several touch screens to date, and the only one that went smoothly was using a set of NextWindow touch screen overlays as they have their own .NET SDK to work with.

It really bothers me that something so simple hasn't been integrated into Unity... all the WM_TOUCH related functionality is just sitting there waiting for a senior coder to spend 2 hours adding support for it... quite sad really.
Title: Re: NGUI and uniTUIO integration please!!!
Post by: Wumpee on November 22, 2012, 07:59:39 PM
N3uRo,  I wanted to see if there was any way to get your class to integrate TUIO with Unity. I understand where you are coming from, our touch tables are Win7 PC because they can run on large screens with overlay frames or ir/projector setups. I blame Unity for not taking advantage operating system API for one of the most popular operating systems out there.

Thanks

There is a huge swing toward using tablet PCs and touch screens in educational institutions, corporate lobbies, and private ventures.  Unity devs really need to have some foresight and add support asap.  Not to mention the necessity to add support for Microsoft Surface devices.

The reason not many people hear about the need for touch screen support in Unity under Windows 7/8 is that the majority of consumers just opt for shitty software like Snowflake because other options are way too costly.  We're actively developing custom solutions in Unity, and TUIO just doesn't cut it, especially since required third party TUIO software such as Touch2TUIO are also required, and are buggy (occasionally missing touches etc.).
Title: Re: NGUI and uniTUIO integration please!!!
Post by: ArenMook on November 22, 2012, 10:50:46 PM
Unity 4 has Win8 support. I assume this implies touch as well?
Title: Re: NGUI and uniTUIO integration please!!!
Post by: rgonzalezVW on November 23, 2012, 02:34:39 AM
There is a package in the asset store that supports Windows 7 touches and have NGUI integration. Its pretty ease to use.
http://forum.unity3d.com/threads/152685-RELEASED-Windows-7-multitouch (http://forum.unity3d.com/threads/152685-RELEASED-Windows-7-multitouch)
Title: Re: NGUI and uniTUIO integration please!!!
Post by: Dover8 on June 07, 2013, 04:05:49 AM
I have integrated yesterday with the NGUI API.

I copied your UICamera and modified the required code. Now appart from your events OnClick, OnPress, OnSelect, OnDrag and OnDrop I have two events like OnDoubleTouch and OnManyTouches that have a List of Touches as argument.

It was pretty easy it only took a couple of hours.

UniTUIO it's the only framework at the moment that supports Windows 7 API. Unity doesn't seem to be interested on implement them the API. So we are going to fight the battle for a long time.

Thanks!!

N3uRo, I'd be interested in seeing your solution for this as I have now encountered the same issue.