Log in or register to post comments

VUFORIA MODEL TARGET - BLUESTACKS

April 22, 2020 - 3:07am #1

Hi, I'm trying to build an AR app for desktop, based on model targets based out of unity. As vuforia doesn't support desktop PC platform, I'm using an Android emulator - BlueStacks to run the app on my laptop.

The app starts with normal 2d scene but switches to AR with the press of a button, it it implemented with 2 scenes, the first scene consists of usual unity camera where as the second scene has AR camera with model target. From the second scene, user can go back to the first scene and and can again open AR scene.

Everything's working fine on mobile, and also worked perfectly on BlueStacks when installed and tried on high configuration laptop with an integrated graphic (RTX 2060) card .It was to access the camera feed from laptops cam without any problem even if I revisit AR scene multiple times.

when I run the same app on other laptop with BlueStacks (8/16 GB ram and xeon processor/ Intel i5) it was able to access the camera for the first time opened but the camera feed is black & white with green and purple distortions but the tracking is working. When I go back and again come to AR scene, the entire screen becomes light pink/purple.

I'm stuck at this, it would be awesome if I can get some help resolving this issue.

Unity editor - 2018.4.12
VUFORIA - 8.38

VUFORIA MODEL TARGET - BLUESTACKS

April 23, 2020 - 12:46am #4

Hi,

Yes, this was a bug that we fixed with 8.5.8.

Thank you.

Vuforia Engine Support

VUFORIA MODEL TARGET - BLUESTACKS

April 22, 2020 - 3:30pm #3

Got it, thanks for the reply. I am also getting an error sometimes when when I switch between AR & non-AR Scenes, The following is the error I'm getting, could you please help me with this: 

 

Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added. Key: 0

  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <e1319b7195c343e79b385cd3aa43f5dc>:0

  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0

  at Vuforia.StateManager.UpdateTrackablePoses (UnityEngine.Vector3 positionalOffset, UnityEngine.Quaternion rotationalOffset, Vuforia.TrackerData+TrackableResultData[] trackableResultDataArray, Vuforia.TrackerData+VuMarkTargetResultData[] vuMarkResultDataArray, Vuforia.VuforiaManager+TrackableIdPair originTrackableID, System.Int32 frameIndex, System.Boolean updateTrackableStates) [0x00024] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.StateManager.UpdateTrackablePoses (UnityEngine.Vector3 positionalOffset, UnityEngine.Quaternion rotationalOffset, Vuforia.TrackerData+TrackableResultData[] trackableResultDataArray, Vuforia.TrackerData+VuMarkTargetResultData[] vuMarkResultDataArray, Vuforia.VuforiaManager+TrackableIdPair originTrackableID, System.Int32 frameIndex) [0x00000] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.VuforiaManager.UpdateTrackers (Vuforia.TrackerData+FrameState frameState) [0x002a6] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.VuforiaManager.Update (UnityEngine.ScreenOrientation counterRotation, System.Boolean& reapplyOldState) [0x0018c] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.VuforiaARController.UpdateStatePrivate (System.Boolean forceUpdate, System.Boolean reapplyOldState) [0x00061] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.VuforiaARController.UpdateState (System.Boolean forceUpdate, System.Boolean reapplyOldState) [0x0000c] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at Vuforia.DigitalEyewearARController.Update () [0x00000] in <21bfe61d2ac241f6a9131b858645aad9>:0

  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)

  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <e1319b7195c343e79b385cd3aa43f5dc>:0

   --- End of inner exception stack trace ---

  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <e1319b7195c343e79b385cd3aa43f5dc>:0

  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0

  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <e1319b7195c343e79b385cd3aa43f5dc>:0

  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <e1319b7195c343e79b385cd3aa43f5dc>:0

  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0

  at Vuforia.DelegateHelper.InvokeDelegate (System.Delegate action, System.Object[] args) [0x0000f] in <21bfe61d2ac241f6a9131b858645aad9>:0

UnityEngine.Debug:LogError(Object)

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)

Vuforia.VuforiaBehaviour:Update()

VUFORIA MODEL TARGET - BLUESTACKS

April 22, 2020 - 4:36am #2

Hi,

We do not support PC as a platform however we do provide a "good" iteration process. Using a webcam you can test your app.

Unfortunately we do not support emulators.

Thank you.

Vuforia Engine Support

 

Log in or register to post comments