Log in or register to post comments

Interference of Vuforia Tracker while using AR Camera and Gyroscope

October 31, 2019 - 2:30am #1

Hello

I am using Unity 2019.1 and Vuforia 8.3.8 to build an app for Android and iOS. It is a native app with a unity AR module that makes use of Vuforia ARCamera.

In one feature, I should be able to switch between AR mode and non - AR mode like pokemon go. I have a gyroscope script attached to the camera to display points of interest in 3D depending on coordinates from the backend

I switch between the AR and non-AR mode by enabling/ disabling the VuforiaBehavior. The gyroscope works perfectly in the non- AR mode and the POI gameobjects remain wherever they are placed. However, in the AR Mode, they start floating in a certain direction and do not stick to the co-ordinates they are supposed to. Also, the direction changes and keeps showing the wrong POI in the real world. Can this be because of Vuforia's device tracker? I am only using the ARCamera and not any image targets. How can I have the live camera feed alone but not have any tracking and let the gyroscope do the positioning of the POIs?

 

Interference of Vuforia Tracker while using AR Camera and Gyroscope

November 18, 2019 - 6:35pm #6

Any updates?

Interference of Vuforia Tracker while using AR Camera and Gyroscope

November 18, 2019 - 6:35pm #5

Thank you for your response mcotora.

I never had the extended tracking feature enabled. But when I tried to implement this https://library.vuforia.com/content/vuforia-library/en/articles/Solution/Configuring-Rotational-Tracking-in-Unity.html  I noticed that the POIs are not floating around like before and remain fixed in their positions. However, this seems to have given rise to another problem.

I have a script that adjusts orientations based on compass and gyro values. If i enable this setting and open the AR screen, the values are conflicting with the compass direction and the screen keeps flickering because the compass values try to update the direction in the view but Vuforia seems to override it. When I disable the Vuforia behavior script, I don't experience this issue.

I am using the RotateWithCompass.cs script from this project https://github.com/yokamots/RotateCamera. When I attach the script to the AR Camera, I experience this issue. 

I want the POIs in the AR View to remain fixed and be visible only when I look towards them with the camera. Please see the attached screenshot

 

AttachmentSize
Image icon ARView.PNG2.55 MB

Interference of Vuforia Tracker while using AR Camera and Gyroscope

November 6, 2019 - 5:54am #4

Hi,

Yes, Extended Tracking enabled via Device Tracker is doing exactly what you described. I would suggest to disable Extended Tracking and test your experience.

Here some info regarding Device Tracker:  https://library.vuforia.com/content/vuforia-library/en/articles/Solution/Configuring-Rotational-Tracking-in-Unity.html

Thank you.

Vuforia Engine Support

 

Interference of Vuforia Tracker while using AR Camera and Gyroscope

October 31, 2019 - 7:50pm #3

Hi mcotora

Thank you for your reply. Yes, I only need the camera feed and not any of the tracking methods of Vuforia because I am not doing any AR recognition. I am using a gyroscope script to place the POIs in the camera view. I don't see any error logs when i switch between AR and non AR modes. 

I want only the gyroscope to take care of the positioning of the gameobjects and I feel vuforia's tracking is causing some changes to their placements in the camera view. When I switch to the non AR view, I enable the normal unity camera and the gyroscope positions the game objects perfectly and they don't float around. Actually when the user switches to the AR view, they should be able to walk around and view the Points of Interest. So when the user moves, does Vuforia perform some kind of positioning depending on the device's movements?

Interference of Vuforia Tracker while using AR Camera and Gyroscope

October 31, 2019 - 5:22am #2

Hi, 

Based on your scenario, in AR-Mode you have both Vuforia and another script accessing the IMU of the device. If there is a conflict accessing the IMU, the log should provide insight. Please keep in mind that when you disable Vuforia all the tracking data, positioning is lost and Vuforia initializes to get all the data.

Do you see any errors when enabling Vuforia for AR-Mode in the log?

Could you also please provide more information regarding the use-case? Based on your last sentence, you need only the camera feed with the script?

Thank you.

Vuforia Engine Support

Log in or register to post comments