Getting a projection matrix in unity
Hey there,
I am trying to write a mirror script in unity accurately. For this i'm trying to get the position, rotation, and projection matrix per eye of the oculus. However I am having a hell of a time getting an accurate per eye projection matrix. There seems to be almost enough data from the OVRPlugin Frustrumf struct but not enough to fully make an accurate calculation. Is there anywhere in the oculus utils for unity to get this data or any calculation anyone can share?
I am trying to write a mirror script in unity accurately. For this i'm trying to get the position, rotation, and projection matrix per eye of the oculus. However I am having a hell of a time getting an accurate per eye projection matrix. There seems to be almost enough data from the OVRPlugin Frustrumf struct but not enough to fully make an accurate calculation. Is there anywhere in the oculus utils for unity to get this data or any calculation anyone can share?
