Log in or register to post comments

Show object after lost

April 12, 2019 - 7:28am #1

Hello, i want see my model, when my target outside camera vision.

What i do?

if (newStatus == TrackableBehaviour.Status.DETECTED ||

            newStatus == TrackableBehaviour.Status.TRACKED ||

            newStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)

        {

            Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");

            OnTrackingFound();

        }

        //else if (previousStatus == TrackableBehaviour.Status.TRACKED &&

        //         newStatus == TrackableBehaviour.Status.NO_POSE)

        //{

        //    Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " lost");

        //    OnTrackingLost();

        //}

        //else

        //{

        //    // For combo of previousStatus=UNKNOWN + newStatus=UNKNOWN|NOT_FOUND

        //    // Vuforia is starting, but tracking has not been lost or found yet

        //    // Call OnTrackingLost() to hide the augmentations

        //    OnTrackingLost();

        //}

I comment some code and now, my object doesnt disaper after image lost tracking.But camera didnt directed on my object. How to fix it

 

screen 1: image tracking

screen 2: image lost tracking, Why my camera change position?

AttachmentSize
Image icon Screen180.98 KB
Image icon Screen280.99 KB
Log in or register to post comments