Forum Discussion
zboson
10 years agoSuperstar
stereo seperation and stereo convergence with the Unity camera and a custom renderer
I have created a distributed ray tracer using a shader in Unity. I would like to show this in stereo and be able to navigate with my Oculus Rfit. What I have done so far is create two identical qua...
vrdaveb
9 years agoOculus Staff
The simplest way is probably to use
Vector3.Distance(UnityEngine.VR.InputTracking.GetLocalPosition(UnityEngine.VR.VRNode.LeftEye), UnityEngine.VR.InputTracking.GetLocalPosition(UnityEngine.VR.VRNode.RightEye)).
If you are using OVRCameraRig, you can get the scaled value using
Vector3.Distance(rig.leftEyeAnchor.position, rig.rightEyeAnchor.position)
Vector3.Distance(UnityEngine.VR.InputTracking.GetLocalPosition(UnityEngine.VR.VRNode.LeftEye), UnityEngine.VR.InputTracking.GetLocalPosition(UnityEngine.VR.VRNode.RightEye)).
If you are using OVRCameraRig, you can get the scaled value using
Vector3.Distance(rig.leftEyeAnchor.position, rig.rightEyeAnchor.position)
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 12 months ago
- 6 months ago
- 3 years ago