Start a new topic

pathForResource?

pathForResource?


 

Hello,

I'm playing with the simpleARbrowser example you guys have. Within it, it has:

// specify a url for the architect world. this can be a local resource from the bundle, or a web link

            NSString *architectWorldURL = ;

            

I need to put the .html file on a server but it didn't worked. How do I define the pathForResource? I tried putting:

NSString *architectWorldURL = ;

 

Also, do I have to change anything else on the code so the file loads up from the server?

Thanks in advance.

 

Hi,

you simply need to supply a NSString object containing the url of your world. The WTArchitectView does all the loading internal.

Sample:

NSString *urlOnMyServer = @"http://myServer.com/path/to/my/world.html";

;

(Didn't compile the code but you should get the idea)

 

best regards

Andreas

Thanks man!

Cheers.
Login or Signup to post a comment