Log in or register to post comments

Camera freeze & platform sensor

February 5, 2019 - 8:52am #1


I'm having two problems:

1. Vuforia ground plane using VUFORIA_SENSOR_FUSION stops and freezes environment (other objects that are in the scene, not as ground stage) if the tracked object is out of view (tracking lost).


I have a sphere object in my scene with a big scale and a 360 photo on it so ARCamera position doesn't affect how it looks.

After placing a ground plane object there is a trigger on it that enables the 360 photo.

Rotating the device around to view the photo loses tracking on the ground object and freezes or sticks current view on the camera untill I rotate the device to find the tracked object again.

This is simply reproducable if you place some floating cubes around in scene and then place ground stage object and rotate device around. Is there a way to make this work?


2. Possible solution (but only with ARCore enabled - less supported devices)

I have noticed that this functionality works when using ARCore (I can rotate to view the 360 photo and it doesn't freeze the camera) - with PLATFORM_SENSOR_FUSION mode


I have to check if users device is capable of using ARCore to then tell to go to the Google Play and download.

If the device does not support ARCore then simply tell the user "sorry".

How to do this? Force fusion mode to platform sensor


- Forcing platform sensor doesn't work because if my device supports VUFORIA_SENSOR_FUSION it will automatically use this instead.

The code I'm using to do this:

        VuforiaRuntimeUtilities.SetAllowedFusionProviders(FusionProviderType.PLATFORM_SENSOR_FUSION); set it before init as stated in documentation

        VuforiaRuntime.Instance.InitVuforia();  init

        Camera.main.GetComponent<VuforiaBehaviour>().enabled = true; enable behaviour on camera

        Debug.LogError(VuforiaRuntimeUtilities.GetActiveFusionProvider().ToString());  this then outputs vuforia sensor but should call error (no ARCore)

Why am I doing this? If this would return error I then could direct the user to Google Play to download ARCore if he doesn't have it installed. Else no problem because it will use ARCore

Help appreciated:)

Camera freeze & platform sensor

February 13, 2019 - 8:10am #3


I think is related to an issue I post in other thread, in my case my device Galaxy S7 is not supported on Vuforia ARCore integration (PLATFORM SENSOR) and will run on VUFORIA SENSOR, ground plane technology is working fine on S7.

But after last Vuforia update (8.0) the positional tracking freeze when the device is pointing to the floor, in my case freeze to when pointing to the roof or high angle, so after that moving the device parallel to the floor after a while the tracker back to normal.

In VR mode shows like camera freeze, i think is the tracker that loose rotational tracking.

Anyway something is working strange, Im switching modes with MixedRealityController.SetMode, but seems like change from AR to VR or viceversa does not change the DeviceTracker from Positinoal to Rotational (or viceversa) when the mode is VR or AR_devicetracker.

A simple test, open the vuforia AR VR sample, go to configration and check track device pose, select positional, run the sample and you Will notice when go to VR that the device still positional, when rotate on my S7 and pointing the floor the camera Will freeze.





Camera freeze & platform sensor

February 6, 2019 - 7:52am #2

I'm not sure the issue, maybe I'm not understanding.  If you are looking to see if the device supports ARKit/ARCore (PLATFORM_SENSOR_FUSION), then you let Vuforia start up and if GetActiveFusionProvider equals VUFORIA_VISION_ONLY or VUFORIA_SENSOR_FUSION, then you know it does not support it.


Log in or register to post comments