Class StereoCamera

java.lang.Object
com.ardor3d.renderer.Camera
com.ardor3d.renderer.StereoCamera
All Implemented Interfaces:
Savable, Externalizable, Serializable

public class StereoCamera extends Camera
Extension of Camera useful for tracking and updating a Stereo view camera. See http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereorender/ for a useful discussion on stereo viewing in OpenGL.
See Also:
  • Constructor Details

    • StereoCamera

      public StereoCamera()
    • StereoCamera

      public StereoCamera(int width, int height)
      Parameters:
      width - the width
      height - the height
    • StereoCamera

      public StereoCamera(Camera camera)
  • Method Details

    • resize

      public void resize(int width, int height)
      Description copied from class: Camera
      Resizes this camera's view with the given width and height.
      Overrides:
      resize in class Camera
      Parameters:
      width - the view width
      height - the view height
    • isSideBySideMode

      public boolean isSideBySideMode()
      Returns:
      the sideBySideMode
      See Also:
    • setSideBySideMode

      public void setSideBySideMode(boolean sideBySideMode)
      Parameters:
      sideBySideMode - If true, left camera will be set up to the left half of the render context and right camera to the right half. If false, the views are set up to be the full size of the render context.
    • setupLeftRightCameras

      public void setupLeftRightCameras()
    • updateLeftRightCameraFrames

      public void updateLeftRightCameraFrames()
    • switchToLeftCamera

      public void switchToLeftCamera(Renderer r)
    • switchToRightCamera

      public void switchToRightCamera(Renderer r)
    • getLeftCamera

      public Camera getLeftCamera()
      Returns:
      the leftCamera
    • getRightCamera

      public Camera getRightCamera()
      Returns:
      the rightCamera
    • getFocalDistance

      public double getFocalDistance()
      Returns:
      the focalDistance
    • setFocalDistance

      public void setFocalDistance(double focalDistance)
      Parameters:
      focalDistance - the focalDistance to set
    • getEyeSeparation

      public double getEyeSeparation()
      Returns:
      the eyeSeparation
    • setEyeSeparation

      public void setEyeSeparation(double eyeSeparation)
      Parameters:
      eyeSeparation - the eyeSeparation to set
    • getAperture

      public double getAperture()
      Returns:
      the aperture
    • setAperture

      public void setAperture(double radians)
      Parameters:
      radians - the horizontal field of view, in radians