Interface VRViewManager

All Known Implementing Classes:
AbstractVRViewManager, LWJGLOpenVRViewManager, OculusViewManager, OpenVRViewManager, OSVRViewManager

public interface VRViewManager
A VR view manager. This interface describes methods that enable to submit 3D views to the VR compositor.
  • Field Details

  • Method Details

    • getLeftCamera

      Camera getLeftCamera()
      Get the camera attached to the left eye.
      Returns:
      the camera attached to the left eye.
      See Also:
    • getRightCamera

      Camera getRightCamera()
      Get the camera attached to the right eye.
      Returns:
      the camera attached to the right eye.
      See Also:
    • getLeftViewPort

      ViewPort getLeftViewPort()
      Get the viewport attached to the left eye.
      Returns:
      the viewport attached to the left eye.
      See Also:
    • getRightViewPort

      ViewPort getRightViewPort()
      Get the viewport attached to the right eye.
      Returns:
      the viewport attached to the right eye.
      See Also:
    • getMirrorViewPort

      ViewPort getMirrorViewPort()
      Get the view port attached to the mirror display.
      Returns:
      the view port attached to the mirror display.
      See Also:
    • getLeftTexture

      Texture2D getLeftTexture()
      Get the texture attached to the left eye.
      Returns:
      the texture attached to the left eye.
      See Also:
    • getRightTexture

      Texture2D getRightTexture()
      Get the texture attached to the right eye.
      Returns:
      the texture attached to the right eye.
      See Also:
    • getLeftDepth

      Texture2D getLeftDepth()
      Get the depth texture attached to the left eye.
      Returns:
      the texture attached to the left eye.
      See Also:
    • getRightDepth

      Texture2D getRightDepth()
      Get the depth texture attached to the right eye.
      Returns:
      the texture attached to the right eye.
      See Also:
    • getLeftPostProcessor

      FilterPostProcessor getLeftPostProcessor()
      Get the filter post processor attached to the left eye.
      Returns:
      the filter post processor attached to the left eye.
      See Also:
    • getRightPostProcessor

      FilterPostProcessor getRightPostProcessor()
      Get the filter post processor attached to the right eye.
      Returns:
      the filter post processor attached to the right eye.
      See Also:
    • getResolutionMuliplier

      float getResolutionMuliplier()
      Get the resolution multiplier.
      Returns:
      the resolution multiplier.
      See Also:
    • setResolutionMultiplier

      void setResolutionMultiplier(float resMult)
      Set the resolution multiplier.
      Parameters:
      resMult - the resolution multiplier.
      See Also:
    • getHeightAdjustment

      float getHeightAdjustment()
      Get the height adjustment to apply to the cameras before rendering.
      Returns:
      the height adjustment to apply to the cameras before rendering.
      See Also:
    • setHeightAdjustment

      void setHeightAdjustment(float amount)
      Set the height adjustment to apply to the cameras before rendering.
      Parameters:
      amount - the height adjustment to apply to the cameras before rendering.
      See Also:
    • getVREnvironment

      VREnvironment getVREnvironment()
      Get the VR environment to which the view manager is attached.
      Returns:
      the VR environment to which the view manager is attached.
    • initialize

      void initialize()
      Initialize the VR view manager. This method should be called after the attachment of a VR environment to an application.
    • update

      void update(float tpf)
      Update the VR view manager. This method is called by the attached app state and should not be called manually.
      Parameters:
      tpf - the time per frame.
    • render

      void render()
      This method contains action to be done during the rendering phase. This method should be called for example from the render method of an app state.
      See Also:
    • postRender

      void postRender()
      Send 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 the postRender() method of the attached app state.)
      See Also:
    • moveScreenProcessingToEyes

      void moveScreenProcessingToEyes()
      Handles moving filters from the main view to each eye.