Start a new topic

Black screen no camera request

Black screen no camera request


I am getting a black screen when attempting to add the WTArchitectView. I also do not get a request to use the camera.

Things I am doing and trying to get Wikitude to work

- built a template exported from WikitudeStudio. All I have in the template is a single image (trial version) which when recognised plays a embeded video.

- Able to build and run the exported template within xCode. No problems. Even get asked by the app to get permission to use the camera.

- Created a new project within Xcode - a Tabbed iOS objective-c app

- changed the view controller to be the same as the one used in the sample app. Also setup all the frameworks the same as the sample app.

- app builds and installs ok but shows a black screen once the ;

Where am I going wrong?

Do I have to tell Xcode somehwre that a camera needs to be used?

How do you know which version of the framework you are using?

I am currently using the trial version, hence my license is a trial license. If I can get this working I will purchase a SDK Pro license.

My build and test environment is as follows:


iPhone 6 with iOS 9.3

Xcode 7.3


The view controller is as follows:



#import "WTViewController.h"

#import <WikitudeSDK/WTArchitectView.h>

 

/* Wikitude SDK license key (only valid for this application's bundle identifier) */

#define kWT_LICENSE_KEY @"..."

 

 

@interface WTViewController ()

 

@property (nonatomic, strong) WTArchitectView *architectView;

@property (nonatomic, weak) WTNavigation *architectWorldNavigation;

 

@end

 

@implementation WTViewController

 

- (void)viewDidLoad

{

    ;

// Do any additional setup after loading the view, typically from a nib.

    

    self.architectView = ;

    ;

    

   

    //NSBundle* myBundle = ;

    //NSString* theIndex = ;

    NSURL* indexURL = ;

    NSLog(@"%@",indexURL);

    

    

    ;

    

    ;

    

    

}

 

- (void)didReceiveMemoryWarning

{

    ;

    // Dispose of any resources that can be recreated.

}

 

- (void)viewWillAppear:(BOOL)animated

{

    ;

    

    

    ;

}

 

#pragma mark - Managing Wikitude SDK Rendering

 

- (void)startAR

{

    if ( !self.architectView.isRunning ) {

        NSLog(@"startedAR");

        ;

    }

}

 

 

- (void)stopAR

{

    if ( self.architectView.isRunning ) {

        ;

        NSLog(@"stopedAR");

    }

}

 

 

//#pragma mark - Orientation Handling iOS 6

//

//- (BOOL)shouldAutorotate

//{

//    return YES;

//}

//

//- (NSUInteger)supportedInterfaceOrientations

//{

//    return UIInterfaceOrientationMaskAll;

//}

 

#pragma mark Orientation Handling iOS 5

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation

{

    return YES;

}

 

#pragma mark Orientation Handling for Wikitude SDK

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration

{

    ;

}

 

@end

 

Many thanks in advance for any responses. I hope I have included enough information to help find an answer

 

I think where my problem lies is the way in which I am calling the startAR method within the within the AppDelegate applicationDidBecomeActive. A copy of my Xcode project can be downloaded from:

http://bodyofwork.com.au/bow2live/BOW2.zip

 

Hope this extra bit of information helps with finding an answer.

 

Again, many thanks for looking.

 

Glyn

Hi Glyn,
Our Studio app template is not up to date. We're about to replace it with a newer version soon, but I thought I send you a link to already today.

Please download an empty app template from this link.

In combination with our getting started guide you should be able to get your application up and running.

A short summary to your previous questions:
* You don't need to tell Xcode that you need access to the camera - our SDK does that for you if you call the -start: method.
* Use the API to get the SDK version number
* A Trial license is fine for your initial testing

Best regards

Andreas
Login or Signup to post a comment