Log in or register to post comments

CloudReco with StoryBoards [iOS]

January 8, 2013 - 12:39am #1

Has anyone tried this way? I'm trying to acheive smiliar effect as in Danchoy's app inside UINavigationController. For now I have menu with one button, but after pressing "cloud" it went to CRParentViewController and shut down after alert informing on lack of internet. I'll keep trying but maybe someone can share some info :)

CloudReco with StoryBoards [iOS]

March 22, 2013 - 9:43am #6

One way to get this working properly is to only create CRParentViewController once.  Then each time you go back to the menu it effectively pauses the AR.  

This is kind of what happens with the Tab Bar example code that I posted here.

https://developer.vuforia.com/forum/ios/integrating-sample-codes-tabbed-application

Note that the only tricky part in this is to pass in the ARViewSize when initiating it, otherwise you end up with a black screen.

 

HTH

N

 

CloudReco with StoryBoards [iOS]

March 22, 2013 - 7:25am #5

I have working CloudReco sample within StoryBoard, but there is one thing, that keeps me awake. When I go back to Menu and once again to "Cloud" I have camera, but without scanning line (though it is scanning and refreshing statusLabel)... do you know the proper way of cleaning CRParentViewController? So if I enter for the second time to CRParentViewController it looks like the first time - with scanning bar? I tried [self destroyAR] in dealloc of CRparetnViewController, but it gave me a thick, black scanning bar... not the white pretty one

No, I didn't have any of that

January 10, 2013 - 3:51am #4

No, I didn't have any of that before... Earlier tried Danchoy's ImageTarget sample app combined with Storyboards. I had i.e. white screen or simply compilation problems, but finally it was running - "go" -> white screen, when loaded AR it became proper view with camera and AR stuff.

I think you might be on

January 8, 2013 - 7:55am #3

I think you might be on virgin territory here as probably you may be the first to have tried this approach.

It sounds like something in the initialisation sequence is happening out of order, and admittedly this is probably more complex than it needs to be.

The non-camera view sounds similar to what you were getting before?

 

keep me posted - very interested to hear progress here.

N

Little progress: I managed to

January 8, 2013 - 1:45am #2

Little progress: I managed to push CloudReco inside app, so you have to go via menu button ("cloud") and stragne things aare happening:

1) here are logs:

2013-01-08 10:15:56.684 CloudReco[411:707] ARParentVC: appearing
2013-01-08 10:15:56.685 CloudReco[411:707] ARVC: Rotating to Portrait
2013-01-08 10:15:56.687 CloudReco[411:707] ARVC: viewWillAppear
2013-01-08 10:15:56.689 CloudReco[411:707] ARVC: viewWillAppear
2013-01-08 10:15:56.693 CloudReco[411:707] ARVC: viewDidAppear
2013-01-08 10:15:56.695 CloudReco[411:707] QCARutils onResume()
2013-01-08 10:15:56.770 CloudReco[411:707] APPSTATUS_CAMERA_RUNNING
2013-01-08 10:15:56.773 CloudReco[411:707] DEBUG/AR(411) UIView has CAEAGLLayer class
2013-01-08 10:15:56.775 CloudReco[411:707] DEBUG/AR(411) UIView responds to selector renderFrameQCAR
2013-01-08 10:15:56.778 CloudReco[411:707] ERROR/AR(411) 2013-01-08 10:15:56: VideoBackgroundConfig with screen size of zero received, skipping config step
2013-01-08 10:15:56.779 CloudReco[411:707] Video background get data 0 0
2013-01-08 10:15:56.852 CloudReco[411:810b] ERROR/AR(411) 2013-01-08 10:15:56: VideoBackgroundConfig with screen size of zero received, skipping config step
2013-01-08 10:15:56.856 CloudReco[411:810b] Video background get data 0 0
2013-01-08 10:15:57.752 CloudReco[411:707] ARParentVC: appeared
2013-01-08 10:15:57.754 CloudReco[411:707] ARVC: viewDidAppear
2013-01-08 10:16:03.111 CloudReco[411:6e1b] INFO/AR(411) 2013-01-08 10:16:03: Completed CloudReco transaction with ID '05c4242f6f1e4785b30076b00eb13c0e'

2) I got "Requesting..." on screen but no camera view...

In general, this is almost the same app as sample CloudReco app from Vuforia - I didn't touch anything inside CRParentViewController. As far as I know I should get background data with some appropiate resolution, not 0x0 ... anybody?

Log in or register to post comments