class VRDevice_PS4GAME_TEMPLATESource
VRDevice_PS4 › VRDevice › Managed
Part of generic and platform specific devices
All members, including inherited
Methods 14
proto native void Set2D(bool enabled)GAME_TEMPLATESwitches VR device into 2D "theater" mode.
Don't forget to set appropriate FOV.
At the moment the device uses the render targets of the left eye. These render targets are 8:9 and we are still rendering both eyes. If the feature gets used in a actual gameplay we can extend it to separate set of 16:9 render targets.
enabled- enable/disable flag.
proto native bool ShowHmdServiceDialog()GAME_TEMPLATEPops up HMD service dialog.
Returns: true when dialog was opened and his state was resolved as OK.
proto native bool ShowHmdSetupDialog()GAME_TEMPLATEPops up HMD setup dialog.
Returns: true when dialog was opened and closed successfully.
proto native PSVrDialogStatusEnum GetSetupDialogStatus()GAME_TEMPLATEReturns current setup dialog state.
Returns: dialog state enum.
proto native PSVrDialogStatusEnum GetServiceDialogStatus()GAME_TEMPLATEReturns current service dialog state.
Returns: dialog state enum.
proto native void SetRecenterHeadFlags(PSVrHeadRecenterFlagsEnum flags)GAME_TEMPLATEHMD recentering hint flags setup.
proto native PSVrHeadRecenterFlagsEnum GetRecenterHeadFlags()GAME_TEMPLATEReturns HMD recentering flags.
Returns: recentering enum.
proto native vector GetEyeOffset(VREye eye)GAME_TEMPLATEReturns the eye offset in device space.
Returns: 3D position centered around device space center.
proto native void SetMinOutputColor(int color)GAME_TEMPLATESets up the minimal displayable color.
Setup this value when smears start appearing in dark environments.
proto native void SetEyeFOV(VREye eye, float leftTan, float rightTan, float upTan, float downTan)GAME_TEMPLATEPer eye FOV setup.
Keep in mind that changing the values from device presets may cause user discomfort.
proto native void ResetToDeviceFOV(VREye eye)GAME_TEMPLATEResets the FOV settings to device preset value.
proto native void SetOversamplingFactor(float factor)GAME_TEMPLATESets up the render target size multiplier.
Set this value before the device gets initialized.
proto bool GetHmdTrackingStatus(out PSVrBrightnessRiskEnum bRisk, out PSVrTrackingQualityEnum posQuality, out PSVrTrackingQualityEnum orQuality)GAME_TEMPLATEReturns HMD tracking status.
bRisk- tracked scene brightness risk.
posQuality- precision of the HMD position.
orQuality- precision of tthe HMD orientation.
Returns: false when the HMD port is not open.
proto bool GetMoveTrackingStatus(VRHand hand, out PSVrBrightnessRiskEnum bRisk, out PSVrTrackingQualityEnum posQuality, out PSVrTrackingQualityEnum orQuality)GAME_TEMPLATEReturns Move controller tracking status.
hand- identifier of the contoller.
bRisk- tracked scene brightness risk.
posQuality- precision of the controllers position.
orQuality- precision of the controllers orientation.
Returns: false when the Move port is not open.