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

Black screen on AR with Vuforia (iOS only) #692

Closed
Valtensir opened this issue Sep 19, 2022 · 11 comments
Closed

Black screen on AR with Vuforia (iOS only) #692

Valtensir opened this issue Sep 19, 2022 · 11 comments
Labels
ios This issue is specific to the iOS/iPadOS Platform. vuforia

Comments

@Valtensir
Copy link

Describe the bug
When I open the AR scene, the screen goes black, even accepting the request to enable the camera.
I ran only the unity app, and it ran the AR normally.
I'm using the latest package version (2022.2.0).

To Reproduce
Steps to reproduce the behavior:

  1. Create a Vuforia AR scene (image target)
  2. Export for iOS

Expected behavior
Open the camera and run AR normally.

Screenshots
Black screen

Unity (please complete the following information):

  • OS: iOS
  • Version 2022.1.16

Smartphone (please complete the following information):

  • Device: iPhone 12
  • OS: iOS 15.6.1
@dawiddszewczyk dawiddszewczyk added the help wanted Extra attention is needed label Sep 29, 2022
@dawiddszewczyk
Copy link
Collaborator

Hi @Valtensir
Black screen is launch when you try to fast run scene after create Unity Player, could you add into code some delay before you call specified scene which you want to open?

@dinomaskot
Copy link

I'm getting the same thing just trying to run the Demo Project Unity 2022.2 and latest Vuforia

@timbotimbo
Copy link
Collaborator

Sounds like an issue with embedding the right frameworks in xcode.
I haven't had time to play with Vuforia yet, but the last steps in this comment look promising.

@dinomaskot
Copy link

Figured it out. It was the unity version. I was running 2022 unity. When i switched to 2021. Problems solved themselves

@Valtensir
Copy link
Author

Hi @Valtensir Black screen is launch when you try to fast run scene after create Unity Player, could you add into code some delay before you call specified scene which you want to open?

Hi @dawiddszewczyk. I'm using the Addressable Asset system to load my scene, so I already have a delay before open the scene. Anyway I added a delay just in case, but it still doesn't work.

@Valtensir
Copy link
Author

Valtensir commented Oct 4, 2022

Sounds like an issue with embedding the right frameworks in xcode. I haven't had time to play with Vuforia yet, but the last steps in this comment look promising.

Hi @timbotimbo. I followed the instructions but when it says to add the frameworks, the ARFoundationDriver.framework did not appear. In the comment it also says to update the vuforia, something I've also done.

@Valtensir
Copy link
Author

Figured it out. It was the unity version. I was running 2022 unity. When i switched to 2021. Problems solved themselves

Hi. @dinomaskot. What version of unity are you using? I changed to version 2021.3.11 but still the same way.

@dawiddszewczyk
Copy link
Collaborator

Hi @Valtensir
Great Unity version for use is 2021.3.4 version.

@Valtensir
Copy link
Author

Hi @dawiddszewczyk, sorry for the delay in responding. Now it works, but I'm getting a error when vuforia is loading the database.

Captura de Tela 2022-12-19 às 15 04 39

I have a Ground Plane that works fine in another scene.

@timbotimbo
Copy link
Collaborator

timbotimbo commented Dec 19, 2022

The second time that I show up with an old link, lets hope this one does help.

Here they seem to need to include a vuforia folder in the xcode project.
f111fei/react-native-unity-demo#16

The exact folder path might be different, as we have a unityLibrary instead of unityExport. But it can't hurt to see if there is a Vuforia folder in there.

Shouldn't really matter here if you include the project in react or flutter.

@Valtensir
Copy link
Author

Thank you so much @timbotimbo.
The AR is working fine now.
I'm getting a white screen in the first time I open the unity, but it seems to be another issue.

@timbotimbo timbotimbo added vuforia ios This issue is specific to the iOS/iPadOS Platform. and removed help wanted Extra attention is needed labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios This issue is specific to the iOS/iPadOS Platform. vuforia
Projects
None yet
Development

No branches or pull requests

4 participants