"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Camera and Target issues on Android

Hello,

I am currently facing two issues using Vuforia and Unity for an AR app. I decided to have them both in a single post since they have some relation to each other.

 

Issue #1

Camera is so zoomed in it's impossible to discern anything - but the detection still works, when I somehow manage to get the target in frame. 

This problem seems to only happen when switching scenes (the very first scene loaded works just fine though). If I build the same project, with the same settings, but only the AR scene, everything works. But this is not really helpful since I am forced to cram everything in a single scene.

I've tried messing around with every setting I could think of, from Vuforia, Camera and Target. I've tried adding AR cameras to non-AR scenes and disabling VuforiaBehaviour on them, like I read somewhere. I've tried a script that disables everything Vuforia related in my cameras on the Start() method. I've even tried making a kind of singleton camera that destroys all but the first instance right during Awake(). Nothing works... at all.

 

Issue #2

So, despite complaining, I still tried putting the whole app in a single scene. But then I found out the targets no longer worked!

If I build an AR scene featuring a single target, both images I am using work perfectly fine - they are detected almost instantly.

But when both are in the same scene, one of them is not detected. And if I switch their order in the Hierarchy, both stop working.

This is baffling.

Specially since their game objects are inactive by default and I have to explicitly choose one from a menu, which then activates the correct target while deactivating the other, so there should be no overlap or whatever.

And changing the number os simultaneous image targets in the settings did not fix this.

 

 

So, you see mi dilemma now? Having both targets in the same scene seems to be breaking one of them, but loading scenes is breaking Vuforia itself...

Whats more, some older apps I had which relied on Vuforia did not experience such problems... but downgrading Unity and Vuforia is out of the question (it would break too many things).

 

I cannot afford to give up, but I am also getting a little desperate so... help?

Hello blacklab,

Which version of Unity and Vuforia are you using? It sounds like from your post you have migrated from a previous version as well, which versions did you migrate from? Are you able to reproduce this within the latest sample projects?

Thanks,

Hey Strasza,

 

I'm using Unity 2017.3.1p2 - upgraded from 2017.3.0f0

As for Vuforia, it's 7.0.47:dd7269778b6af1499dec0d5f1dfb0c2c (copied directly from the file that comes with it)

 

Are you seeing this same behaviour in Unity Playmode? Do you have other devices to test against? Do you see the same thing with the Core Samples?

Thanks,

Vuforia Support

parasghasadiya

Mon, 05/28/2018 - 05:30

Android Issue explanation: a blank screen appears for a few moments (it's usually less than half a second), after the target was detected
When?: right after a target is detected, and the video is right about to start (PLAYING state)