AR target object flickering

Hi, I’m struggling to get my prefab visible when viewing the target image.
Right now it flickers or doesn’t show up at all.

I have changed both the target image and the device but with the same result.
I’m using Unity 2022.1.15f1 Silicon and iPhone XS.

Anyone have an idea how to fix this?
8425059--1115091--ar_flicker.gif

1 Like

Is depth occlusion enabled?
If so, disable it.
And start with huge objects maybe, maybe without image tracking to see where it starts to break

Image tracking works best when your image has a high feature density and low symmetry. A solid black square will track poorly because the surface has very few features, and the image is nearly rotationally symmetrical in every direction. For testing purposes you can try using our sample images: arfoundation-samples/Assets/Scenes/ImageTracking/Images at main · Unity-Technologies/arfoundation-samples · GitHub

Thank you for the feedback.
I have updated to iOS 16 and Unity 2022.6 but that made the camera freeze.
I am now using Unity 2022.2.0b8, so now the camera works again.

I have disabled “Occlusion Culling” (I guess that what you ment by “depth occlusion”)
Also I have put in 2 green objects without image tracking.
And I am using the recommend test purposes images.

The result is still similar

8455535--1122128--target_003.gif

Does this issue reproduce in our sample scene, if you replace one of our prefabs with yours? GitHub - Unity-Technologies/arfoundation-samples: Example content for Unity projects based on AR Foundation

1 Like

i have exactly the same issue

If you are experiencing camera freeze issues on iOS, ensure that your device is updated to iOS 16.3 or newer, and AR Foundation is updated to 4.2.7 or newer (for 4.2) or 5.0.3 or newer (for 5.0). There were bugs in older versions of iOS and AR Foundation that could cause the camera to freeze.

1 Like

Hello again, apparently you just need to indicate the max number of moving images to 1 or above, it was at 0 by default. It works for me, hope this will help you

3 Likes

Want to confirm that this worked for me too. Using Unity 2023.2.0f1, ARKit, Xcode 15.0.1, and iOS 17.0.3.

1 Like

In which case can 0 value be useful? @andyb-unity

Maybe her you need to integrate Range Attribute?

“The default value is 0, which disables image tracking. If you add reference images to detectionImages with this property set to 0, ARKit creates image anchors for observed reference images but their positions only update infrequently, such as once every couple of seconds.”

So with this description, I guess, 3D objects must stay on the screen, “floating” in the space, but in this post they are disappeared