Forum Discussion
etayrien
12 years agoHonored Guest
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?
2 Replies
Replies have been turned off for this discussion
- PatimPatamProtegeHi there, if you go to "World Settings" you will see there is a group called "VR" with the var "World to Meters", set to 100 by default; i think this is what you are looking for.
I believe it scales everything that needs to be scaled automatically (not just IPD but also the head-neck model for instance). - artyom17Expert ProtegeAlso can use 'stereo w2m=nnn' console command to change it on-fly.
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
- 9 months agoAnonymous
- 5 months ago