- Home /
3D model is not displaying in CloudReco vuforia
I followed this link https://developer.vuforia.com/forum/faq/unity-how-can-i-augment-my-image-target-model and it's working on ImageTarget. But when i use the same script in cloud reco it's not working. I'm getting the url value from metadata but it's not showing as a 3D model.
if(targetSearchResult.MetaData != null)
{
StartCoroutine(DownloadAndCache());
//StartCoroutine(DownloadMyBundle(1.0F));
}
mTargetMetadata = targetSearchResult.MetaData;
JSONObject json = JSONObject.Parse(mTargetMetadata);
string type=json.GetString("type");
url=json.GetString("overlay3d");
IEnumerator DownloadAndCache() {
while(!Caching.ready)
yield return null;
using (WWW www = WWW .LoadFromCacheOrDownload(url, Version)) {
yield return www;
if (www .error != null)
throw new UnityException("WWW Download had an error: " + www .error);
AssetBundle bundle = www .assetBundle;
if (AssetName == "") {
mBundleInstance = Instantiate (bundle.mainAsset) as GameObject;
}
else {
mBundleInstance = Instantiate(bundle.Load (AssetName)) as GameObject;
}
}
}
I am using Vuforia Core Samples and the same problem occurs. The 3D model is visible neither in the PlayMode nor in the android app.
My next step is to follow their Cloud Recognition Guide on the documentation.
Your answer
Follow this Question
Related Questions
Loading AssetBundles from inside the Project 1 Answer
Asset bundles and downloading media 1 Answer
How to import the object from server to unity 2 Answers
WWW Class does not work on IOS (But it works in the editor) 1 Answer
iOS App using AssetBundles & ODRs works on XCode but not on Testflight 0 Answers