Gvr-unity-sdk: How to enable Head Tracking in non-VR mode?

Created on 25 Dec 2017  路  3Comments  路  Source: googlevr/gvr-unity-sdk

Hello!
How can i enable Head Tracking in non-VR mode? Or enable gyro in non-VR mode?
In VR mode all works fine, but I don't understand, how do it works when VR mode is turned off.

Found using:

  • Google VR SDK version: 1.110
  • Unity version: 2017.3.0f2
bug duplicate

Most helpful comment

Hello :) I am working on PokemonGO-like Android application. It uses head tracking to draw flying enemies in right places of the real world image from camera. But gyro.attitude returns the value with sgnificant drift.

So, I have desided to use GoogleVR (I believe, Google use gyro, accelerometer and compass data, Calman's filters, Bayes theorem and other wise things ;) ). I have tried to repeat your Magic Window example:
https://developers.google.com/vr/develop/unity/guides/magic-window

But the drift remains almost the same :( I have tested the app on Samsung Galaxy S7 edge. It has very little of drift in cardboard applications. But in Magic Window mode sometimes it has the terrible and inappropriate drift :(

Probably, I've done something wrong. Could you please share simple Magic Window Unity3D project working without drift.

All 3 comments

Sadly, there is no way to enable head tracking in non-VR mode without triggering VR transition screens, even though you're not using VR mode. We're working on a solution to this issue.

Please follow #829 and #703, which aim to document how to do this.

Hello :) I am working on PokemonGO-like Android application. It uses head tracking to draw flying enemies in right places of the real world image from camera. But gyro.attitude returns the value with sgnificant drift.

So, I have desided to use GoogleVR (I believe, Google use gyro, accelerometer and compass data, Calman's filters, Bayes theorem and other wise things ;) ). I have tried to repeat your Magic Window example:
https://developers.google.com/vr/develop/unity/guides/magic-window

But the drift remains almost the same :( I have tested the app on Samsung Galaxy S7 edge. It has very little of drift in cardboard applications. But in Magic Window mode sometimes it has the terrible and inappropriate drift :(

Probably, I've done something wrong. Could you please share simple Magic Window Unity3D project working without drift.

Was this page helpful?
0 / 5 - 0 ratings