04-12-2018 01:35 PM
04-16-2018 12:41 AM
07-30-2021 08:08 AM - edited 08-03-2021 02:16 AM
For version 1.26 I've found this solution:
ovrEyeRenderDesc lerd = ovr_GetRenderDesc(hmd, ovrEye_Left, hmdDesc.DefaultEyeFov[0]);
ovrEyeRenderDesc rerd = ovr_GetRenderDesc(hmd, ovrEye_Right, hmdDesc.DefaultEyeFov[0]);
float ipd = abs(lerd.HmdToEyePose.Position.x) + abs(rerd.HmdToEyePose.Position.x);
I'm using a Rift S which has software IPD, so I don't know if it works with older models as well. If you multiply by 1000, you should get to millimetres.