googlevr / cardboard

Open source Cardboard SDK and samples
Other
1.48k stars 253 forks source link

[Unity 2020.3.8f1] Cardboard XR plugin 1.70 does not load when ARCore/ARKit is enabled #291

Open TheBricktop opened 3 years ago

TheBricktop commented 3 years ago

Hello, ive just set up project like in the tutorials for the new cardboard plugin for xr and added arfoundation as additional head tracking solution. For some reason stereo rendering is not starting even without arcore. So that could rule out that the arcore is the culprit.

jballoffet commented 3 years ago

Sorry, it's not clear to me what the issue here is. Does the issue take place when using only the Hello Cardboard sample scene and the steps in the quickstart are carefully followed?

MillerGuevara commented 3 years ago

Hi, I have the same problem. I followed the quickstart steps and when I compiled the project the player couldn't move and didn't had the stereoscopic rendering.

TheBricktop commented 3 years ago

Ive noticed that everything started to work after creating new project with clean setup (no urp) and no arfoundation /arcore. But then after ive added the arcore plugin in arfoundation the arcamera engaged in monocular mode and stopped VR mode from kicking in. Is there any conflict between cardboard and arfoundation that we should be aware of?

jballoffet commented 3 years ago

Sorry for the delay here. Thanks for details provided, I confirm that I’m able to reproduce the issue on an Android and an iOS device. After adding ARCore/ARKit support, the Cardboard XR Plugin stopped being loaded on startup (confirmed also by looking at the logs). This issue has been added to our backlog and will be prioritized along with other issues. We'll update this ticket once we have some news about it. Thanks!

ljDevelopment commented 3 years ago

Hi there,

The XR plug-in loaded on startup is the first one that is checked in the settings; that is ARCore, so, Cardboard plugin is not initialized nor started nor working.

The plug-in to use in each scene should be loaded programmatically.

The issue is that accessing by index to de available loaders doesn't work (Unity 2020.3.14f). Yo can see more details in this post.

Does anybody solve working with ARFoundation + Google Cardboard?

Thanks

GabrielR commented 2 years ago

@ljDevelopment Did you find a solution for this? Or create a bug in Unity Issue tracker I could follow?

This is my upvote to have this one fixed. We need this functionality to make XR apps. XR is getting hot and will be even hotter next year with what Apple and Oculus are planning for future XR hardware releases.

Thank you

ti-hardikshah commented 2 years ago

@jballoffet Any update on this? I am still not able to run Cardboard with AR Foundation.

ti-hardikshah commented 2 years ago

I had a test with 1.6,1.7,1.8,1.9 Any version not working with AR Foundation. Is there any other way? Unity Version: 2020.3.20

Warwlock commented 2 years ago

I know it is too late but I have the same problem that I want to track head position. I found that repository but it is Cardboard SDK 1.5 (or 1.4 I don't know, it is just old). Position tracking worked on my phone but it wasn't perfect. Sometimes it loses its position. https://github.com/Aryzon/cardboard-xr-plugin/

GeneralKodenobi commented 2 years ago

Just gonna drop that ive had some success, I mentioned it on this post https://github.com/googlevr/cardboard/issues/313 but still facing a problem that vr doesnt properly start till i leave the app and come back

LauLauHip commented 1 year ago

I'm having the same issue :(

makakaorg commented 1 year ago

I'm having the same issue :(

There is a project template that provides pseudo AR with Cardboard XR Plugin.

LauLauHip commented 1 year ago

I'm having the same issue :(

There is a project template that provides pseudo AR with Cardboard XR Plugin.

I'm just using multiple cameras now since I didn't find any good solution online

pdnellius commented 1 year ago

@LauLauHip can you elaborate on how you're doing this using multiple cameras? Any chance you could share your approach/code? I'm currently trying to get a prototype working using AR Foundation.

TheBricktop commented 1 year ago

@LauLauHip can you elaborate on how you're doing this using multiple cameras? Any chance you could share your approach/code? I'm currently trying to get a prototype working using AR Foundation.

probably just create two cameras that render the scene to the two displays