Log in or register to post comments

Blue screen on iOS + Unity Imagetarget example

November 21, 2011 - 3:10am #1

I tried to run the ImageTargets iOS Unity Extension example, but I always get a blue blank screen after the splash screen that looks like this, http://davidg.nu/temp/blue_screen.png , instead of getting the camera view.

I am using Unity 3.4.2f3 and Xcode 4.2 Build 4C199 with iOS 5 SDK

The devices I tested to run the example on was (same result on both):
* an iPhone 4 with iOS 4.3.3
* an iPad 2 with iOS 5.0

I have tried to set the settings that should be set etc. according to the tutorial.
Any ideas of why I only get a blue screen and how I can solve it?
Is it an bug in the QCAR Unity extension?

I would be really greatful for all the help I can get, since I have an xmas application that I want to finnish as soon as possible. It works great on android and it would be awesome to get it to work on iOS also :)

Re: Blue screen on iOS + Unity Imagetarget example

April 4, 2012 - 1:26am #12

OK, it's finally all pretty clear to me now! Thank you for all your time!

Re: Blue screen on iOS + Unity Imagetarget example

April 3, 2012 - 7:43am #11

The Unity Player will only present one scene at a time. Try un-checking the prior scene, and the one you've added should be presented.

You'll need to switch between scenes using Application.LoadLevel or a similar method.

http://unity3d.com/support/documentation/ScriptReference/Application.LoadLevel.html

*there is a way to load scenes additively (LoadLevelAdditive), but this need to be executed programmatically. It's not available from Build Settings.

Re: Blue screen on iOS + Unity Imagetarget example

April 3, 2012 - 12:19am #10

Thanks! Unity is all new to me, so couldn't find the scene :)

I, however, created my own scene in the ImageTargets sample, added the teapot and a sphere and it works fine, but then i created another scene with a different target and so on, and loaded them both in the build, and the second one doesnt work. Do I have to add all targets i one scene? Kind of messy if you have many, I think... Or am I just missing something again?

Re: Blue screen on iOS + Unity Imagetarget example

April 2, 2012 - 6:42pm #9

And be sure that you are adding the QCAR-ImageTargets to Build Settings > Scenes in Build by opening the scene and pressing Add Current. You'll then see the scene listed in the Scenes in Build window.

Re: Blue screen on iOS + Unity Imagetarget example

April 2, 2012 - 10:10am #8

Oh, are you perhaps forgetting to open the main scene? You need to double click on the QCAR-ImageTargets scene in the Project view to open it.

- Kim

Re: Blue screen on iOS + Unity Imagetarget example

April 2, 2012 - 3:01am #7

Alright, so after re-installing the extension for the fifth time, I now have the correct folder structure when starting a new project with the vuforia-ios-1-5-9.unitypackage. So i did everything in the tutorial and it works fine to build and run, but still nothing happens when i look at the target through the camera.

And still wondering about the sample projects, how to get them running properly.

Re: Blue screen on iOS + Unity Imagetarget example

April 2, 2012 - 12:37am #6

Hello! I'ts the ImageTarget sample I'm trying to run! Is it supposed to work right "out of the box"? Am I supposed to just be able to open that project and build and run it?

At first I tried to follow the getting started-guide, but the folder structure doesn't look the way it's supposed to according to the guide. And also, the package is named vuforia-ios-1-5-9.unitypackage and I downloaded it just the other day.

See my folder structure in the image attached (after having added a dataset).

And also, I've read somewhere that your're supposed to able to open the sample projects by simply doubleclicking them (the .unitypackage file) and they will open in unity. Is this correct? Because it doesn't work for me... Unity opens, but not the project.

I would greatly appreciate some more tips as to what I'm doing wrong here...
Thanks.

Re: Blue screen on iOS + Unity Imagetarget example

March 30, 2012 - 5:30pm #5

Did you do the following:

1) Add the dataset to your project.
2) Add an ImageTarget and select the dataset/target.
3) Add an object as a child of the target.
4) Set the dataset to load and activate on the ARCamera (Inspector view).

I suggest following the Unity Getting Started guide (https://ar.qualcomm.at/qdevnet/) and/or looking at the ImageTargets sample included with the installer.

- Kim

Re: Blue screen on iOS + Unity Imagetarget example

March 30, 2012 - 2:23am #4

Hello,

I'm having some issues, maybe I'm doing something wrong. When I open the ImageTargets example and run it on iPhone, I get the blue screen. So then I delete the Main Camera and replace it with an ARCamera, and so i get the camera on my iPhone. Nice. But I'm guessing something is supposed to happen when I aim the camera at the chips target och stones target? And maybe when I tap the screen? Nothing going on in my app!

I'm new to Unity and I really don't know what I'm doing, so I could use tips...

Thanks!

Re: Blue screen on iOS + Unity Imagetarget example

November 22, 2011 - 1:16am #3

Thanks Kim,

That solved my problem. You really saved my day :)

It seems like Unity created an empty scene with a normal Camera even though there was a scene in project (QCAR-ImageTargets in this case)

Re: Blue screen on iOS + Unity Imagetarget example

November 21, 2011 - 2:14pm #2

Looks like you still have a regular Camera object in the scene. You'll want to delete the camera that Unity automatically adds to the scene, and add the ARCamera prefab in its place.

You may want to try one of the sample applications as well. They are bundled with the installer on this site.

- Kim

Log in or register to post comments