mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
724 stars 210 forks source link

AR Camera not working #1621

Open Flovermeer opened 4 years ago

Flovermeer commented 4 years ago

Note: If this is a bug or support ticket, please provide the following information:

Hi, I'm trying to run the AR examples from the mapbox sdk, but the camera stays black (or blue, it depends of the examle). I've installed ARCore and ARFoundation. What can I do to make it work ?

Thanks

dm67x commented 4 years ago

You only need to import Mapbox SDK with MapboxAR. The SDK will automatically import GoogleARCore and UnityARInterface. Try to import only SDK without importing ARFoundation and ARCore from Unity Package Manager.

bentuhoekenobi commented 4 years ago

I think we're getting the same issue. Still trying to repro it on multiple devices - but did you get anywhere with this? Did you fix it?

ashleyjamesbrown commented 4 years ago

there are ARCORE errors on scripts if you JUST install the unity package (using 2019.4)

Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs(32,23): error CS0234: The type or namespace name 'SpatialTracking' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

brnkhy commented 3 years ago

@asheemmamoowala I don't know much about AR but I think you might need to install ArFoundation package from PackageManager to fix that error. Our SDK AR doesn't use ArFoundation but since Unity moved some classes from core to that package, sdk isn't able to find those files.

Bullseye25 commented 3 years ago

Anyone solve this issue? I have been following this link [https://github.com/mapbox/mapbox-unity-sdk/issues/1459] it helped me solve the errors but AR camera isn't working on Android

ahmedaniss25 commented 3 years ago

Problem fixed here : https://youtu.be/c6Zbqm5Fys8