Log in or register to post comments

Floating 3D Object and White UI when marker is detected

June 9, 2015 - 7:13pm #1

Vuforia SDK Version: 4.0 -

Description with steps to reproduce:

In the unity we place the 3d object 0,0,0 position which is directly above the marker also positioned 0,0,0 but when in play mode and even in phone after exported to apk, the 3d object is way above the marker. Also, when the marker is detected, the UI in the exported apk becomes white and there are some angles where in the screen went white but after we take the camera out of the marker the white disappears. I will post screenshots after this.

-

Development OS (Mac OS X, Windows, Linux): Mac OS X -

Mobile OS and Version: 7.1 -

Mobile Device Manufacturer and Model name: Apple -

Do the Vuforia Sample Applications show the same behavior?:

Floating 3D Object and White UI when marker is detected

June 30, 2015 - 9:41pm #14

Hello AlessandroB,

 

We tried the StoneAndChips dataset but it is still the same. The object is floating way above the marker and its a little bit jittery or shakey. What do you think may have cause this?

 

thanks,

Floating 3D Object and White UI when marker is detected

June 29, 2015 - 10:55pm #13

Yes, attaching the script to the ARCamera is Ok. And yes, the fact that you see the focus changing as you move the camera is also an indication that autofocus is working as expected.

So, to summarize, you have tried:

- Continuous Autofocus

- Camera MODE QUALITY

- Target is 5 star

I think one last test to do is to replace your target with the "Stone" or "Chips" target from the StonesAndChips dataset that you can find in the Image Targets sample app and see if it makes any difference; stones and chips are also 5-star targets, but the features are distributed pretty uniformly across the target area; if thy give better (less jitter) results, one last thing to consider might be to change your Target so that the features are more uniformly spread over the entire rectangle of the Target image.

 

Floating 3D Object and White UI when marker is detected

June 29, 2015 - 7:23pm #12

Hello AlessandroB, 

I'm still new in vuforia, where should I add the code? In the ARCamera? If so, I already did it and also changed the Camera Mode and set it to MODE_OPTIMIZE_QUALITY but as things go, it didn't make any difference. I also noticed that the focus of the camera keeps changing when the angle and view is changed so I guess, the auto focus is working perfectly well. 

Thanks, 

Floating 3D Object and White UI when marker is detected

June 26, 2015 - 1:18am #11

As I mentioned in my previous post, an important setting is the Continuous Autofocus; you can enable this with some simple code like the following:

using UnityEngine;
using System.Collections;
using Vuforia;

public class Autofocus : MonoBehaviour
{
    void Start ()  {
        QCARAbstractBehaviour vuforia = FindObjectOfType<QCARAbstractBehaviour>();
        vuforia.RegisterQCARStartedCallback(OnVuforiaStarted);
        vuforia.RegisterOnPauseCallback(OnPaused);
    }
    
    private void OnVuforiaStarted() {
        // Try to enable continuous autofocus mode
        CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
    }

    private void OnPaused(bool paused) {
        if (!paused) // resumed
        {
            // Set again autofocus mode when app is resumed
            CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
        }
    }
}

 

Also, in the ARCamera Inspector you can choose the Camera Mode and set it to MODE_OPTIMIZE_QUALITY, and see if it makes a difference.

 

Floating 3D Object and White UI when marker is detected

June 26, 2015 - 12:29am #10

Thank you AlessandroB.

I already tried it in an iPAD air but it is still shakey. I already checked on the target manager and it is 5 stars. I have also enabled extended tracking already. The shaking is very visible when the camera is not moving around. Is there any other settings for the marker I need to check or the heirarchy of ARCamera and ImageTarget? 

Thank you very much.

Floating 3D Object and White UI when marker is detected

June 26, 2015 - 12:10am #9

Thanks for the video. Play Mode is meant to be used for testing and debugging, but as it relies on a webcam, it is not representative of the tracking performance that you would get on a mobile device.

Try that on device, to see if it is better.

The tracking stability can be improved by:

- using Continuous Autofocus (this is a MUST have, as it will ensure camera focus will maintain a shaper camera image on the target, as much as possible, with better detetion and tracking performances)

- make sure the target rating has 4 - 5 stars

- try enabling Extended Tracking, so tha the pose can get more stable as you slightly move your camera around the target

 

Floating 3D Object and White UI when marker is detected

June 26, 2015 - 12:03am #8

Hello AlessandroB, 

Thank you very much for your reply. I already checked and tried the one you sent but it is still shakey. Below is a video link in unity playmode so you can see how shakey/jerky the 3d object is.

https://youtu.be/253Obko5xnE

Thank you

Floating 3D Object and White UI when marker is detected

June 23, 2015 - 10:51pm #7

The shaking behaviour might depend on target quality (e.g. star rating) and also other factors; 

see this for more information on the subject:

https://developer.vuforia.com/library/articles/Best_Practices/Recommendations-for-Improving-Target-Detection-and-Tracking-Stability

Additionally, if the 3D model (augmentation) is large compared to the target, the shakiness may be more noticeable. You could also try and use Extended Tracking on your target, as this takes into account additional features extracted from the Environment; the aim of Extended Tracking is to allow tracking your target even when it is no longer visible in the device camera, however, as a side effect it can also help getting a more stable pose estimation when the Target is in view.

see:

https://developer.vuforia.com/library/articles/Training/Extended-Tracking

HTH

Floating 3D Object and White UI when marker is detected

June 23, 2015 - 6:44pm #6

Hello AlessandroB,

Thank you very much for your reply. I managed to fix the placement but now there is a new issue. The object is now jerky or shaky in the app. Even in playmode in unity it is still shaky everytime it is detected on the marker. Is this a tracking issue? We are ready to buy the license but our client is still questioning us about this shaky/ tracking issue. Thank you very much. 

 

Floating 3D Object and White UI when marker is detected

June 22, 2015 - 6:04am #5

@vox3dspark:

In the unity we place the 3d object 0,0,0 position which is directly above the marker also positioned 0,0,0 but when in play mode and even in phone after exported to apk, the 3d object is way above the marker.

Placing an object at (0,0,0) is not (per se) a guarantee that the 3D model will appear well centered on the Target; this depends on where the actual original (center) of the 3D model is located with respect to its actual geometry (you need to check this when you export the 3D model from your 3D editing / modeling tools); 

from a Vuforia point of view, you can verify that the centering is correct using a simple a 3D game object like a Cube or a Sphere  (see  also the Image Targets sample app).

 

Also, when the marker is detected, the UI in the exported apk becomes white and there are some angles where in the screen went white but after we take the camera out of the marker the white disappears. I will post screenshots after this.

This is probably because you are using an old version of Unity 5.0 or 5.1;

if you are using Unity 5.0, the recommended version is 5.0.3 or newer (versions 5.0.1 and 5.0.2 are affected by the white UI issue you describe).

If you are using Unity 5.1, the recommended version is 5.1.1 or newer (5.1.0 is affected by some UI rendering issues, similarly to 5.0.1 and 5.0.2).

See also:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/vuforia-42-and-unity-5

 

 

Floating 3D Object and White UI when marker is detected

June 21, 2015 - 6:22am #4

I would like to know about this as well. My 3d model also appears to be way above the actual image marker.

In fact, I need to know more about the whole image tracking scale/position specifics.

The ImageTracker GameObject is scaled at 247,247,247. Is that important? Can it be 1,1,1.

Floating 3D Object and White UI when marker is detected

June 16, 2015 - 8:04pm #3

Hello? Anyone know how to fix this? Thank you. 

Floating 3D Object and White UI when marker is detected

June 9, 2015 - 7:18pm #2

Here are the screenshots.

Log in or register to post comments