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
FieldsModifier and TypeFieldDescriptionprotected VREnvironmentprotected Cameraprotected Texture2Dprotected Texture2Dprotected FilterPostProcessorprotected ViewPortprotected ViewPortprotected Cameraprotected Texture2Dprotected Texture2Dprotected FilterPostProcessorprotected ViewPortFields inherited from interface com.jme3.input.vr.VRViewManager
LEFT_VIEW_NAME, RIGHT_VIEW_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatGet the height adjustment to apply to the cameras before rendering.Get thecameraattached to the left eye.Get the depth texture attached to the left eye.Get thefilter post processorattached to the left eye.Get the texture attached to the left eye.Get theviewportattached to the left eye.Get theview portattached to the mirror display.floatGet the resolution multiplier.Get thecameraattached to the right eye.Get the depth texture attached to the right eye.Get thefilter post processorattached to the right eye.Get the texture attached to the right eye.Get theviewportattached to the right eye.Get theVR environmentto which the view manager is attached.voidHandles moving filters from the main view to each eyevoidsetHeightAdjustment(float amount) Set the height adjustment to apply to the cameras before rendering.voidsetResolutionMultiplier(float resMult) Set the resolution multiplier.voidsyncScreenProcessing(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, waitMethods 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:VRViewManagerGet thecameraattached to the left eye.- Specified by:
getLeftCamerain interfaceVRViewManager- Returns:
- the
cameraattached to the left eye. - See Also:
-
getRightCamera
Description copied from interface:VRViewManagerGet thecameraattached to the right eye.- Specified by:
getRightCamerain interfaceVRViewManager- Returns:
- the
cameraattached to the right eye. - See Also:
-
getLeftViewPort
Description copied from interface:VRViewManagerGet theviewportattached to the left eye.- Specified by:
getLeftViewPortin interfaceVRViewManager- Returns:
- the
viewportattached to the left eye. - See Also:
-
getRightViewPort
Description copied from interface:VRViewManagerGet theviewportattached to the right eye.- Specified by:
getRightViewPortin interfaceVRViewManager- Returns:
- the
viewportattached to the right eye. - See Also:
-
getMirrorViewPort
Get theview portattached to the mirror display.- Specified by:
getMirrorViewPortin interfaceVRViewManager- Returns:
- the view port attached to the mirror display.
- See Also:
-
getLeftTexture
Description copied from interface:VRViewManagerGet the texture attached to the left eye.- Specified by:
getLeftTexturein interfaceVRViewManager- Returns:
- the texture attached to the left eye.
- See Also:
-
getRightTexture
Description copied from interface:VRViewManagerGet the texture attached to the right eye.- Specified by:
getRightTexturein interfaceVRViewManager- Returns:
- the texture attached to the right eye.
- See Also:
-
getLeftDepth
Description copied from interface:VRViewManagerGet the depth texture attached to the left eye.- Specified by:
getLeftDepthin interfaceVRViewManager- Returns:
- the texture attached to the left eye.
- See Also:
-
getRightDepth
Description copied from interface:VRViewManagerGet the depth texture attached to the right eye.- Specified by:
getRightDepthin interfaceVRViewManager- Returns:
- the texture attached to the right eye.
- See Also:
-
getLeftPostProcessor
Description copied from interface:VRViewManagerGet thefilter post processorattached to the left eye.- Specified by:
getLeftPostProcessorin interfaceVRViewManager- Returns:
- the
filter post processorattached to the left eye. - See Also:
-
getRightPostProcessor
Description copied from interface:VRViewManagerGet thefilter post processorattached to the right eye.- Specified by:
getRightPostProcessorin interfaceVRViewManager- Returns:
- the
filter post processorattached to the right eye. - See Also:
-
getResolutionMuliplier
public float getResolutionMuliplier()Description copied from interface:VRViewManagerGet the resolution multiplier.- Specified by:
getResolutionMuliplierin interfaceVRViewManager- Returns:
- the resolution multiplier.
- See Also:
-
setResolutionMultiplier
public void setResolutionMultiplier(float resMult) Description copied from interface:VRViewManagerSet the resolution multiplier.- Specified by:
setResolutionMultiplierin interfaceVRViewManager- Parameters:
resMult- the resolution multiplier.- See Also:
-
getHeightAdjustment
public float getHeightAdjustment()Description copied from interface:VRViewManagerGet the height adjustment to apply to the cameras before rendering.- Specified by:
getHeightAdjustmentin interfaceVRViewManager- Returns:
- the height adjustment to apply to the cameras before rendering.
- See Also:
-
setHeightAdjustment
public void setHeightAdjustment(float amount) Description copied from interface:VRViewManagerSet the height adjustment to apply to the cameras before rendering.- Specified by:
setHeightAdjustmentin interfaceVRViewManager- Parameters:
amount- the height adjustment to apply to the cameras before rendering.- See Also:
-
getVREnvironment
Description copied from interface:VRViewManagerGet theVR environmentto which the view manager is attached.- Specified by:
getVREnvironmentin interfaceVRViewManager- Returns:
- the
VR environmentto which the view manager is attached.
-
moveScreenProcessingToEyes
public void moveScreenProcessingToEyes()Handles moving filters from the main view to each eye- Specified by:
moveScreenProcessingToEyesin interfaceVRViewManager
-
syncScreenProcessing
Sets the two views to use the list ofprocessors.- Parameters:
sourceViewport- theviewportthat contains the processors to use.
-