Git Product home page Git Product logo

gearvr-controller-webbluetooth's Introduction

gearvr-controller-webbluetooth's People

Contributors

jsyang avatar shelbykiram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gearvr-controller-webbluetooth's Issues

Web Demo not working?

Using latest Chrome, on Windows, I cannot get the web demo to work.

The device is found in the pairing stage, and appears to pair successfully.
However, after this point, nothing else happens.

Chrome Console Log (Blank line between each entry):

THREE.WebGLRenderer 90

OBJLoader: 194.5078125ms

Uncaught (in promise) DOMException: GATT operation failed for unknown reason.

ControllerBluetoothInterface.js:160 Error: NetworkError: Failed to execute 'writeValue' on 'BluetoothRemoteGATTCharacteristic': GATT Server is disconnected. Cannot perform GATT operations. (Re)connect first with `device.gatt.connect`.

Any steps I've missed, or has a chrome update changed something?

Latest Chrome version(s) fail

Linux Version 66.0.3359.181 (Official Build) (64-bit)
Windows Version 66.0.3359.181 (Official Build) (32-bit)
both fail with the following error:
ControllerBluetoothInterface.js:154 Uncaught TypeError: Cannot read property 'writeValue' of null
at ControllerBluetoothInterface.runCommand (:152:44)
at ControllerDisplay.onClickDeviceActionButton (:320:50)
runCommand @ ControllerBluetoothInterface.js:154
onClickDeviceActionButton @ ControllerDisplay.js:319

I've been unable to 'downgrade' chrome due to dependency issues.

Any ideas?

Works with Chromium Version 58.0.3029.110 (64-bit) as well (and likely later versions)

I managed to make it work under macOS/OS X 10.12.6.

It is necessary to activate the API by entering this address into the address bar chrome://flags/#enable-experimental-web-platform-features and then ticking the "Experimental Web Platform features" to enable it.

I've just tested it out and saw how the home button resets the position of the controller to zero in the demo.

I found that the demo here on Github works but not the one from your website.

Cheers,

-Scott

License change?

Hi. I'm asking if it would be possible to change the license to MIT. GPL is great, I fully support it, but some libraries and implementations like this will have a greater set of use cases if compatible with MIT.

Magnetometer and

Hello, Great work!
I am author of first attempt and it is very interesting how you approached this problem.
I was sure that these three values are ready to use orientation but I was not able to figure out how to decode them. They change very consistently as you rotate GearVR around and also make other rotations.

Perhaps you can take a look and we can get consistent rotation from that ?

Want to create js library to allow reuse

Thank you for the excellent reverse engineering.

I'm considering turning this into a reusable library to be able to include in future projects (including user js allowing me to try to use this with Google Slides). (Thanks to Best buy for selling these super cheap)

In your experience, can the pairing be automatic between page refreshes, or does it need to be manually performed each time?

Any input you can provide towards my possible efforts is appreciated. The demo worked perfectly on latest chrome stable on Android 10 on a Pixel 3 XL as of today.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.