Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How can I get stereo projection matrix for my canvas.

Discussion in 'AR/VR (XR) Discussion' started by locus84, Aug 14, 2016.

  1. locus84

    locus84

    Joined:
    Mar 30, 2011
    Posts:
    119
    Hi guys.
    Sorry for my bad English.

    I have a script to get a camera's projection matrix and make the target canvas visible to both eyes completely, or cover up both eyes as a loading mask.
    It works perfectly with GoogleVR integration.

    Recently I've added GearVR to my platform support list, but I can't find any related method or properties to get stereo projection matrix from a vr camera.

    How can I get a stereo projection matrix from a camera or
    is there any possible way to make a RectTransform visible to both eye completely?
    Thank you in advance!



    Untitled-1.gif Untitled-2.gif
     
  2. jcowles

    jcowles

    Joined:
    May 25, 2016
    Posts:
    11