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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
atttach
(AppState appState, Application application) Deprecated.Attach the VR environment to the given app state and application.boolean
Deprecated.Is the VR compositor is active.Deprecated.Deprecated.Deprecated.Get thecamera
used for rendering.float
Deprecated.Get the default aspect ratio.float
Deprecated.Get the default Field Of View (FOV) value.Deprecated.Deprecated.Get the scene observer.Deprecated.Get thesettings
attached to this environment.Deprecated.Get the VR bounds.Deprecated.Get the GUI manager attached to this environment.Deprecated.Get the VR underlying hardware.float
Deprecated.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.boolean
Deprecated.Check if the application has a GUI overlay attached.boolean
Deprecated.Initialize this VR environment.boolean
Deprecated.Check if the VR environment is initialized.boolean
Deprecated.Check if the rendering is instanced (see Geometry instancing).boolean
isInVR()
Deprecated.Check if the VR mode is enabled.boolean
Deprecated.Check if the application is configured as a seated experience.boolean
Deprecated.boolean
Deprecated.Get if the system currently support VR.void
Deprecated.Reset headset pose if seating experience.void
setDefaultAspect
(float defaultAspect) Deprecated.Set the default aspect ratio.void
setDefaultFOV
(float defaultFOV) Deprecated.Set the default Field Of View (FOV) value.void
setObserver
(Spatial observer) Deprecated.Set the scene observer.void
setSeatedExperience
(boolean isSeated) Deprecated.Can be used to change seated experience during runtime.void
setSettings
(AppSettings settings) Deprecated.Set thesettings
attached to this environment.void
setVRBounds
(VRBounds bounds) Deprecated.Set the VR bounds.void
setVRHeightAdjustment
(float amount) Deprecated.Set the VR headset height from the ground.
-
Field Details
-
vrBinding
public int vrBindingDeprecated.The underlying system VR API. By default, set toVRConstants.SETTING_VRAPI_OPENVR_VALUE
.
-
-
Constructor Details
-
VREnvironment
Deprecated.
-
-
Method Details
-
getVRHardware
Deprecated.Get the VR underlying hardware.- Returns:
- the VR underlying hardware.
-
setVRBounds
Deprecated.Set the VR bounds.- See Also:
-
getVRBounds
Deprecated.Get the VR bounds.- Returns:
- the VR bounds.
- See Also:
-
getVRinput
Deprecated.Get the VR dedicated input.- Returns:
- the VR dedicated input.
-
getVRViewManager
Deprecated.Get the VR view manager.- Returns:
- the VR view manager.
-
getVRGUIManager
Deprecated.Get the GUI manager attached to this environment.- Returns:
- the GUI manager attached to this environment.
-
getVRMouseManager
Deprecated.Get the VR mouse manager attached to this environment.- Returns:
- the VR mouse manager attached to this environment.
-
setSeatedExperience
public void setSeatedExperience(boolean isSeated) Deprecated.Can be used to change seated experience during runtime.- Parameters:
isSeated
-true
if designed for sitting,false
for standing/roomscale- See Also:
-
isSeatedExperience
public boolean isSeatedExperience()Deprecated.Check if the application is configured as a seated experience.- Returns:
true
if the application is configured as a seated experience andfalse
otherwise.- See Also:
-
setVRHeightAdjustment
public void setVRHeightAdjustment(float amount) Deprecated.Set the VR headset height from the ground.- Parameters:
amount
- the VR headset height from the ground.- See Also:
-
getVRHeightAdjustment
public float getVRHeightAdjustment()Deprecated.Get the VR headset height from the ground.- Returns:
- the VR headset height from the ground.
- See Also:
-
getObserver
Deprecated.Get the scene observer. If no observer has been set, this method return the applicationcamera
.- Returns:
- the scene observer.
- See Also:
-
setObserver
Deprecated.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.
-
getDefaultFOV
public float getDefaultFOV()Deprecated.Get the default Field Of View (FOV) value.- Returns:
- the default Field Of View (FOV) value.
- See Also:
-
setDefaultFOV
public void setDefaultFOV(float defaultFOV) Deprecated.Set the default Field Of View (FOV) value.- Parameters:
defaultFOV
- the default Field Of View (FOV) value.- See Also:
-
getDefaultAspect
public float getDefaultAspect()Deprecated.Get the default aspect ratio.- Returns:
- the default aspect ratio.
- See Also:
-
setDefaultAspect
public void setDefaultAspect(float defaultAspect) Deprecated.Set the default aspect ratio.- Parameters:
defaultAspect
- the default aspect ratio.- See Also:
-
getSettings
Deprecated.Get thesettings
attached to this environment.- Returns:
- the
settings
attached to this environment. - See Also:
-
setSettings
Deprecated.Set thesettings
attached to this environment.- Parameters:
settings
- thesettings
attached to this environment.- See Also:
-
isVRSupported
public boolean isVRSupported()Deprecated.Get if the system currently support VR.- Returns:
true
if the system currently support VR andfalse
otherwise.
-
isInVR
public boolean isInVR()Deprecated.Check if the VR mode is enabled.- Returns:
true
if the VR mode is enabled andfalse
otherwise.
-
isInstanceRendering
public boolean isInstanceRendering()Deprecated.Check if the rendering is instanced (see Geometry instancing).- Returns:
true
if the rendering is instanced andfalse
otherwise.
-
isSwapBuffers
public boolean isSwapBuffers()Deprecated. -
hasTraditionalGUIOverlay
public boolean hasTraditionalGUIOverlay()Deprecated.Check if the application has a GUI overlay attached.- Returns:
true
if the application has a GUI overlay attached andfalse
otherwise.
-
isInitialized
public boolean isInitialized()Deprecated.Check if the VR environment is initialized. A call to theinitialize()
method should set this value totrue
- Returns:
true
if the VR environment is initialized andfalse
otherwise.
-
compositorAllowed
public boolean compositorAllowed()Deprecated.Is the VR compositor is active.- Returns:
true
if the VR compositor is active andfalse
otherwise.
-
resetSeatedPose
public void resetSeatedPose()Deprecated.Reset headset pose if seating experience. -
getAppState
Deprecated. -
getApplication
Deprecated. -
getCamera
Deprecated.Get thecamera
used 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.
-
getDummyCamera
Deprecated. -
atttach
Deprecated.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.
-
initialize
public 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:
true
if the VR environment is successfully initialized andfalse
otherwise.
-