By NathanDortman
on Sun, 11/11/2012 - 10:36
Hello,
I've uploaded 2 different image targets to the server and I'm trying to make the unity app recognize them and assign a different model to each one.
How do I do that?
-Nathan
Multiple targets in Unity VisualSearch
You can accomplish that by customizing your search result event handling within the CloudRecoEventHandler's OnNewSearchResult method.
Multiple targets in Unity VisualSearch
Thanks for the snippets :)
I was wondering about pre-authoring the augemntations within Unity.
How can I accomplish that in the designer without any code?
Thanks
Nathan
Multiple targets in Unity VisualSearch
Hi Nathan, just a side note:
if you use the Cloud Reco, your typical use case would be to have a large number of image targets uploaded on the cloud;
Multiple targets in Unity VisualSearch
Thanks Alessandro,
I see what you're talking about.
David: Can you tell me which script file I need to add the handler to?
Multiple targets in Unity VisualSearch
The Cloud Reco Event Handler is already a component of the CloudRecogntion prefab, so you don't need to add anything new, simply modify CloudRecoEventHandler.cs.
Multiple targets in Unity VisualSearch
Hey David,
I do not see any file called CloudRecoEventHandler.cs, nor do I see ICloudRecoEventHandler used anywhere in the code, could it be that I'm using an outdated version?
Thanks,
Nathan
Multiple targets in Unity VisualSearch
Hi Nathan,
It could be that you are using an outdated version.
Multiple targets in Unity VisualSearch
Hey Nalin & David
As far as I understand (from Carla and Roy) 2.0.21 isn't available to developers yet.
Could you rephrase your answers with 2.0.18 in mind?
Thanks
Nathan
Multiple targets in Unity VisualSearch
Let me check on the status of the update so that you're not wasting your effort.
For 2.0.18 you'd implement this in the EnableNewResult method of the CloudRecoBehaviour - see line 203 for instructions.