public ARKitWorldTrackingSessionConfiguration(
     UnityARAlignment alignment           = UnityARAlignment.UnityARAlignmentGravity,
     UnityARPlaneDetection planeDetection = UnityARPlaneDetection.Horizontal,
     bool getPointCloudData     = false,
     bool enableLightEstimation = false,
     bool enableAutoFocus       = true,
     UnityAREnvironmentTexturing environmentTexturing = UnityAREnvironmentTexturing.UnityAREnvironmentTexturingNone,
     int maximumNumberOfTrackedImages = 0,
     IntPtr vidFormat      = default(IntPtr),
     string refImageGroup  = null,
     string refObjectGroup = null,
     ARWorldMap worldMap   = null)
 {
     this.getPointCloudData            = getPointCloudData;
     this.alignment                    = alignment;
     this.planeDetection               = planeDetection;
     this.enableLightEstimation        = enableLightEstimation;
     this.enableAutoFocus              = enableAutoFocus;
     this.environmentTexturing         = environmentTexturing;
     this.videoFormat                  = vidFormat;
     this.referenceImagesGroupName     = refImageGroup;
     this.referenceObjectsGroupName    = refObjectGroup;
     this.dynamicReferenceObjectsPtr   = IntPtr.Zero;
     this.m_worldMapPtr                = (worldMap == null) ? IntPtr.Zero : worldMap.nativePtr;
     this.maximumNumberOfTrackedImages = maximumNumberOfTrackedImages;
 }
 public serializableARSessionConfiguration(UnityARAlignment align, UnityARPlaneDetection planeDet, bool getPtCloud, bool enableLightEst)
 {
     alignment             = align;
     planeDetection        = planeDet;
     getPointCloudData     = getPtCloud;
     enableLightEstimation = enableLightEst;
 }
示例#3
0
 public ARKitWorldTrackingSessionConfiguration(UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity, UnityARPlaneDetection planeDetection = UnityARPlaneDetection.Horizontal, bool getPointCloudData = false, bool enableLightEstimation = false)
 {
     this.getPointCloudData     = getPointCloudData;
     this.alignment             = alignment;
     this.planeDetection        = planeDetection;
     this.enableLightEstimation = enableLightEstimation;
 }
示例#4
0
 public ARKitObjectScanningSessionConfiguration(UnityARAlignment alignment           = UnityARAlignment.UnityARAlignmentGravity,
                                                UnityARPlaneDetection planeDetection = UnityARPlaneDetection.None, bool getPointCloudData = false,
                                                bool enableLightEstimation           = false, bool enableAutoFocus = false)
 {
     this.alignment             = alignment;
     this.planeDetection        = planeDetection;
     this.getPointCloudData     = getPointCloudData;
     this.enableLightEstimation = enableLightEstimation;
     this.enableAutoFocus       = enableAutoFocus;
 }
示例#5
0
    public void PlaneDetectionOFF()
    {
        planeDetection = UnityARPlaneDetection.None;
        ARKitWorldTrackingSessionConfiguration config = new ARKitWorldTrackingSessionConfiguration();

        config.planeDetection        = planeDetection;
        config.alignment             = startAlignment;
        config.getPointCloudData     = false;
        config.enableLightEstimation = false;
        m_session.RunWithConfig(config);
    }
示例#6
0
 private void LockDectingPlane(string command)
 {
     if (command == "lock")
     {
         UnityARSessionNativeInterface          m_session      = UnityARSessionNativeInterface.GetARSessionNativeInterface();
         UnityARPlaneDetection                  planeDetection = UnityARPlaneDetection.None;
         ARKitWorldTrackingSessionConfiguration config         = new ARKitWorldTrackingSessionConfiguration();
         config.planeDetection        = planeDetection;
         config.alignment             = UnityARAlignment.UnityARAlignmentGravity;
         config.getPointCloudData     = false;
         config.enableLightEstimation = false;
         m_session.RunWithConfig(config);
     }
 }
 public ARKitWorldTrackingSessionConfiguration(UnityARAlignment alignment           = UnityARAlignment.UnityARAlignmentGravity,
                                               UnityARPlaneDetection planeDetection = UnityARPlaneDetection.Horizontal,
                                               bool getPointCloudData     = false,
                                               bool enableLightEstimation = false,
                                               bool enableAutoFocus       = true,
                                               IntPtr vidFormat           = default(IntPtr),
                                               string arResourceGroup     = null)
 {
     this.getPointCloudData     = getPointCloudData;
     this.alignment             = alignment;
     this.planeDetection        = planeDetection;
     this.enableLightEstimation = enableLightEstimation;
     this.enableAutoFocus       = enableAutoFocus;
     this.videoFormat           = vidFormat;
     this.arResourceGroupName   = arResourceGroup;
 }
示例#8
0
 public ARKitWorldTrackingSessionConfiguration(UnityARAlignment alignment           = UnityARAlignment.UnityARAlignmentGravity,
                                               UnityARPlaneDetection planeDetection = UnityARPlaneDetection.Horizontal,
                                               bool getPointCloudData     = false,
                                               bool enableLightEstimation = false,
                                               bool enableAutoFocus       = true,
                                               //
                                               // int maximumNumberOfTrackedImages = 0,
                                               // string refImageGroup = null,
                                               //
                                               IntPtr vidFormat       = default(IntPtr),
                                               string arResourceGroup = null)
 {
     this.getPointCloudData     = getPointCloudData;
     this.alignment             = alignment;
     this.planeDetection        = planeDetection;
     this.enableLightEstimation = enableLightEstimation;
     this.enableAutoFocus       = enableAutoFocus;
     this.videoFormat           = vidFormat;
     this.arResourceGroupName   = arResourceGroup;
     //
     // this.maximumNumberOfTrackedImages = maximumNumberOfTrackedImages;
     // this.referenceImagesGroupName = refImageGroup;
     //
 }