Beispiel #1
0
        public static Vector2 GetPositionOfInterestPoint(int ip_internal_id)
        {
            HandledArray <float> position = new HandledArray <float>(2);

            PikkartARCore.GetPositionOfInterestPoint(ip_internal_id, position.GetArray());
            return(new Vector2(position.GetArray()[0], position.GetArray()[1]));
        }
 public void LaunchWebcam(WebCamManager webcam)
 {
     markerFoundPtr     = Marshal.AllocHGlobal(512);
     viewMatrixData     = new HandledArray <float>(Constants.MATRIX_4X4_ARRAY_SIZE);
     trackedMarkersData = new HandledArray <int>(30);
     _webcam            = webcam;
     _webcam.StartWebcam(false);
     StartCoroutine(CameraLoop());
 }
Beispiel #3
0
        public static int[] GetActiveInterestPoints()
        {
            HandledArray <int> ipIds = new HandledArray <int>(10);
            int sz = PikkartARCore.GetActiveInterestPoints(ipIds.GetArray());

            int[] ret = new int[sz];
            for (int i = 0; i < sz; ++i)
            {
                ret[i] = ipIds.GetArray()[i];
            }
            return(ret);
        }