Log in or register to post comments

Get Vuforia AR Camera Compass Direction

April 27, 2017 - 9:13am #1

Hi - Am trying to figure out how to get Vuforia AR camera compass direction, i.e. North/South/East/West. Can someone guide me on the same?

Tried to use below, but CameraDevice.Instance does not have any attribute to get compass direction. Tried below, from a different Vuforia post, to see what attributes but this does not have any as well.

// Get the fields

IEnumerable cameraFields = CameraDevice.Instance.GetCameraFields();

// Print fields to device logs

foreach (CameraDevice.CameraField field in cameraFields) {

Debug.Log("Key: " + field.Key + "; Type: " + field.Type);

}

 

Get Vuforia AR Camera Compass Direction

February 6, 2018 - 11:54am #4

Hi, did you find a solution to this question? We are having objects placed at geolocation but if we use Vuforia camera, the objects position resets. If we can know which world direction Vuforia camera is pointing to then we can adjust the objects accordingly.

 

Thanks in advance.

Get Vuforia AR Camera Compass Direction

April 27, 2017 - 7:31pm #3

Hi - Thanks. But am trying to use it in a Unity project with Vuforia. So can you pls provide me some guidance on how to use this on the same?

Get Vuforia AR Camera Compass Direction

April 27, 2017 - 1:46pm #2

Hello,

Vuforia does not provide APIs for sensor outputs such as compass. However, you can use native OS APIs to get this information.

Here are a couple of links that may be helpful:

Android: https://developer.android.com/guide/topics/sensors/sensors_overview.html

iOS: https://developer.apple.com/reference/corelocation/cllocationmanager

Thanks.

Log in or register to post comments