Forum Discussion
Fredrum
10 years agoExpert Protege
Change/Override Camera IPD/onterocular
Hi,
does anyone know how I can manually change or override the IPD/interocular of a camera in Unreal?
If I don't want to use what is being set in the user prefs.
Ie I want to alter the distance between the two cameras in the stereo pair.
Cheers
Fred
does anyone know how I can manually change or override the IPD/interocular of a camera in Unreal?
If I don't want to use what is being set in the user prefs.
Ie I want to alter the distance between the two cameras in the stereo pair.
Cheers
Fred
12 Replies
Replies have been turned off for this discussion
- owenwpExpert ProtegeIt doesn't modify the scene at all. World scale only affects VR device tracking and rendering at this point, it has nothing to do with the simulation. It is how you define the relationship between game units and real world units.
Maybe there is some sort of bug, but your use case is precisely what that setting exists for. - mkosobucki_setaHonored GuestI just had the same problem and found out, that it's implemented.
There are VR settings calledFHMDSettings::CameraScale3D
andFHMDSettings::PositionScale3D
These values are multipliers used by low-level rendering routines of HMD plugins (at least for Rift and Gear VR, these are the ones I checked). HMD head model and positional tracking offsets are multiplied by them.
As of 4.10, they can be changed on runtime only through console commands:
STEREO CS=0.1
STEREO PS=0.1
Calling as above, results in head model ten times smaller.
Console commands can be called through "Execute Console Command" blueprint node.
To see all possible parameters of HMD, look atFHeadMountedDisplay::Exec()
in HeadMountedDisplayCommon.cpp
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 ago
- 2 years ago