Log in or register to post comments

AR Camera spinning

March 12, 2019 - 7:05am #1

Vuforia SDK Version: 8.0.10 -

Description with steps to reproduce: Hi!
We've developed an app with Unity that allows visitors to discover a place as it used to be in the past. Users can scan a target that will open a linked Unity scene and save user device rotation in space in order to match our 3D scene with reality. Users can then control camera as if using the device gyroscope.

Every now and then Unity camera will start spinning indefinitely even if the device is not moving.
Example here: https://www.youtube.com/watch?v=PAVS4Q1GgQU&feature=youtu.be

We use this code to control camera:

public class GyroController : MonoBehaviour
{
public override void Update()
{
cameraTransform.rotation = Quaternion.Inverse(ScannerController.lastScannedTimeGateRotation) * VuforiaManager.Instance.vuforiaBehaviour.transform.rotation;
}
}

ScannerController.lastScannedTimeGateRotation being the scanned target rotation and VuforiaManager.Instance.vuforiaBehaviour.transform.rotation the ARCamera rotation returned by Vuforia.

We have been experiencing this issue since upgrading from Unity 5.3x (Vuforia 5.5.9) to Unity 2018.2.9f1 (Vuforia 8.0.10).
The app works fine on Huawei MediaPad M3 Lite, Samsung Galaxy S9 and Huawei P20.

Thanks -

Development OS (Mac OS X, Windows, Linux): Windows -

Mobile OS and Version: Android 7.0 -

Mobile Device Manufacturer and Model name: Huawei MediaPad M3 -

Do the Vuforia Sample Applications show the same behavior?:

AR Camera spinning

March 12, 2019 - 1:07pm #2

Hello,

The fact that it works fine on other devices leads me to believe this is not Vuforia related.

My only thought is for you to review our migration guides to see if there is anything in Vuforia SDK updates that could have impacted your project:

https://library.vuforia.com/content/vuforia-library/en/articles/Solution/How-To-Migrate-a-Unity-Project.html

Thanks,

Vuforia Engine Support

 

 

Log in or register to post comments