Log in or register to post comments

Different Eye Distortions

November 5, 2015 - 6:44am #1

Dear AR Experts,

I just set up the AR/VR scene in Unity 4.6.5 following the instructions and using CardboardSDK 5.0.

Things went fine so far, but unfortunately the left eye has a completely wrong distortion while the right one and the VR scene are alright. You can get a better idea from the attached picture.

Does anyone have a clue what went wrong?

Thanks a lot in advance


Image icon Screenshot_2015-11-05-15-36-47.png1.37 MB

Different Eye Distortions

November 18, 2015 - 4:52am #6

Unity 4.6.7 should be fine for Cardboard, but I recommend upgrading to Unity 4.6.9 (the latest version).

Have you tried the Cardboard DemoScene which you can download from the Cardboard website (without Vuforia) ? From the screenshot you joined, it looks like it could be a general issue with Cardboard, as Vuforia should not play a role in the viewport distortion effect.

Also, as mentioned in the integration guide, make sure to set the boolean flag debugDisableNativeDistortion  to true

Different Eye Distortions

November 6, 2015 - 2:57am #5

Thank you for your answer Alessandro!

I checked these settings again and it is allright.

It is pretty curious that both versions make trouble and even on different systems.

Do you know about the Unity version compatibility? I have 4.6.7f1 installed as suggested in the description.

Is it going well for everybody else?

Different Eye Distortions

November 6, 2015 - 12:11am #4

The line:

Vuforia.VuforiaBehaviour.Instance.ApplyCorrectedProjectionMatrix(proj, eye == Cardboard.Eye.Left);

should be placed after this code:

    FixProjection(ref proj, near, far, ipdScale);
    camera.projectionMatrix = proj;

    if (Application.isEditor) {
      //So you can see the approximate frustum in Scene view when the camera is selected.
      camera.fieldOfView = 2 * Mathf.Atan(1 / proj[1, 1]) * Mathf.Rad2Deg;
    // ADD line of code here:...


Also, check the near and far clipping planes of your Left / Right and Main Cameras.


Different Eye Distortions

November 5, 2015 - 9:20am #3

I set up an project with CardboardSDK 0.5.1, also works so far but has another curious problem:

If a taget is tracked, the left eye turns completly black, the right eye works properly.

When tracking is lost, the left eye video returns immediatley.

Am I the only one experiencing this issues?

Different Eye Distortions

November 5, 2015 - 7:41am #2

Can someone tell me where following line exacly has to be placed in the CardboardEye.cs?

Vuforia.VuforiaBehaviour.Instance.ApplyCorrectedProjectionMatrix(proj, eye == Cardboard.Eye.Left);

In the Guide it is said it has to be around line 145, but this line is not empty.

Log in or register to post comments