Skip to content
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

vrPosDev.getState().orientation always returns {x:0,y:0,z:0,w:0} on OS X/DK2 #8

Open
carstenschwede opened this issue Aug 1, 2014 · 4 comments

Comments

@carstenschwede
Copy link

On OS X (10.9.2) and DK2 it seems to detect the HMD + orientation device correctly:

2 " VR Devices"
"Found a HMD" PositionSensorVRDevice { hardwareUnitId: "uknownHMDInfo-0x13007a000", deviceId: "somedevid", deviceName: "HMD Position Device" }

However orientation data does not seem to get initialized/updated:

var state = vrPosDev.getState();
console.log(state.orientation.x,state.orientation.y,state.orientation.z);
// => 0,0,0,0

I don't know if this is related, but https://github.com/benvanik/vr.js/tree/master/experimental/usb-driver talks about how

a codeless kernel extension is required to disable the system HID drivers from taking control of the Rift and preventing its use [in Chrome*].

*) Not sure if this only applies to Chrome or if this would affect Firefox as well.

@carstenschwede carstenschwede changed the title vrPosDev.getState() always returns {x:0,y:0,z:0,w:0} on OS X/DK2 vrPosDev.getState().orientation always returns {x:0,y:0,z:0,w:0} on OS X/DK2 Aug 1, 2014
@Teybeo
Copy link

Teybeo commented Aug 1, 2014

I have seen this on Windows 7 with an HD Prototype.
From what I have understood, it appears when no hmd is detected, in this case, Firefox and Chrome simulate a fake device ( "uknownHMDInfo-0x13007a000" and "somedevid", "Mockulus" on Chrome) .
On Firefox it always return [0, 0, 0, 0] as orientation.

I've checked for this in ogsjs https://github.com/Teybeo/osgjs/blob/develop/sources/osgViewer/eventProxy/Oculus.js#L87-L91

Btw @vvuk, wouldn't it better for this to be [0, 0, 0, 1] as a neutral identity quaternion ?

@carstenschwede
Copy link
Author

@Teybeo You're right; it returns the fake device even when no hmd device is connected.
@vvuk does this mean that there isn't any OS X support for DK2 right now? If this is the case, could you state so at http://blog.bitops.com/blog/2014/07/31/css-and-vr-integration/ ?

also +1 for [0,0,0,1] as neutral quaternion.

@brianchirls
Copy link

I'm seeing the same thing with a DK1 on OS X. The browser seems to be failing to detect the device and is falling back to the fake device, though the latest Chrome build works fine. I'm using the 0.4.2 SDK and the 2014-08-18 Firefox Nightly VR build.

@brianchirls
Copy link

For the record, the usb driver hack does not fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants