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 ar.qualcomm.at, but i dont know how to export it to cloud
- Sort Posts
- 5 replies
- Last post
Start using cloud
Start using cloud
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
Start using cloud
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.
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.