Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AR Camera not working #1621

Open
Flovermeer opened this issue Jun 2, 2020 · 6 comments
Open

AR Camera not working #1621

Flovermeer opened this issue Jun 2, 2020 · 6 comments
Labels
AR Augmented Reality

Comments

@Flovermeer
Copy link

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

  • Unity version: 2019.3.10f1
    • Scripting Runtime Version:
    • Scripting Backend: Mono
    • Api Compatibility Level: Android 24
  • Mapbox SDK version: 2.1.1
  • The platform you're building to: Android
  • A description of what you're trying to do:
  • Steps to recreate the bug if appropriate: Create an empty project, switch to Android, Import ArCore and ArFoundation. Import Mapbox sdk and run any AR example.
  • Links to your logs are also helpful:

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
Copy link

dm67x commented Jun 8, 2020

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.

@brnkhy brnkhy added the AR Augmented Reality label Sep 21, 2020
@bentuhoekenobi
Copy link

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
Copy link

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
Copy link
Contributor

brnkhy commented Nov 17, 2020

@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
Copy link

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

@ahmedaniss25
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AR Augmented Reality
Projects
None yet
Development

No branches or pull requests

7 participants