Hello ,
I have Unity 2019.3.12f1 and Vuforia 9.1.7 .I have ARCamera which Im running some animation when camera opens .The camera is added to the scene but not active until I activate the ARCamera via the the SetActive(true) code .
Sometime Vuforia fails to initialize which will result in some green screen with message Vuforia failed to initialize and sometimes the camera and AR opens but the background is black and I see frame rate drops .On Android ,I find this message ErrorSpacePayload='ArStatusErrorSpace::AR_ERROR_NOT_YET_AVAILABLE'] in Logcat
The issue happens on Android and much less on IPhone ,my inquiy is :
-How can I make sure the Vuforia is ready before the Camera is opened ? I cant find a way to hook into the code and test this .And if Vuforia is not ready what should I do ,try to open it again ?
-What could be the reasons these errors happen ?
-What option of the camera device mode (Mode_Default ,Optimize_Speed,Optimize_Quality ) causes less frame rate drop and enhance animation performance in the AR experience .
Thanks in advance .
Regards
Ayad
Hi,
Hi,
Could you please confirm the Android/iOS device you are seeing this?
Would it be possible to get the entire logcat dump using $ adb logcat AR:D Unity:D *:S after you reproduced the issue?
Thank you for getting back
Thank you for getting back quickly .
Hi,
Hi,
I believe the issue might be regarding the instantiation process. If you only instantiate the camera in a non-ar scene, then it will fail as first you need to init Vuforia Engine. You have this error: AR_ERROR_NOT_YET_AVAILABLE which is related to ARCore
How do you suggest I do this
How do you suggest I do this properly ,what is the code and the order it should be implemented ? And what other cases should trigger that ARCore error ?
Regards
Ayad
Hello ,
Hello ,
Can you help clarify what is the code and the order it should be implemented and what other cases should trigger that ARCore error ?
Regards
Ayad
Can you please help how to
Can you please help how to make sure ARCamera is ready before setting the ARCamera to active ?
Regards
Ayad