Log in or register to post comments

Unity + Ground Plane + ARCore

May 4, 2020 - 2:35am #2

Hello,

 

We have a Unity (2019.3.12F) app with Vuforia (9.0.12), in order to support ARCore (Vuforia packaged 1.10.0) as a fallback for devices not supported by Vuforia Fusion we have set Unity' Vuforia configuration to "REQUIRED" and toggled on "Include ARCore Library".

GOAL: Our goal is to have users place an object in AR across as many supported devices as possible. 

 

We are using Ground Plane, and have adapted the provided Ground Plane samples script to facilitate this (PlaneManager.cs)

 

PROBLEM: On devices that support ARCore but do not support Vuforia Fusion, an error is triggered and we can not allow a object to be placed in AR. Do we need to have another script for ARCore to take over an place the object itself?



More details:

  • Samsung Device: AR Experience works
  • Xiaomi: No Google Play Services for AR installed. We have a warning showing the experience will not work.
  • Huawei: Google Play Services for AR installed. We have a warning showing the experience will not work. This should not be happening as ARCore should take over?

Unity + Ground Plane + ARCore

May 4, 2020 - 2:36pm #1

Hello @ShadowFactory,

ShadowFactory wrote:

We have a Unity (2019.3.12F) app with Vuforia (9.0.12), in order to support ARCore (Vuforia packaged 1.10.0) as a fallback for devices not supported by Vuforia Fusion we have set Unity' Vuforia configuration to "REQUIRED" and toggled on "Include ARCore Library".

GOAL: Our goal is to have users place an object in AR across as many supported devices as possible. 

This sounds like best practices for your app requirements.

Note that Vuforia Engine does not package ARCore with the SDK, nor with our sample apps. ARCore must be downloaded on device by the user in order for Vuforia Fusion to utilize ARCore.

ShadowFactory wrote:

PROBLEM: On devices that support ARCore but do not support Vuforia Fusion, an error is triggered and we can not allow a object to be placed in AR. Do we need to have another script for ARCore to take over an place the object itself?

If ARCore has been successfully installed on device, and meets the minimum required version per our Supported Versions page (ARCore 1.10+), then Vuforia Fusion should be able to utilize ARCore for device tracking. No additional scripts are necessary.

Suggest that you confirm ARCore has been installed by checking Settings->Applications, that the app is enabled, and updated to the latest version of ARCore (1.16?).

You may also want to confirm that Vuforia::setAllowedFusionProviders has not been changed from the default, FUSION_PROVIDER_ALL. Please see this article for more information: https://library.vuforia.com/content/vuforia-library/en/articles/Training/vuforia-fusion-article.html

More details about the API can be found here: https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1VuforiaRuntimeUtilities.html#a666e71b83e2a9c06f925f18f0e29dfcc

The unmodified version of the Vuforia Engine Ground Plane sample app uses FUSION_PROVIDER_ALL by default.

ShadowFactory wrote:





More details:

  • Samsung Device: AR Experience works
  • Xiaomi: No Google Play Services for AR installed. We have a warning showing the experience will not work.

This is expected behavior if the device is not on the Vuforia Engine recommended device list.

ShadowFactory wrote:
  • Huawei: Google Play Services for AR installed. We have a warning showing the experience will not work. This should not be happening as ARCore should take over?

Agree. This should not be happening unless the version of ARCore installed is less than the minimum recommended version (1.10).

Please send the device model (Settings->About phone/device->Model number), and ADB logs from the device running your app that include Vuforia Engine logging (labeled "AR"). We can take a look.

Thanks,

Vuforia Engine Support

Log in or register to post comments