Log in or register to post comments

No Camera Image, Unity, iPad Air 2

March 9, 2015 - 6:18pm #1

I just installed and setup everything and I am unable to see any camera video.
I tried the sample project and scene, and then created a new scene following the How-To and still see nothing from the camera.
I have a basic scene with the ARCamera, added my app id, downloaded the image target database..

Just a black screen.. I can double tap and bring up the menu, and select a different camera, etc... but no image from either front or back camera.. just black creen when menu is dismissed.

Mac OS 10.10.2
Unity 5.0.0f4
Xcode 6.1.1

 

No Camera Image, Unity, iPad Air 2

April 29, 2019 - 11:19pm #26

Is it a common problem for iPhone and iPad models, or just for specific device? I am using the iPad Air 4 and don't have that issue. Maybe it has been solved or what? I am worried about the compatibility with the latest iPad generation as I am planning for an upgrade.

No Camera Image, Unity, iPad Air 2

January 15, 2017 - 6:28am #25

i install the App to my phone ,the  Camera can recognize the photo,However  there is No Camera Image.

Scripting Backend: Mono (2.x) 

Architecture: ARMv7

Graphics Level: OpenGL ES 2.0

Phone:Huawei Hornor 8

Unity 5.5 

vuforia-unity-6-0-117

 

No Camera Image, Unity, iPad Air 2

January 15, 2017 - 6:28am #24

i install the App to my phone ,the  Camera can recognize the photo,However  there is No Camera Image.

Scripting Backend: Mono (2.x) 

Architecture: ARMv7

Graphics Level: OpenGL ES 2.0

Phone:Huawei Hornor 8

Unity 5.5 

vuforia-unity-6-0-117

 

No Camera Image, Unity, iPad Air 2

March 12, 2015 - 7:13pm #23

I did some testing and was able to get the ImageTargets 3.0.10 and VideoPlayback 3.0.10 samples working fine on an iPhone 6 Plus (8.1.3) using Unity 4.6.2f1 with the following settings:

Scripting Backend: Mono (2.x) or IL2CPP
Architecture: ARMv7
Graphics Level: OpenGL ES 2.0

Trying those same settings with Unity 4.6.3f1 on an iPhone 6 Plus resulted in the black screen with camera shifted to the bottom-left corner of the screen.

 

No Camera Image, Unity, iPad Air 2

March 11, 2015 - 7:44pm #22

Thanks for the encouragement, man.  Needed it on this one!

No Camera Image, Unity, iPad Air 2

March 11, 2015 - 7:40pm #21

My sincerest apologies to all on this thread for showing my frustration and my venting. Everyone here has been nothing but helpful. The Vuforia moderators always get back to posts like this usually within minutes and I really appreciate that.

I just can't figure out what changed between 2 weeks ago and now. Everything was working perfectly on all the other devices. I was only untested on the 6+.  (???)

But I shall sleep on it and start fresh tomorrow. Clients will be cool with it. They're going to have to be. This is the nature of an ever-changing landscape that is mobile development.

I'm going to push hard for them to budget me to migrate this to 4.0. I think it's the right decision rather than try to cheap out and patch the thing together with fixes.

Stay tuned

No Camera Image, Unity, iPad Air 2

March 11, 2015 - 7:38pm #20

I'm having the same problem - although after setting the backend to iL2CPP and OpenGL 2, video does show... except it doesn't stretch to fill the entire screen... It's just in the bottom left quadrant. (?) 

No Camera Image, Unity, iPad Air 2

March 11, 2015 - 6:45pm #19

"Don't Panic!"
The Encyclopedia Galactica says so...

Tell your clients that there is a bug and it's being addressed. It will be ready when it's ready. Besides the bug, it's working wonderfully!

Get some sleep.. and start at it fresh.

No Camera Image, Unity, iPad Air 2

March 11, 2015 - 6:45pm #18

To re-state:

Graphics API should be set to Open GL ES 2.0. The Metal API is not supported by Vuforia and the Automatic setting will default to Metal.

IL2CPP should be used so that you have 64-bit support.

You should fix these two params and re-compile to your iOS devices first.

For the iPhone 6 Plus, the 3.0.10 Vuforia samples for Unity would have the black portions of the screen as I demonstrated in my earlier post with the screenshot. The workaround was to use the technique in the BackgroundTextureAccess (BTA) sample app which disables the default video background rendering and allows you to choose your own texture to render to. Did you already apply this technique to your 3.0.9 based project?

This workaround is no longer necessary with 4.0.103 sample apps, since they now use the BTA technique.

Also, did you try going through the steps I provided in the following thread post with a new project and compile to your devices?

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/background-texture-black-strip-iphone-6#comment-2044967

You mentioned that the project was working fine 2 weeks ago, but the issue with the iPhone 6 Plus on 3.0.9 and black portions of screen has been known since last year. What changed in the past two weeks that would have affected your 3.0.9 based project?

 

No Camera Image, Unity, iPad Air 2

March 11, 2015 - 6:03pm #17

Hello AlessandroB,

I'm completely at my wits end.

The small box in the corner is happening on all devices now.  My old iphone 5. My ipad 2 air. My wife's iphone 6. My iphone 6+. I've tried running in IL2CPP, tried Mono(2.x), ARMV7, ARM64 and Universal.  Open GL ES 2.0, 3.0, automatic, I've even tried Metal just for giggles. All combinations of them all and the build is still broken.  Operating systems are all iOS 8.1 and up.

Everything was working perfectly just 2 weeks ago. The project is done and ready for client approval and every day I have to delay sending them an approval build because of this. Clients are beyond impatient.

No Camera Image, Unity, iPad Air 2

March 11, 2015 - 1:24pm #16

The approach highlighted by dm3d is "device -independent", i.e. it is of general applicability; it has the advtange of render the camera background correctly on the iPhone 6 Plus, but of course it is also supposed to work correctly on any other device.

 

No Camera Image, Unity, iPad Air 2

March 11, 2015 - 7:14am #15

Thank you again dm3d!

 

I looked at that link you posted and I will be digging into this solution this evening.  But I have one last question about this issue: If I take this approach to fix the 6+, will the new background plane render in the proper aspect on all the other devices? 

 

If all else fails, I'm going to need to move to 4.0 asap but I'll need to get client approval first for the additional cost.

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 1:09pm #14

Attached is screenshot of the default ImageTargets 3.0.10 sample compiled with Unity 4.6.3f1 running on an iPhone 6 Plus (8.1.3). You can see the same quarter-screen effect on the camera feed. As Alessandro mentioned, the workaround for Vuforia 3.0.9 is using the technique from the BackgroundTextureAccess sample. Here's some simple steps from the thread that Alessandro included earlier:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/background-texture-black-strip-iphone-6#comment-2044967

 

AttachmentSize
Image icon iphone6plus_IT3010.PNG1.36 MB

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 12:45pm #13

Ugh... I was really hoping not to have to port to 4.0 at this point.  But I do very much appreciate all of the help and feedback! Going to try and fake this with the link posted by AlessandroB just so I can stay in 3.0.9 for now.  I will reply back to this thread when I have a solution one way or another.

AlessandroB and Kirkules thanks again for your help!

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 12:08pm #12

To clarify, it was working for me on my iPad Air 2 with the Graphics API set to 2.0.
I set the mono to your recommendations and it also works for me.

 

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 12:07pm #11

@shockreel:

If you the camera video background is partially black on iPhone 6Plus, this is a known issue with Vuforia 3.0.9 with that specific device;

this is solved in 4.0, so your best bet would be to upgrade to 4.0;

if you're temporrly bound to using 3.0.9, you could workaround the issue using the camera rendering approach used in the Background Texture Access sample.

See also this thread:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/background-texture-black-strip-iphone-6

 

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 11:45am #10

Hi kirkules,

in your Player Settings screenshot, I see you are using MONO (2.x) as "Scripting Backend";

try changing this to IL2CPP (this is the recommended one, as it supports both 32bit and 64bit on iOS,  whereas "Mono" only supports 32bit).

So, you should use:

- Graphics API: OpenGL ES 2.0

- Scripting Backend: IL2CPP

 

Also, I recommend using Unity 4.6.3, as this is the latest Unity version officially tested with Vuforia 4.0, as of today.

For Unity 5 support with Vuforia 4.0, please see this sticky notice:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/vuforia-40-and-unity-50

 

 

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 11:20am #9

I'm setting the option in Unity Player Settings.

If the same build chooses OpenGL ES 2.0 on the iPad Air 2 and Metal on the iPhone 6 Plus, then I'd say yes, it's an iPhone 6 Plus thing. But it still may be fixable in unity or Xcode.

 

AttachmentSize
Image icon ssa.png95.77 KB

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 10:49am #8

@Kirkules

Are you somehow forcing Open GL ES 2.0 in Xcode after Unity compiles?  I'm a little suspect of this because like you, I can reproduce the black screen easily but unlike you, when forcing Open GL ES 2.0, I get the little box in the corner.  I believe that in my case, Open GL ES is in fact running on my device because the screen isn't solid black. Could this possibly be an iphone 6 plus thing?

 

I've seen the little box before on much earlier versions of Vuforia. And typically only on Android.

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 10:40am #7

I'm brand new to Vuforia and Unity 5 (installed both yesterday), but have been working with Unity 4 for about 6 months, published a game, and have other things in the works..

Graphics API

I thought I read about there being some issue with Metal support in Vuforia 4, and to set the graphics api to OpenGL ES 2.0. I did that at the time, but then reset everything in a new project, and forgot about that issue. The iPad Air 2 and the iPhone 6 probably both default to Metal for the graphics API.
There may be some reason your change to the Graphics setting to OpenGL ES 2.0 may not be getting built into the project, and therefore the devices are not selecting the OpenGL ES 2.0 API? There could be a few other reasons.

ImageTargets

I also had a black screen with Metal (no video displayed on background) and also was able to see multi-target acquired and displayed on the black iPad screen (which was pretty cool looking and will be used!).
When I switched to force OpenGL ES 2.0, the camera image was displayed properly.

Metal crash.

I'd say there's defininately a bug there either on Unity's side or iOS's side.. but this is highly reproducable and should be easy to fix if it hasn't been addressed already.

 

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 10:12am #6

@ dm3d Yes I saw your response and it did help me somewhat. (Thanks for the quick reply!) 

My screen went from black to what you see in my attached screen shot.  Incidentally, this same thing happens when Unity's Graphics API is set to either Open GL ES 2.0 or 3.0.

 

Unrelated, the web portal is super buggy.  4 out of 5 times I attempt to respond to you it forces me into a log-in loop or just displays my reply in a pseudo preview mode. Safari and Chrome don't work at all. Firefox sometimes works. I had to edit the message separately after getting it to post and then attach the screenshot.

AttachmentSize
Image icon IMG_0714.PNG1 MB

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 9:48am #5

@shockreel: Did you see my post below about setting Graphics API in Unity to Open GL ES 2.0?

Also, can you post a screenshot of the camera feed appearing in the lower corner when you set the Graphics API to Open GL ES 2.0?

No Camera Image, Unity, iPad Air 2

March 10, 2015 - 8:55am #4

Hello.  I am all of a sudden having this same problem on iOS through Unity. I have been all over the forums here and have seen that lots of folks are having this issue. I've tried a few different things that have been posted here but have had no luck getting this to work again.



Here is the information about my hardware and software that I'm using and what's going on:



Unity 4.6.3f1



Xcode 6.1.1



iPhone 6 plus - 8.1.3



ipad air 2 - 8.1.2



I have an ongoing public facing project for a client that has been available in the iOS app store and in Google Play for almost 2 years.  We've been updating it and supporting it regularly since its initial release. It has been well received by their customers and our hope is to push out this update and go into high gear with promoting it.



I migrated the project to Vuforia 3.0.9 (after backing up as I always do) about a month ago and things still worked fine. The only changes that have been made to the project in the last month have been to the main menu UI and not the AR viewer portion of the app. I did Update Unity to 4.6.3f1 but I was already using 4.6 prior to this problem with no issues. 



If I set the Graphics API level in Unity to Automatic, the iOS build runs with the infamous black screen. My UI shows up over top of it but no video from the camera. I have gone into settings on each device and made sure that camera is allowed for my app.  (I've even toggled it on and off to see if it would kick things on. No luck.) Stranger still, if I point my device (all in black) at one of my markers, the augment shows up over black. So I believe Qcar and the device camera are working.



I am well aware of the UISupportedInterfaceOrientations crash bug in Vuforia 3.0.9 and I know how to fix it quickly. That is not the issue. (See liwei1dao's post at this thread: http://forum.unity3d.com/threads/unity-4-6-0b20-vuforia-3-0-9-ios-exc_bad_access.274387/)  



I have also attempted AlessandroB's fix for the current problem posted here: https://developer.vuforia.com/forum/device-support/black-screen-ios-devices-camera-mode  and that also did not work. Again, the augments in my project do appear over black when my device's camera is pointed at the markers so I firmly believe that the camera is indeed working.

When the Graphics API level is set to Open GL ES 2.0 or 3.0 I see the camera feed but only in the bottom left hand corner. 

The app does not crash while running when not tethered to Xcode, just no video feed from the camera. However, when in Xcode, it will throw up an EXC_BAD_ACCESS. I've attached a screenshot.(when set to API-auto)



I have made all of my client's most recent revisions and this latest update is now completely done and ready to be published. A lot of work has gone into this project in the last month and I would very much like to see it published (as would my client!)  This screen problem is now holding everything up.



I know that ultimately this project will need to migrate to 4.0 but I would very much like to push this one out with 3.0.9 for now. Cloud reco is not an option for this project. 

Everything has ground to a complete standstill at this point. Any help is greatly appreciated!! 

 

No Camera Image, Unity, iPad Air 2

March 9, 2015 - 7:12pm #3

The "GfxDeviceMetal.mm" offers a hint. You will need to set your Graphics API setting in Unity iOS settings to Open GL ES 2.0. A setting of Automatic will default to Metal.

No Camera Image, Unity, iPad Air 2

March 9, 2015 - 6:54pm #2

I got the multi image target sample to work.. Hurray, however, now I'm having this crashing bug when I press the home button and the app is backgrounded:

 

-> applicationWillResignActive()

StopQCAR

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)

 

markerTrackerStop

objectTrackerStop

Trackable chips lost

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)

 

cameraDeviceStopCamera

cameraDeviceDeinitCamera
 

ar`GetCurrentTargetWidth at GfxDeviceMetal.mm:1921:

0x192d004:  movw   r0, #0x4120

0x192d008:  movt   r0, #0x75

0x192d00c:  ldr    r0, [pc, r0]

0x192d010:  ldr    r0, [r0]

0x192d014:  ldr    r0, [r0, #4]

0x192d018:  bx     lr

Log in or register to post comments