I’ve been scouring the forums, documentation, and source code for two days now without any success. I’m working on a seamless portal system for VR, so I would need the position offsets of the Left and Right eye cameras to position my Left and Right eye’s CanvasSceneCapture2D cameras correctly.
Found the answer, see my reply.
As usual, you always manage to find the solution after asking for help, however, in local space, it can easily get converted into World Space though.
GEngine->XRSystem->GetRelativeEyePose(IXRTrackingSystem::HMDDeviceId, EStereoscopicPass::eSSP_LEFT_EYE, LeftEyeRot, LeftEyeLoc);
GEngine->XRSystem->GetRelativeEyePose(IXRTrackingSystem::HMDDeviceId, EStereoscopicPass::eSSP_RIGHT_EYE, RightEyeRot, RightEyeLoc);
You can also do this with left and right direction vectors from the camera position multiplied by 1\2 the interpupillary distance. Useful in material graphs that use camera position, though it definitely has its counter-use cases.
@NotSoAccurateNo1 Thanks, makes sense, however, I wasn’t able to find any interpupillary distance either, although, I was only looking for that quite briefly.