Package com.jme3.input.vr.osvr
Class OSVRViewManager
java.lang.Object
com.jme3.input.vr.AbstractVRViewManager
com.jme3.input.vr.osvr.OSVRViewManager
- All Implemented Interfaces:
- VRViewManager
- 
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 SummaryConstructorsConstructorDescriptionOSVRViewManager(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.voidHandles moving filters from the main view to each eyevoidSend the textures to the two eyes.voidrender()This method contains action to be done during the rendering phase.static MeshsetupDistortionMesh(int eye, VRAPI api) Set up a distortion mesh for the stereo view.voidsyncScreenProcessing(ViewPort sourceViewport) Sets the two views to use the list ofprocessors.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, setHeightAdjustment, setResolutionMultiplier
- 
Constructor Details- 
OSVRViewManagerCreate 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()
 
 
- 
postRenderpublic void postRender()Send the textures to the two eyes.- See Also:
 
- 
initializepublic void initialize()Initialize the VR view manager.
- 
updatepublic void update(float tpf) Update the VR view manager. This method is called by the attached VR application and should not be called manually.- Parameters:
- tpf- the time per frame.
 
- 
moveScreenProcessingToEyespublic void moveScreenProcessingToEyes()Handles moving filters from the main view to each eye- Specified by:
- moveScreenProcessingToEyesin interface- VRViewManager
- Overrides:
- moveScreenProcessingToEyesin class- AbstractVRViewManager
 
- 
syncScreenProcessingSets the two views to use the list ofprocessors.- Overrides:
- syncScreenProcessingin class- AbstractVRViewManager
- Parameters:
- sourceViewport- the- viewportthat contains the processors to use.
 
- 
setupDistortionMeshSet up a distortion mesh for the stereo view.- Parameters:
- eye- the eye to apply.
- api- the underlying VR api
- Returns:
- the distorted mesh.
 
- 
renderpublic void render()Description copied from interface:VRViewManagerThis method contains action to be done during the rendering phase. This method should be called for example from therendermethod of anapp state.- See Also:
 
 
-