Start using cloud

November 2, 2012 - 1:08am #1

Can someone tell me step by step to use cloud reco in unity??when i try visual search sample in unity, it run smoothly when my device track stone, chips, or tarmac image targets, the teapot appear..but when i change the access key and secret key into mine, the teapot wont appear..i create an image target in tms at, but i dont know how to export it to cloud

Start using cloud

November 3, 2012 - 4:52pm #6

PM Alessandro or myself w/ your email address and we'll send you Java samples that will enable you to provision targets to your account database. Once you've done this, you will be able to detect those targets when querying with your Access key.

The CR Unity sample utilizes the CloudRecognition prefab, which provides CR session state management and event handling for Unity CR apps. Review the CloudRecoBehaviour class to see how this is accomplished. You can customize CR event handling by extending CloudRecoEventHandler, or implementing our own CR event handler from the ICloudRecoEventHandler interface.

Also take a look at the OnNewSearchResult method in CloudRecoEventHandler. This is fired when search results are successfully retrieved and demonstrates how to assign objects to the resulting Trackable dynamically.

The API calls to the CR service are handled by the plugin. So you don't need to call these explicitly.

We're preparing additional documentation, but for the time being your best bet is to describe to us what you want to accomplish and we'll advise you on how to do that.

Start using cloud

November 2, 2012 - 3:30am #5

Please note that the web client you need to implement can be a simple stand-alone application, whose purpose is to communicate with the remote Cloud servers, no need to integrate that with Unity.

Start using cloud

November 2, 2012 - 2:25am #4

About Unity sample, the main script you'll want to look at is CloudRecoBehaviour.cs (this handles most of the CloudReco connection related tasks)


Concerning your sample code query, I can provide you with a couple of "code snippets" written in Java, that should help get you started for uploading targets to the Cloud. Please PM me.





Start using cloud

November 2, 2012 - 2:13am #3

Thanks for the reply, can you give me a sample script that "Vuforia-CloudRecognition" use?? i really have no clue to use it..and within Vuforia-CloudRecognition unity sample, can you tell me which script that make a call to web?

Start using cloud

November 2, 2012 - 1:46am #2

Hi, uploading targets to the Cloud requires that you implement a simple web client to send out requests to the Cloud servers via HTTPS;

the web API (REST API) to encode those requests is explained in the Develper Provision API document, so you should have a look at that.

Note that this requires a bit of familiarity with web programming; of course, you are free to use the language of your choice (Java, Python, C#,..) to implement your web client.




Log in or register to post comments