cancel
Showing results for 
Search instead for 
Did you mean: 

Any way to access the Gear VR sensor data?

stomprocket
Honored Guest
I'm essentially looking to get the data on yaw, pitch and roll from the Gear VR sensors and sending that back to my PC (to integrate this device with a positional tracking system). I've looked around a little in the mobile SDK, but am still not sure exactly how to approach this. Any information would be greatly appreciated!
4 REPLIES 4

cybereality
Grand Champion
So, off the top of my head I'm not sure the answer. Are you writing a native app or something with a particular game engine? I can ask to see the best way to do this. Or you can look inside the included sample apps, you will likely find the answer.

Also, I deleted your other topic. Please don't cross-post the same message, and keep development related questions to the development section. Thanks.
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV

stomprocket
Honored Guest
Sorry, I realized after I posted that it was more of a development question. It would most likely be a native app, unless there's a way to use Unity to access the yaw, pitch and roll of the sensors. Essentially it's for a positional tracking system with its own, software interface. I was hoping to see how it would integrate with the Gear VR.

kcoul
Explorer
stomprocket you want SceneView::GetEyeYaw(), SceneView::GetEyePitch(), SceneView::GetEyeRoll() at the native level.

kcoul
Explorer
Ok I've figured this out by extending the JNI interface up to MainActivity.java.

stomprocket are you using Unity or Native? If it's Native I can show you how to do it.