Package com.jme3.input.vr.lwjgl_openvr
Class LWJGLOpenVRViewManager
java.lang.Object
com.jme3.input.vr.AbstractVRViewManager
com.jme3.input.vr.lwjgl_openvr.LWJGLOpenVRViewManager
- All Implemented Interfaces:
- VRViewManager
A VR view manager based on OpenVR. This class enable to submit 3D views to
 the VR compositor.
- 
Field SummaryFields inherited from class com.jme3.input.vr.AbstractVRViewManagerenvironment, leftCamera, leftEyeDepth, leftEyeTexture, leftPostProcessor, leftViewPort, mirrorViewPort, rightCamera, rightEyeDepth, rightEyeTexture, rightPostProcessor, rightViewPortFields inherited from interface com.jme3.input.vr.VRViewManagerLEFT_VIEW_NAME, RIGHT_VIEW_NAME
- 
Constructor SummaryConstructorsConstructorDescriptionLWJGLOpenVRViewManager(VREnvironment environment) Create a new VR view manager attached to the givenVR environment.
- 
Method SummaryModifier and TypeMethodDescriptionprotected intGet the identifier of the left eye texture.protected intGet the identifier of the right eye texture.voidInitialize the VR view manager.voidSend the rendering result as textures to the two eyes.voidrender()updatePose can be called here because appstates are always called before the main renderer.voidupdate(float tpf) Update the VR view manager.Methods inherited from class com.jme3.input.vr.AbstractVRViewManagergetHeightAdjustment, getLeftCamera, getLeftDepth, getLeftPostProcessor, getLeftTexture, getLeftViewPort, getMirrorViewPort, getResolutionMuliplier, getRightCamera, getRightDepth, getRightPostProcessor, getRightTexture, getRightViewPort, getVREnvironment, moveScreenProcessingToEyes, setHeightAdjustment, setResolutionMultiplier, syncScreenProcessing
- 
Constructor Details- 
LWJGLOpenVRViewManagerCreate a new VR view manager attached to the givenVR environment.- Parameters:
- environment- the- VR environmentto which this view manager is attached.
 
 
- 
- 
Method Details- 
getLeftTexIdprotected int getLeftTexId()Get the identifier of the left eye texture.- Returns:
- the identifier of the left eye texture.
- See Also:
- 
- getRightTexId()
- getFullTexId()
 
 
- 
getRightTexIdprotected int getRightTexId()Get the identifier of the right eye texture.- Returns:
- the identifier of the right eye texture.
- See Also:
- 
- getLeftTexId()
- getFullTexId()
 
 
- 
renderpublic void render()updatePose can be called here because appstates are always called before the main renderer. This way we get the latest pose close to when it's supposed to render- See Also:
 
- 
postRenderpublic void postRender()Description copied from interface:VRViewManagerSend the rendering result as textures to the two eyes. This method should be called after all the rendering operations (for example at the end of thepostRender()method of the attached app state.)- See Also:
 
- 
initializepublic void initialize()Description copied from interface:VRViewManagerInitialize the VR view manager. This method should be called after the attachment of aVR environmentto an application.
- 
updatepublic void update(float tpf) Description copied from interface:VRViewManagerUpdate the VR view manager. This method is called by the attachedapp stateand should not be called manually.- Parameters:
- tpf- the time per frame.
 
 
-