Log in or register to post comments

How to change ARCore Requirements at Runtime?

September 11, 2019 - 11:34pm #1

I have a project in which there are multiple Scenes using Vuforia.

1st Scene: Uses basic Image Target with Extended Tracking

2nd Scene: Uses Multi Image Targets with Extended Tracking

3rd Scene: Uses Multi Image Targets with no Extended Tracking

 

I have ARCore Requirement set to REQUIRED in Vuforia Configuration. Google Play Services for AR is installed. I'm using a Samsung Galaxy Tab S4.

 

The first 2 Scenes work properly with expected results.

The 3rd Scene, shows a weird behaviour where the Model keeps resetting or goes of the Screen whenever I move the Camera. This doesn't happen when the Google Play Services for AR.

 

If I keep the ARCore Requirement to DONT_USE, the 3rd Scene works properly.

 

How can I change the ARCore Requirement at Runtime so as to change it based on the Scene where it is REQUIRED and where it's not?

How to change ARCore Requirements at Runtime?

September 12, 2019 - 5:54am #4

Hi,

I don't believe that will solve the issue, as if you turn it off when initializing Vuforia, the other 2 scenes will not work with Extended Tracking.

Reading your first post again, you can stop the device tracker aka extended tracking in your scene by toggling off the PositionalDeviceTracker.

We demo toggling on and off the DeviceTracker in our Vuforia Core samples asset, scene: 3-ImageTargets, script: TrackableSettings.cs

If this doesn't work, please provide more info on the 3rd scene.

Thank you.

Vuforia Engine Support

How to change ARCore Requirements at Runtime?

September 12, 2019 - 4:07am #3

Could you tell me how to set a FusionProviderType? That might solve the problem for me. If not, I'll post video samples here explaining the problem.

How to change ARCore Requirements at Runtime?

September 12, 2019 - 2:19am #2

Hi,

Toggling the ARCore requirement on and off during run-time is not possible. You can change the requirement only when initializing Vuforia via the FusionProviderType or when you build the app.

link to our API: https://library.vuforia.com/content/vuforia-library/en/reference/unity/namespaceVuforia.html#afa43fb4756bd67edb0ea1bca50033dce

I would try to understand why it's not working as expected in the 3rd scene and in the other 2 scene the experience is as desired.

Could you please explain more when it is not reproducible in the 3rd-scene? you mentioned that this doesn't happen when the Google Play Service for AR is installed?

Thank you.

Vuforia Engine Support

 

Log in or register to post comments