Search code examples
unity-game-enginegoogle-cardboardstereo-3dgoogle-vr

GoogleVR 1.0.1: stereo cameras are OK in the Unity Game View but too separated when compiled to Android


I'd say the value I have to change is the stereoMultiplier of the StereoController script attached to the main camera. Anyway I think I have changed every single value of GvrViewer, MainCamera and StereoController. Nothing seems to change the separation of the left and right cameras when compiled to the Android smartphone.

I can see a correct separation in the Unity Game View, but when I compile it to the smartphone, the cameras are too separated (see image below).

I think this issue has happened after updating the Smartphone to Android 6.0 Marshmallow (CyanogenMod 13.0), on Samsung S4.


UPDATE: I have updated to GoogleVR 1.0.1. The same problem is still happening.

separation differences between Unity emulator and my real Android device


Solution

  • Changing scale to 0.007 (which is a very similar scale to the objects in the provided demo scene of GoogleVR: 0.003) seems to fix the problem.

    Note: discussed here: https://github.com/googlevr/gvr-unity-sdk/issues/351


    UPDATE: in the previous link, somebody wrote:

    Android app: /sdcard/Cardboard/current_device_params

    all gvr(cardboard) app will use this file --- "current_device_params".

    maybe you should go the url to setup your device profile https://vr.google.com/cardboard/viewerprofilegenerator/

    in addiation, you can also do this:

    How to change Field of View in Google VR SDK for Unity