Package com.jme3.input.vr
Class AbstractVRViewManager
java.lang.Object
com.jme3.input.vr.AbstractVRViewManager
- All Implemented Interfaces:
VRViewManager
- Direct Known Subclasses:
LWJGLOpenVRViewManager
,OculusViewManager
,OpenVRViewManager
,OSVRViewManager
A VR view manager. This class holds methods that enable to submit 3D views to the VR compositor.
System-dependent classes should extend this one.
-
Field Summary
Modifier and TypeFieldDescriptionprotected VREnvironment
protected Camera
protected Texture2D
protected Texture2D
protected FilterPostProcessor
protected ViewPort
protected ViewPort
protected Camera
protected Texture2D
protected Texture2D
protected FilterPostProcessor
protected ViewPort
Fields inherited from interface com.jme3.input.vr.VRViewManager
LEFT_VIEW_NAME, RIGHT_VIEW_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the height adjustment to apply to the cameras before rendering.Get thecamera
attached to the left eye.Get the depth texture attached to the left eye.Get thefilter post processor
attached to the left eye.Get the texture attached to the left eye.Get theviewport
attached to the left eye.Get theview port
attached to the mirror display.float
Get the resolution multiplier.Get thecamera
attached to the right eye.Get the depth texture attached to the right eye.Get thefilter post processor
attached to the right eye.Get the texture attached to the right eye.Get theviewport
attached to the right eye.Get theVR environment
to which the view manager is attached.void
Handles moving filters from the main view to each eyevoid
setHeightAdjustment
(float amount) Set the height adjustment to apply to the cameras before rendering.void
setResolutionMultiplier
(float resMult) Set the resolution multiplier.void
syncScreenProcessing
(ViewPort sourceViewport) Sets the two views to use the list ofprocessors
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jme3.input.vr.VRViewManager
initialize, postRender, render, update
-
Field Details
-
environment
-
leftCamera
-
leftViewPort
-
leftPostProcessor
-
leftEyeTexture
-
leftEyeDepth
-
rightCamera
-
rightViewPort
-
rightPostProcessor
-
rightEyeTexture
-
rightEyeDepth
-
mirrorViewPort
-
-
Constructor Details
-
AbstractVRViewManager
public AbstractVRViewManager()
-
-
Method Details
-
getLeftCamera
Description copied from interface:VRViewManager
Get thecamera
attached to the left eye.- Specified by:
getLeftCamera
in interfaceVRViewManager
- Returns:
- the
camera
attached to the left eye. - See Also:
-
getRightCamera
Description copied from interface:VRViewManager
Get thecamera
attached to the right eye.- Specified by:
getRightCamera
in interfaceVRViewManager
- Returns:
- the
camera
attached to the right eye. - See Also:
-
getLeftViewPort
Description copied from interface:VRViewManager
Get theviewport
attached to the left eye.- Specified by:
getLeftViewPort
in interfaceVRViewManager
- Returns:
- the
viewport
attached to the left eye. - See Also:
-
getRightViewPort
Description copied from interface:VRViewManager
Get theviewport
attached to the right eye.- Specified by:
getRightViewPort
in interfaceVRViewManager
- Returns:
- the
viewport
attached to the right eye. - See Also:
-
getMirrorViewPort
Get theview port
attached to the mirror display.- Specified by:
getMirrorViewPort
in interfaceVRViewManager
- Returns:
- the view port attached to the mirror display.
- See Also:
-
getLeftTexture
Description copied from interface:VRViewManager
Get the texture attached to the left eye.- Specified by:
getLeftTexture
in interfaceVRViewManager
- Returns:
- the texture attached to the left eye.
- See Also:
-
getRightTexture
Description copied from interface:VRViewManager
Get the texture attached to the right eye.- Specified by:
getRightTexture
in interfaceVRViewManager
- Returns:
- the texture attached to the right eye.
- See Also:
-
getLeftDepth
Description copied from interface:VRViewManager
Get the depth texture attached to the left eye.- Specified by:
getLeftDepth
in interfaceVRViewManager
- Returns:
- the texture attached to the left eye.
- See Also:
-
getRightDepth
Description copied from interface:VRViewManager
Get the depth texture attached to the right eye.- Specified by:
getRightDepth
in interfaceVRViewManager
- Returns:
- the texture attached to the right eye.
- See Also:
-
getLeftPostProcessor
Description copied from interface:VRViewManager
Get thefilter post processor
attached to the left eye.- Specified by:
getLeftPostProcessor
in interfaceVRViewManager
- Returns:
- the
filter post processor
attached to the left eye. - See Also:
-
getRightPostProcessor
Description copied from interface:VRViewManager
Get thefilter post processor
attached to the right eye.- Specified by:
getRightPostProcessor
in interfaceVRViewManager
- Returns:
- the
filter post processor
attached to the right eye. - See Also:
-
getResolutionMuliplier
public float getResolutionMuliplier()Description copied from interface:VRViewManager
Get the resolution multiplier.- Specified by:
getResolutionMuliplier
in interfaceVRViewManager
- Returns:
- the resolution multiplier.
- See Also:
-
setResolutionMultiplier
public void setResolutionMultiplier(float resMult) Description copied from interface:VRViewManager
Set the resolution multiplier.- Specified by:
setResolutionMultiplier
in interfaceVRViewManager
- Parameters:
resMult
- the resolution multiplier.- See Also:
-
getHeightAdjustment
public float getHeightAdjustment()Description copied from interface:VRViewManager
Get the height adjustment to apply to the cameras before rendering.- Specified by:
getHeightAdjustment
in interfaceVRViewManager
- Returns:
- the height adjustment to apply to the cameras before rendering.
- See Also:
-
setHeightAdjustment
public void setHeightAdjustment(float amount) Description copied from interface:VRViewManager
Set the height adjustment to apply to the cameras before rendering.- Specified by:
setHeightAdjustment
in interfaceVRViewManager
- Parameters:
amount
- the height adjustment to apply to the cameras before rendering.- See Also:
-
getVREnvironment
Description copied from interface:VRViewManager
Get theVR environment
to which the view manager is attached.- Specified by:
getVREnvironment
in interfaceVRViewManager
- Returns:
- the
VR environment
to which the view manager is attached.
-
moveScreenProcessingToEyes
public void moveScreenProcessingToEyes()Handles moving filters from the main view to each eye- Specified by:
moveScreenProcessingToEyes
in interfaceVRViewManager
-
syncScreenProcessing
Sets the two views to use the list ofprocessors
.- Parameters:
sourceViewport
- theviewport
that contains the processors to use.
-