Beispiel #1
0
        public static bool GetPose(ref Vector3 position, ref Quaternion orientation, int markerId)
        {
            float[] pos = new float[3];
            float[] rot = new float[4];

            bool ret = VisionUnityAbstraction.L7_TrackerGetTrackablePose(pos, rot, markerId);

            if (ret)
            {
                position.Set(pos[0], pos[1], pos[2]);
                orientation.Set(rot[0], rot[1], rot[2], rot[3]);
                //Debug.Log ("Rot: " + orientation.ToString("F5"));
            }

            return(ret);
        }
Beispiel #2
0
 public static void GetProjectionMatrix(float[] projMatrix)
 {
     VisionUnityAbstraction.L7_TrackerGetProjectionMatrix(projMatrix);
 }
Beispiel #3
0
 public static bool StopAR()
 {
     return(VisionUnityAbstraction.L7_TrackerStop());
 }
Beispiel #4
0
 public static bool UpdateAR()
 {
     return(VisionUnityAbstraction.L7_TrackerUpdate());
 }
Beispiel #5
0
 public static bool InitAR(string[] markerPath, int numMarkers, float[] width, float[] height, int[] markerIds)
 {
     return(VisionUnityAbstraction.L7_TrackerStart(markerPath, numMarkers, width, height, markerIds, ServiceManager.Instance.isLandmarkTracking? HARDWARE_MODE : SOFTWARE_MODE));
 }