Package com.jme3.app
Class VRConstants
java.lang.Object
com.jme3.app.VRConstants
Some constants dedicated to the VR module.
- Since:
- 3.1.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
An AppSettings parameter that set the default aspect ratio.static final String
An AppSettings parameter that set the default field of view (FOV) value.static final String
An AppSettings parameter that set if Multi Sample Anti Aliasing has to be enabled.static final String
An AppSettings parameter that set if the VR rendering has to be disabled, regardless VR API and devices are presents.static final String
An AppSettings parameter that set if a mirror rendering has to be displayed on the screen.static final String
An AppSettings parameter that set to invert the eyes of the HMD.static final String
An AppSettings parameter that set if the GUI surface has to be curved.static final String
An AppSettings parameter that set if the GUI has to be displayed even if it is behind objects.static final String
An AppSettings parameter that set if instance rendering has to be used.static final String
An AppSettings parameter that set if the GUI has to be ignored.static final String
An AppSettings parameter that set if the VR user is seated.static final String
An AppSettings parameter that set if the VR compositor has to be used.static final String
An AppSettings parameter that set if the rendering has to use two eyes, regardless of VR API detection (turning this setting on without a VR system should lead to errors).static final String
An AppSettings parameter that specifies the underlying VR API.static final int
Deprecated.static final int
The identifier of the OpenVR from LWJGL system.static final int
Deprecated.static final int
Deprecated. -
Method Summary
-
Field Details
-
SETTING_USE_COMPOSITOR
An AppSettings parameter that set if the VR compositor has to be used.Type:
boolean
Usage:appSettings
.put
(VRConstants.SETTING_USE_COMPOSITOR, value)- See Also:
-
SETTING_VR_FORCE
An AppSettings parameter that set if the rendering has to use two eyes, regardless of VR API detection (turning this setting on without a VR system should lead to errors).Type:
boolean
Usage:appSettings
.put
(VRConstants.SETTING_VR_FORCE, value)- See Also:
-
SETTING_FLIP_EYES
An AppSettings parameter that set to invert the eyes of the HMD. Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_FLIP_EYES, value)- See Also:
-
SETTING_GUI_OVERDRAW
An AppSettings parameter that set if the GUI has to be displayed even if it is behind objects. Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_GUI_OVERDRAW, value)- See Also:
-
SETTING_GUI_CURVED_SURFACE
An AppSettings parameter that set if the GUI surface has to be curved. Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_GUI_CURVED_SURFACE, value)- See Also:
-
SETTING_ENABLE_MIRROR_WINDOW
An AppSettings parameter that set if a mirror rendering has to be displayed on the screen. Runs faster when set tofalse
. Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_ENABLE_MIRROR_WINDOW, value)- See Also:
-
SETTING_DISABLE_VR
An AppSettings parameter that set if the VR rendering has to be disabled, regardless VR API and devices are presents. Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_DISABLE_VR, value)- See Also:
-
SETTING_SEATED_EXPERIENCE
An AppSettings parameter that set if the VR user is seated. Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_SEATED_EXPERIENCE, value)- See Also:
-
SETTING_NO_GUI
An AppSettings parameter that set if the GUI has to be ignored. Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_NO_GUI, value)- See Also:
-
SETTING_INSTANCE_RENDERING
An AppSettings parameter that set if instance rendering has to be used. This setting requires some vertex shader changes (see Common/MatDefs/VR/Unshaded.j3md). Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_INSTANCE_RENDERING, value)- See Also:
-
SETTING_DISABLE_MSAA
An AppSettings parameter that set if Multi Sample Anti Aliasing has to be enabled. Type:boolean
Usage:appSettings
.put
(VRConstants.SETTING_DISABLE_MSAA, value)- See Also:
-
SETTING_DEFAULT_FOV
An AppSettings parameter that set the default field of view (FOV) value. Type:float
Usage:appSettings
.put
(VRConstants.SETTING_DEFAULT_FOV, value)- See Also:
-
SETTING_DEFAULT_ASPECT_RATIO
An AppSettings parameter that set the default aspect ratio. Type:float
Usage:appSettings
.put
(VRConstants.SETTING_DEFAULT_ASPECT_RATIO, value)- See Also:
-
SETTING_VRAPI
An AppSettings parameter that specifies the underlying VR API. Possible values are:
SETTING_VRAPI_OPENVR_VALUE
: Use OpenVR binding.SETTING_VRAPI_OSVR_VALUE
: Use OSVR binding.SETTING_VRAPI_OPENVR_LWJGL_VALUE
: Use OpenVR binding from LWJGL.SETTING_VRAPI_OCULUSVR_VALUE
: Use Oculus Rift binding binding.
int
Usage:appSettings
.put
(VRConstants.SETTING_VRAPI, value)- See Also:
-
SETTING_VRAPI_OPENVR_VALUE
Deprecated.The identifier of the OpenVR system. Deprecated as only the lwjgl OpenVr version has been upgraded to modern action based inputs -
SETTING_VRAPI_OSVR_VALUE
Deprecated.The identifier of the OSVR system. Deprecated as an OpenVr system should be used instead for a non vender specific api -
SETTING_VRAPI_OPENVR_LWJGL_VALUE
public static final int SETTING_VRAPI_OPENVR_LWJGL_VALUEThe identifier of the OpenVR from LWJGL system. -
SETTING_VRAPI_OCULUSVR_VALUE
Deprecated.The identifier of the Oculus Rift system. Deprecated as an OpenVr system should be used instead (and the rift itself is discontinued)
-