Hi Guys,
I have a stereo image with an IPD of 70mm where I would like to overlay a virtual element.
It seems to me that the new integrated VR support does not expose much customisation and the IPD is stuck at some value around 65mm.
My question is therefore if anyone knows a way to change the IPD in unity 5.2’s integrated VR support.
Kind regards
Jesper
Poupi
2
You can put your camera into an empty gameobject and rescale this gameobject to change the world scale in VR (seems similar to changing the IPD).
@Poupi
@taxfromdk
How to measure what is a current IPD?
Also if I have 2 cameras LEFT and RIGHT how can I set up IPD correctly?
Thanks
I have not had a chance to give it a go yet, but the theory is that you place them under a common parent and scale the parent.
If you need an IPD of 80mm you would set the scale to 80mm/65mm=1.23076.
That is at least what I aim to try next time im near a head mounted display.
I think 65 mm is sort of standard so I assume the default is that.
EyePD
7
I did it like this:
Vector3 leftEyePosition =
UnityEngine.XR.InputTracking.GetLocalPosition(UnityEngine.XR.XRNode.LeftEye);
Vector3 rightEyePosition =
UnityEngine.XR.InputTracking.GetLocalPosition(UnityEngine.XR.XRNode.RightEye);
Debug.Log(Vector3.Distance(leftEyePosition, rightEyePosition));
1 Like