12-15-2016 05:58 AM
01-09-2017 03:53 AM
01-09-2017 04:10 AM
01-09-2017 05:58 AM
Dragonfrost said:
What exactly are you trying to do and how?
trackerAnchor.localRotation = tracker.orientation;
centerEyeAnchor.localRotation = VR.InputTracking.GetLocalRotation(VR.VRNode.CenterEye);
leftEyeAnchor.localRotation = monoscopic ? centerEyeAnchor.localRotation : VR.InputTracking.GetLocalRotation(VR.VRNode.LeftEye);
rightEyeAnchor.localRotation = monoscopic ? centerEyeAnchor.localRotation : VR.InputTracking.GetLocalRotation(VR.VRNode.RightEye);
trackerAnchor.localPosition = tracker.position;
centerEyeAnchor.localPosition = VR.InputTracking.GetLocalPosition(VR.VRNode.CenterEye);
leftEyeAnchor.localPosition = VR.InputTracking.GetLocalPosition(VR.VRNode.LeftEye) + new Vector3(-0.033f, 0, 0);
rightEyeAnchor.localPosition = VR.InputTracking.GetLocalPosition(VR.VRNode.RightEye)+ new Vector3(0.033f, 0, 0);
print("Left eye position: " + leftEyeAnchor.localPosition);print("Right eye position: " + rightEyeAnchor.localPosition);print("IPD: " + (rightEyeAnchor.localPosition - leftEyeAnchor.localPosition));
So how would I achieve this? If I could just manually insert the IPD somehow, this would be fine.
But I get the feeling it`s not that straight forward afterall. Is there something I missing?
Maybe the Rift Sensor provides more than just IPD and position?
I hope this explains my problem a little better, if not feel free to ask.
(Sorry for the formatting, it simply puts the code boxes where it wants...)
01-09-2017 06:54 AM