Log in or register to post comments

Video input not being set as background Vuforia Unity

July 29, 2017 - 11:32am #1

Vuforia SDK Version: 2017.1.0 -

Description with steps to reproduce:

Hi Forum,

I'm relatively new to Unity and Vuforia and have been working on my first AR app, however I seem to have ran into some bumps in the road.

It seems the video input, when received either via webcam or via my Android device isn't being set as background, and so doesn't work as it should. When the webcam is used and is pointed toward an image target the position of the augmented object still updates in the Unity Editor but with no video feed in the scene staying as the in-editor camera background, whereas when it's complied to APK and transferred and installed there is no change to the positioning and still no video feed.

I also noticed the console in Unity shows this error message, indicating that the error originates from something in the Vuforia files possibly in Vuforia.BackgroundPlaneAbstractBehaviour.CreateAndSetVideoMesh ().

Let me know if you'd be able to help, I'm sure it's relatively simple.

Cheers, Oliver

Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object at Vuforia.BackgroundPlaneAbstractBehaviour.CreateAndSetVideoMesh () [0x00000] in :0 at Vuforia.BackgroundPlaneAbstractBehaviour.OnTrackablesUpdated () [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115 at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000b9] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Delegate.cs:443 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MulticastDelegate.cs:71 at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Delegate.cs:415 at Vuforia.DelegateHelper.InvokeDelegate (System.Delegate action, System.Object[] args) [0x00000] in :0 UnityEngine.Debug:LogError(Object) Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[]) Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action) Vuforia.VuforiaARController:UpdateStatePrivate(Boolean, Boolean) Vuforia.VuforiaARController:UpdateState(Boolean, Boolean) Vuforia.DigitalEyewearARController:Update() System.Delegate:DynamicInvoke(Object[]) Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[]) Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action) Vuforia.VuforiaAbstractBehaviour:Update() -

Development OS (Mac OS X, Windows, Linux): Windows -

Mobile OS and Version: 7.0.0 -

Mobile Device Manufacturer and Model name: Samsung Galaxy S6 -

Do the Vuforia Sample Applications show the same behavior?:

Video input not being set as background Vuforia Unity

July 31, 2017 - 11:38am #2

Hello Oliver,

I see you're using Unity 2017.1.0, but what version of Vuforia are you using? Are you seeing this issue in the Vuforia sample project or in your own project?

Thanks,

-Vuforia Support

Log in or register to post comments