Adjust IPD in UE4 4.5.1? Stereo e=XXXX does nothing
Hello,
I'm trying to scale the player up and down, to make him feel very large or very small. I've tried scaling his pawn, but this didn't adjust the IPD. Instead of very big, I just felt very tall. So, I'm attempting to adjust IPD at the same time.
Has anyone been able to do this with UE4 version 4.5.1? I'm not having any luck at all.
I've tried adjusting the IPD with Stereo e=XXXX, but this has no effect on the rendering. Well, the text on the hud moves around a bit, but the 3d world is unchanged.
I've also tried adjusting the IPD in code with
TSharedPtr<class IHeadMountedDisplay> hmd = GetGameInstance()->GetEngine()->HMDDevice;
and then
hmd->SetInterpupilaryDistance(foo);
but I had the same result. Looking through the UE4 source code on github, I can see in OculusRiftHMD.cpp, these commands modify the variable InterpupillaryDistance and then call UpdateStereoRenderingParams(). That function doesn't seem to use the variable at all, except in calculating HudOffset. That corresponds to what I see in game: updating the IPD adjusts the HUD and nothing else.
So - has anyone had any luck modifying IPD in this way? Is there another way to make my user feel huge, or tiny?
I'm trying to scale the player up and down, to make him feel very large or very small. I've tried scaling his pawn, but this didn't adjust the IPD. Instead of very big, I just felt very tall. So, I'm attempting to adjust IPD at the same time.
Has anyone been able to do this with UE4 version 4.5.1? I'm not having any luck at all.
I've tried adjusting the IPD with Stereo e=XXXX, but this has no effect on the rendering. Well, the text on the hud moves around a bit, but the 3d world is unchanged.
I've also tried adjusting the IPD in code with
TSharedPtr<class IHeadMountedDisplay> hmd = GetGameInstance()->GetEngine()->HMDDevice;
and then
hmd->SetInterpupilaryDistance(foo);
but I had the same result. Looking through the UE4 source code on github, I can see in OculusRiftHMD.cpp, these commands modify the variable InterpupillaryDistance and then call UpdateStereoRenderingParams(). That function doesn't seem to use the variable at all, except in calculating HudOffset. That corresponds to what I see in game: updating the IPD adjusts the HUD and nothing else.
So - has anyone had any luck modifying IPD in this way? Is there another way to make my user feel huge, or tiny?
