Пример #1
0
    void OnDevicePoseStatusChanged(Vuforia.TrackableBehaviour.Status status, Vuforia.TrackableBehaviour.StatusInfo statusInfo)
    {
        Debug.Log("OnDevicePoseStatusChanged(" + status + ", " + statusInfo + ")");

        switch (statusInfo)
        {
        case Vuforia.TrackableBehaviour.StatusInfo.INITIALIZING:

            if (Vuforia.VuforiaRuntimeUtilities.GetActiveFusionProvider() ==
                Vuforia.FusionProviderType.PLATFORM_SENSOR_FUSION)
            {
                m_TrackerStatus.text = "Initializing Tracker";
            }
            else
            {
                m_TrackerStatus.text = "Waiting for anchor to be placed to initialize";
            }

            break;

        case Vuforia.TrackableBehaviour.StatusInfo.EXCESSIVE_MOTION:
            m_TrackerStatus.text = "Move slower";
            break;

        case Vuforia.TrackableBehaviour.StatusInfo.INSUFFICIENT_FEATURES:
            m_TrackerStatus.text = "Not enough visual features in the scene";
            break;

        default:
            m_TrackerStatus.text = "";
            break;
        }
    }
Пример #2
0
    void OnDevicePoseStatusChanged(Vuforia.TrackableBehaviour.Status status, Vuforia.TrackableBehaviour.StatusInfo statusInfo)
    {
        // Debug.Log("OnDevicePoseStatusChanged(" + status + ", " + statusInfo + ")");

        if (statusInfo == Vuforia.TrackableBehaviour.StatusInfo.RELOCALIZING)
        {
            // If the status is Relocalizing, then start the timer if it isn't active
            if (!this.relocalizationStatusDelayTimer.Enabled)
            {
                this.relocalizationStatusDelayTimer.Start();
            }
        }
        else
        {
            // If the status is not Relocalizing, then stop the timers if they are active
            if (this.relocalizationStatusDelayTimer.Enabled)
            {
                this.relocalizationStatusDelayTimer.Stop();
            }

            if (this.resetDeviceTrackerTimer.Enabled)
            {
                this.resetDeviceTrackerTimer.Stop();
            }

            // Clear the status message
            StatusMessage.Instance.Display(string.Empty);
        }
    }
Пример #3
0
    void OnDevicePoseStatusChanged(Vuforia.TrackableBehaviour.Status status, Vuforia.TrackableBehaviour.StatusInfo statusInfo)
    {
        Debug.Log("OnDevicePoseStatusChanged(" + status + ", " + statusInfo + ")");

        switch (statusInfo)
        {
        case Vuforia.TrackableBehaviour.StatusInfo.INITIALIZING:
            //Debug.Log("Tracker Initializing");
            break;

        case Vuforia.TrackableBehaviour.StatusInfo.EXCESSIVE_MOTION:
            //Debug.Log("Excessive Motion");
            break;

        case Vuforia.TrackableBehaviour.StatusInfo.INSUFFICIENT_FEATURES:
            //Debug.Log("Insufficient Features");
            break;

        default:
            break;
        }
    }