-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GearVR Controller Support? #5
Comments
I would love to support the GearVR controller! This may be a bit of a pain, but can you download and open Chrome on your phone, plug your phone into your computer, then connect your phone’s open Chrome tab to your computer’s like so: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/ Once you do that you can interact with the JavaScript console. Load up the demo site and then in your console paste and enter this to enable full verbose mode: Now when you interact with the trackpad or buttons you should get a lot of output in the console. What you need to do is interact with each piece of the controller and see what button index # is receiving that interaction. My guess is the thumpad has a touch, a press, and axes and is index #0. See if that’s what’s showing up in the console and also check out the other buttons. We can use that info to add in explicit support 😉 Try to be thorough and keep notes. It’s the subtleties that make all the difference! (Does this button have a |
I also just made a super tiny update that should allow your GearVR primary button to work with the example’s If you can, give that a go and tell me if it works. It makes a pretty big assumption that the primary button is going to be at |
I haven't done the full logging yet, but I can confirm I can now:
The button does not work outside VR mode but this is probably expected. |
Wow that is awesome! (Thank you for testing it out!) When you say the button does not work outside VR mode, are you able to see the controller at all before entering VR? If you don’t see it at all then I think what might be happening is that prior to calling |
I can see the controller outside the VR mode, but what I am seeing is the GearVR interface and their rendered representation of the controller. The browser is just a floating window inside the GearVR interface/UI. I can point to items in the scene, they highlight the item I am pointing at them (e.g. the dat.guiVR floating menu) but the click is ineffective on the scene - I can't click the elements, drag the UI, etc - when outside VR mode. Within VR mode everything works as expected. I guess the above is not that surprising but just an observation. |
I'll check this out presently. |
I had to fork this project to start working on GearVR support. it should work like the DayDream one. So this makes the thumbpad the primary not the trigger.
|
Should I do a PR for this change ? It is working with GearVR https://github.com/danrossi/THREE.VRController/blob/master/VRController.js#L864 |
@danrossi are you still planning to do a PR to add this support? I added Oculus Go yesterday and can do this as well if you no longer want to do so. |
@paulmasson I am using Oculus Go with this controller: |
@whatisor if you have the Go connected to your computer and have set |
Another one to add support for ! I will look at adding a PR. However I think I may have made more modifications to mine and looking at complete refactor to Es6 so I can import it property into a three.js bundle ! |
@paulmasson Thank you, I found it as "axes changed" from aframe sample. |
I know this is not specifically mentioned as supported, but I tried out the GearVR Controller with a GearVR and a Samsung S6.
Trying the demo page on this project, I got the following results:
Let me know if there is any useful debugging info I can provide for this controller.
Cheers! - James
The text was updated successfully, but these errors were encountered: