ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

Vive Focus: Left-Hand Controller does not appear to work in ControllerManager Sample Scene #102

Open osgiliath-stone opened 5 years ago

osgiliath-stone commented 5 years ago

Left-Hand Controller does not appear to work in ControllerManager Sample Scene in HTC.UnityPlugin. I cannot get the teleport action to work in the ControllerManager Sample scene.

When Vive Focus is set to work for the Right-Hand Controller everything works fine. When set to the Left-Hand Controller only the model of the controller appears, nothing else occurs if using the example code in ControllerManagerSample scene.

osgiliath-stone commented 5 years ago

This was my mistake. Some of the customizations I made nerfed the code.

osgiliath-stone commented 5 years ago

I was wrong about my assumptions.

After more tests, I concluded that the Input Plugin breaks between v1.10.2 and v1.10.3 for the left-hand controller.

https://github.com/ViveSoftware/ViveInputUtility-Unity/commits/develop

Unity 2018.1.9f1 Wave SDK 2.1.8 Works -----> Vive Input Utility 1.10.2

Unity 2018.1.9f1 Wave SDK 2.1.8

Breaks -----> Vive Input Utility 1.10.3

dariol commented 5 years ago

Please note if you have updated to the very latest Wave SDK you must update to the latest ROM and please note VIU will be updated shortly as well.

osgiliath-stone commented 5 years ago

Thank you for your response. I updated to the latest wave SDK, and also the latest firmware for the Vive Focus hardware itself. It still didn't work.

Also, I'd like to point out the problem appears to exist even if I use the latest Wave SDK or not, that means it appears to be exclusive to the Vive Input Utility update for 1.10.3.

chengnay commented 5 years ago

@jag2013 Could you try the following steps and let me know if it works.

  1. Set your default hand to RIGHT
  2. Launch your apk (Ensure this is newly start and not re-launch)
  3. If you can see the controller model and pressing touchpad will see the curve pointers, you can now go to settings and switch to left-hand mode
  4. Go back to your apk again (Re-launch)

Let me know your result for above steps. My expected result for above steps:

  1. Left hand controller model appears
  2. Touchpad will show curve pointers NOTE: Currently ControllerManager sample scene cannot teleport even the curve pointer appears. We are still fixing this issue.

What is your Vive Focus rom version (Settings>System Update>Current version)? My current version is 2.12.0.1 What is your Wave SDK version (Settings>More Settings>About device>Wave SDK version)? My current version is 3.0.1

osgiliath-stone commented 5 years ago

Hi chengnay. Thank you for your response.

My Wave SDK Version is 3.0.1. My rom version is 1.93.1400.2 (I cannot update rom further, there is no option on my vive focus, it's a development kit version if that matters, and I have confirmed I am connected via wifi).

The good news is the latest git commits to Vive Input fixed the problem, and in my implementation teleport and laser pointers work just fine.

I can switch hands as you mentioned at any time and everything works perfectly.

I took game objects and script examples from the samples folder in Vive Wave SDK 3.0.1 and added them to the example implementation found in the controllermanagersample scene from the Utility Input plugin and I noticed some odd results. On rare occasions if I press the home button to bring the default vive focus menu into view I sometimes see two controllers at the same time, which is a bit odd, and also on rare occasions sometimes if I exit out of the app without quitting the app and then later return to the app there are two controllers in my view at the same time, the controllermanagersample controller and I suppose another one that must be created by the example code I borrowed from Vive Wave SDK 3.0.1.

But I managed to get it working...mostly.

I suppose the example scripts found in the input utility plugin haven't been fully integrated with Vive wave SDK 3.0.1.

Let me know if you want me to continue testing anything.

chengnay commented 5 years ago

@jag2013 Can you try the latest VIU (1.10.4) package, we already fixed this issue.