Log in or register to post comments

StereoCameraRight removed from hirarchy on play

April 9, 2015 - 3:25am #1

Hi,

I tried to set up a sample project using the new beta. I tried to set up a scene by myself using just Vuforia prefabs and I tried to run sample applications (both in Unity) as well.

However, everytime I click play in the Unity Editor or also if I build and deploy to iPhone 5s the camera "StereoCameraRight" GameObject gets removed from the scene and the settings for the "StereoCameraLeft" GameObject revert to the settings the normal camera would have.

Is this only as Vuforia is recognizing that the Unity Editor or my iPhone 5s is no supported device or do I miss somethinge else here?

StereoCameraRight removed from hirarchy on play

June 13, 2015 - 8:51am #12

Hi Hummingbird,

I'm afraid I don't have the script anymore. However, it shouldn't be to hard to find out again.

Basically, have a look at the Inspector values from the Camera GameObject that will be deleted and from the second Camera GameObject as well. Remember or write down the values. Now on Start() get a reference to the Camera GameObject that still exists and change the values, instantiate a second GameObject from the existing one and adjust the values again.

Let me know if you need any further info or assistance. 

StereoCameraRight removed from hirarchy on play

June 13, 2015 - 12:40am #11

Hi DrDigg0R,

Could you also show me the C# script code to instantiate the second camera. C# script and Unity is new for me as well. At the moment we really want to use this to test for our school project.
Many thanks in advance.

Hummingbird

StereoCameraRight removed from hirarchy on play

April 17, 2015 - 7:55am #10

Holly shit. It could have just say anything in console. One must spend hours of figuring out why the bloody camera gets deleted from hierarchy and plenty of errors are thrown to console. Thanks for hint guys.

StereoCameraRight removed from hirarchy on play

April 13, 2015 - 1:01am #9

Thanks jasonribs, sadly adding the digital eye wear app key don't does the trick for an unsupported device. I use an iPhone 5s and it seems like stereo is disabled automatically per design if a mono camera is detected.

@Ippier: Sure, I can PM you the script and explain how to use it if you still need it. However, please note that on a supported device it should work out of the box as far as I understand.

Would be nice to know if there are any plans to support mono camera devices as well. Of course with only one camera you get no depth in the background camera feed, but it is enough to get the context of the environment and use stereo for the virtual content.

StereoCameraRight removed from hirarchy on play

April 10, 2015 - 4:18am #8

Yes same for me on bt200.

StereoCameraRight removed from hirarchy on play

April 9, 2015 - 11:17pm #7

Adding a "digital eye wear app key" from the vuforia developer license manager did the trick for me! 

 

Thanks for pointing that out Jason!

StereoCameraRight removed from hirarchy on play

April 9, 2015 - 6:39pm #6

Hi DrDiggOR, 

Could you show me how you added the second camera back in a C# script? I'm quite new to Unity and C#.  

Many thanks. 

StereoCameraRight removed from hirarchy on play

April 9, 2015 - 11:07am #5

This was happening for me as well. It was because I was using a mobile app key for vuforia instead of the new digital eye wear app key. Switch over to one of those and you'll be good to go.

StereoCameraRight removed from hirarchy on play

April 9, 2015 - 9:12am #4

Got it working with a pretty dirty hack - at least good enough for a bit testing/prototyping. Basically I instantiate the second camera manually within a c# script again.

However, would be great to get an official response as well. Actually mixed reality can work remarkable good even with a mono camera.

AttachmentSize
Image icon Vuforia_MixedReality.PNG469.08 KB

StereoCameraRight removed from hirarchy on play

April 9, 2015 - 4:22am #3

Thanks for your feedback - good to know! :)

Edit:

Just recognized when hovering over the "Swtich to Stereo Camera" button in the Unity Inspector when the "ARCamera" GameObject is selected gives a Tooltip: "Stereo cameras are automatically switched to mono on a mono or unsupported device"

Seems like this is the problem for me. I already managed to get the stereo camera feed using Durovis or Metaio in the past. However, I wanted to give Vuforia a further try as I already collected experience using the framework and liked it.

Would be great if someone from Qualcomm could let us know if we can bypass this behavior anyhow.

StereoCameraRight removed from hirarchy on play

April 9, 2015 - 3:34am #2

I have the same problem in play mode AND on the Epson Moverio BT200, so the problem is not that you're on an iphone.  

 

Log in or register to post comments