Hello,
I did search around forum and found some topics related to this one, but still no luck.
I start with the Image Target sample, and then import the Google Cardboard SDK, add the "StereoController" to the Camera object under the ARCamera one.
I also know that both Vuforia and Google Cardboard have their own custom UnityAppController (VuforiaNativeRendererController and CardboardAppController).
To make it simple, I just copy all methods in the Vuforia one to the Cardboard one (only the method "shouldAttachRenderDelegate" actually).
Then I got black screen on the device. I also tried to do some modification on the CardboardAppController (disable the logic that overrides the "createUnityView"), then I can touch on the screen, as with some random touches, I could enable the flashlight of the camera. So i guess, the camera is open, but nothing is renderred on the screen.
Check the log from XCode, I found these messages:
2015-07-01 04:00:56.714 vuforiademo[3661:309896] *** -[AVCaptureVideoDataOutput setVideoSettings:] - videoSettings dictionary contains one or more unsupported (ignored) keys: ( Height, Width ) cameraDeviceGetVideoMode Using default scene scale for device: 1 Vuforia.QCARAbstractBehaviour:ConfigureVideoBackground(Boolean) Vuforia.CameraDeviceImpl:Init(CameraDirection) Vuforia.QCARAbstractBehaviour:StartQCAR(Boolean, Boolean) Vuforia.QCARAbstractBehaviour:Start() (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65) 2015-07-01 04:00:56.790 vuforiademo[3661:309896] ERROR/AR(3661) 2015-07-01 04:00:56: VideoBackgroundConfig with screen size of zero received, skipping config step
From others posts, I understand that something is wrong during the initialization step of Vuforia, and it would be fixed by merging the VuforiaNativeRendererController with the CardboardAppController as what I did above. But still no result now.
I understand that this would be much related to the Cardboard SDK, but can you guys tell me any hints on this?
Thank you very much!