Author Topic: NGUI and uniTUIO integration please!!!  (Read 20544 times)

N3uRo

  • Guest
NGUI and uniTUIO integration please!!!
« 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"
« Last Edit: May 30, 2012, 04:01:25 PM by N3uRo »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI and uniTUIO integration please!!!
« Reply #1 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).

N3uRo

  • Guest
Re: NGUI and uniTUIO integration please!!!
« Reply #2 on: May 30, 2012, 04:03:13 PM »
Ok, thanks!

We will try to implement it then.

N3uRo

  • Guest
Re: NGUI and uniTUIO integration please!!!
« Reply #3 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!!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI and uniTUIO integration please!!!
« Reply #4 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:





Source: http://www.email-marketing-reports.com/wireless-mobile/smartphone-statistics.htm
« Last Edit: June 02, 2012, 02:39:58 PM by ArenMook »

N3uRo

  • Guest
Re: NGUI and uniTUIO integration please!!!
« Reply #5 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI and uniTUIO integration please!!!
« Reply #6 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.

N3uRo

  • Guest
Re: NGUI and uniTUIO integration please!!!
« Reply #7 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.

cyrus104

  • Guest
Re: NGUI and uniTUIO integration please!!!
« Reply #8 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

Wumpee

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 53
    • View Profile
Re: NGUI and uniTUIO integration please!!!
« Reply #9 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.

Wumpee

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 53
    • View Profile
Re: NGUI and uniTUIO integration please!!!
« Reply #10 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.).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI and uniTUIO integration please!!!
« Reply #11 on: November 22, 2012, 10:50:46 PM »
Unity 4 has Win8 support. I assume this implies touch as well?

rgonzalezVW

  • Guest
Re: NGUI and uniTUIO integration please!!!
« Reply #12 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

Dover8

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: NGUI and uniTUIO integration please!!!
« Reply #13 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.