Class ExtendedCamera

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

public class ExtendedCamera extends Camera
Camera with additional pssm related functionality.
See Also:
  • Field Details

    • _corners

      protected final Vector3[] _corners
      The corners of the camera frustum.
    • _extents

      protected final Vector3 _extents
      Temporary vector used for storing extents during corner calculations.
  • Constructor Details

    • ExtendedCamera

      public ExtendedCamera()
      Instantiates a new PSSM camera.
    • ExtendedCamera

      public ExtendedCamera(int width, int height)
      Instantiates a new PSSM camera.
      Parameters:
      width - the width
      height - the height
    • ExtendedCamera

      public ExtendedCamera(Camera source)
      Instantiates a new PSSM camera.
      Parameters:
      source - the source
  • Method Details

    • pack

      public void pack(BoundingVolume sceneBounds)
      Compress this camera's near and far frustum planes to be smaller if possible, using the given bounds as a measure.
      Parameters:
      sceneBounds - the scene bounds
    • calculateFrustum

      public void calculateFrustum()
    • calculateFrustum

      public void calculateFrustum(double fNear, double fFar)
      Calculate frustum corners and center.
      Parameters:
      fNear - the near distance
      fFar - the far distance
    • getCorners

      public Vector3[] getCorners()