Package com.jme3.app
Class VREnvironment
java.lang.Object
com.jme3.app.VREnvironment
Deprecated.
The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
             For new Virtual Reality projects, use user libraries that provide OpenXR support.
             See Virtual Reality JME wiki section
             for more information.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidatttach(AppState appState, Application application) Deprecated.Attach the VR environment to the given app state and application.booleanDeprecated.Is the VR compositor is active.Deprecated.Deprecated.Deprecated.Get thecameraused for rendering.floatDeprecated.Get the default aspect ratio.floatDeprecated.Get the default Field Of View (FOV) value.Deprecated.Deprecated.Get the scene observer.Deprecated.Get thesettingsattached to this environment.Deprecated.Get the VR bounds.Deprecated.Get the GUI manager attached to this environment.Deprecated.Get the VR underlying hardware.floatDeprecated.Get the VR headset height from the ground.Deprecated.Get the VR dedicated input.Deprecated.Get the VR mouse manager attached to this environment.Deprecated.Get the VR view manager.booleanDeprecated.Check if the application has a GUI overlay attached.booleanDeprecated.Initialize this VR environment.booleanDeprecated.Check if the VR environment is initialized.booleanDeprecated.Check if the rendering is instanced (see Geometry instancing).booleanisInVR()Deprecated.Check if the VR mode is enabled.booleanDeprecated.Check if the application is configured as a seated experience.booleanDeprecated.booleanDeprecated.Get if the system currently support VR.voidDeprecated.Reset headset pose if seating experience.voidsetDefaultAspect(float defaultAspect) Deprecated.Set the default aspect ratio.voidsetDefaultFOV(float defaultFOV) Deprecated.Set the default Field Of View (FOV) value.voidsetObserver(Spatial observer) Deprecated.Set the scene observer.voidsetSeatedExperience(boolean isSeated) Deprecated.Can be used to change seated experience during runtime.voidsetSettings(AppSettings settings) Deprecated.Set thesettingsattached to this environment.voidsetVRBounds(VRBounds bounds) Deprecated.Set the VR bounds.voidsetVRHeightAdjustment(float amount) Deprecated.Set the VR headset height from the ground.
- 
Field Details- 
vrBindingpublic int vrBindingDeprecated.The underlying system VR API. By default, set toVRConstants.SETTING_VRAPI_OPENVR_VALUE.
 
- 
- 
Constructor Details- 
VREnvironmentDeprecated.
 
- 
- 
Method Details- 
getVRHardwareDeprecated.Get the VR underlying hardware.- Returns:
- the VR underlying hardware.
 
- 
setVRBoundsDeprecated.Set the VR bounds.- See Also:
 
- 
getVRBoundsDeprecated.Get the VR bounds.- Returns:
- the VR bounds.
- See Also:
 
- 
getVRinputDeprecated.Get the VR dedicated input.- Returns:
- the VR dedicated input.
 
- 
getVRViewManagerDeprecated.Get the VR view manager.- Returns:
- the VR view manager.
 
- 
getVRGUIManagerDeprecated.Get the GUI manager attached to this environment.- Returns:
- the GUI manager attached to this environment.
 
- 
getVRMouseManagerDeprecated.Get the VR mouse manager attached to this environment.- Returns:
- the VR mouse manager attached to this environment.
 
- 
setSeatedExperiencepublic void setSeatedExperience(boolean isSeated) Deprecated.Can be used to change seated experience during runtime.- Parameters:
- isSeated-- trueif designed for sitting,- falsefor standing/roomscale
- See Also:
 
- 
isSeatedExperiencepublic boolean isSeatedExperience()Deprecated.Check if the application is configured as a seated experience.- Returns:
- trueif the application is configured as a seated experience and- falseotherwise.
- See Also:
 
- 
setVRHeightAdjustmentpublic void setVRHeightAdjustment(float amount) Deprecated.Set the VR headset height from the ground.- Parameters:
- amount- the VR headset height from the ground.
- See Also:
 
- 
getVRHeightAdjustmentpublic float getVRHeightAdjustment()Deprecated.Get the VR headset height from the ground.- Returns:
- the VR headset height from the ground.
- See Also:
 
- 
getObserverDeprecated.Get the scene observer. If no observer has been set, this method return the applicationcamera.- Returns:
- the scene observer.
- See Also:
 
- 
setObserverDeprecated.Set the scene observer. The VR headset will be linked to it. If no observer is set, the VR headset is linked to the applicationcamera.- Parameters:
- observer- the scene observer.
 
- 
getDefaultFOVpublic float getDefaultFOV()Deprecated.Get the default Field Of View (FOV) value.- Returns:
- the default Field Of View (FOV) value.
- See Also:
 
- 
setDefaultFOVpublic void setDefaultFOV(float defaultFOV) Deprecated.Set the default Field Of View (FOV) value.- Parameters:
- defaultFOV- the default Field Of View (FOV) value.
- See Also:
 
- 
getDefaultAspectpublic float getDefaultAspect()Deprecated.Get the default aspect ratio.- Returns:
- the default aspect ratio.
- See Also:
 
- 
setDefaultAspectpublic void setDefaultAspect(float defaultAspect) Deprecated.Set the default aspect ratio.- Parameters:
- defaultAspect- the default aspect ratio.
- See Also:
 
- 
getSettingsDeprecated.Get thesettingsattached to this environment.- Returns:
- the settingsattached to this environment.
- See Also:
 
- 
setSettingsDeprecated.Set thesettingsattached to this environment.- Parameters:
- settings- the- settingsattached to this environment.
- See Also:
 
- 
isVRSupportedpublic boolean isVRSupported()Deprecated.Get if the system currently support VR.- Returns:
- trueif the system currently support VR and- falseotherwise.
 
- 
isInVRpublic boolean isInVR()Deprecated.Check if the VR mode is enabled.- Returns:
- trueif the VR mode is enabled and- falseotherwise.
 
- 
isInstanceRenderingpublic boolean isInstanceRendering()Deprecated.Check if the rendering is instanced (see Geometry instancing).- Returns:
- trueif the rendering is instanced and- falseotherwise.
 
- 
isSwapBufferspublic boolean isSwapBuffers()Deprecated.
- 
hasTraditionalGUIOverlaypublic boolean hasTraditionalGUIOverlay()Deprecated.Check if the application has a GUI overlay attached.- Returns:
- trueif the application has a GUI overlay attached and- falseotherwise.
 
- 
isInitializedpublic boolean isInitialized()Deprecated.Check if the VR environment is initialized. A call to theinitialize()method should set this value totrue- Returns:
- trueif the VR environment is initialized and- falseotherwise.
 
- 
compositorAllowedpublic boolean compositorAllowed()Deprecated.Is the VR compositor is active.- Returns:
- trueif the VR compositor is active and- falseotherwise.
 
- 
resetSeatedPosepublic void resetSeatedPose()Deprecated.Reset headset pose if seating experience.
- 
getAppStateDeprecated.
- 
getApplicationDeprecated.
- 
getCameraDeprecated.Get thecameraused for rendering. If the VR mode isactive, this method return a dummy camera, otherwise, this method return the camera of the attached application.- Returns:
- the camera attached used for rendering.
 
- 
getDummyCameraDeprecated.
- 
atttachDeprecated.Attach the VR environment to the given app state and application. This method should be called within thestateAttached(com.jme3.app.state.AppStateManager)method from the app state.- Parameters:
- appState- the app state to attach.
- application- the application to attach.
 
- 
initializepublic boolean initialize()Deprecated.Initialize this VR environment. This method enable the system bindings and configure all the VR system modules. A call to this method has to be made before any use of VR capabilities.- Returns:
- trueif the VR environment is successfully initialized and- falseotherwise.
 
 
-