Class GenericStereoDeviceConfig


  • public class GenericStereoDeviceConfig
    extends StereoDeviceConfig
    Configuration for GenericStereoDevices.
    • Field Detail

      • name

        public final String name
        Configuration Name
      • screenSizeInMeters

        public final float[] screenSizeInMeters
      • pupilCenterFromScreenTopInMeters

        public final float pupilCenterFromScreenTopInMeters
        Vertical distance from pupil to screen-top in meters
      • interpupillaryDistanceInMeters

        public final float interpupillaryDistanceInMeters
        Horizontal interpupillary distance (IPD) in meters
      • pupilCenterFromTopLeft

        public final float[][] pupilCenterFromTopLeft
        Pupil center from top left per eye, ranging from [0..1], maybe used to produce FovHVHalves, see #getHorizPupilCenterFromLeft(float, float) and #getVertPupilCenterFromTop(float, float).
      • eyeRenderOrder

        public final int[] eyeRenderOrder
      • defaultEyeParam

        public final EyeParameter[] defaultEyeParam
      • distortionMeshProducer

        public final jogamp.opengl.util.stereo.DistortionMesh.Producer distortionMeshProducer
      • recommendedDistortionBits

        public final int recommendedDistortionBits
        Recommended distortion bits, see StereoDeviceRenderer.DISTORTION_BARREL.
      • minimumDistortionBits

        public final int minimumDistortionBits
        Required distortion bits, see StereoDeviceRenderer.DISTORTION_BARREL.
    • Constructor Detail

      • GenericStereoDeviceConfig

        public GenericStereoDeviceConfig​(String name,
                                         GenericStereoDeviceConfig.ShutterType shutterType,
                                         DimensionImmutable surfaceSizeInPixels,
                                         float[] screenSizeInMeters,
                                         DimensionImmutable[] eyeTextureSize,
                                         float pupilCenterFromScreenTopInMeters,
                                         float interpupillaryDistanceInMeters,
                                         int[] eyeRenderOrder,
                                         EyeParameter[] defaultEyeParam,
                                         int supportedSensorBits,
                                         jogamp.opengl.util.stereo.DistortionMesh.Producer distortionMeshProducer,
                                         int supportedDistortionBits,
                                         int recommendedDistortionBits,
                                         int minimumDistortionBits)
    • Method Detail

      • init

        public void init()
        One time lazy initialization before use.
        See Also:
        isInitialized()
      • isInitialized

        public final boolean isInitialized()
        Returns true if initialized, otherwise false.
        See Also:
        init()