Log in or register to post comments

Model Augmenting Problem after upgrade 4

March 5, 2015 - 8:00am #1

I've upgraded to vuforia 4 and changed ImageTracker to ObjectTracker but when i scan the target and augmenting data is not augmenting proper. First time scan it's augmenting proper and scan the second time it floating on the air and third time it's not showing in the screen. Not sure what's happening with vuforia 4. Please it's urgent issue.

public ImageTargetBehaviour ImageTargetTemplate_AssetBundle;

newImageTarget = Instantiate (ImageTargetTemplate_AssetBundle.gameObject) as GameObject;
 
// enable the new result with the same ImageTargetBehaviour: ???
//ImageTracker tracker = TrackerManager.Instance.GetTracker<ImageTracker> ();
ObjectTracker tracker = TrackerManager.Instance.GetTracker<ObjectTracker>();
ImageTargetBehaviour imageTargetBehaviour = (ImageTargetBehaviour)tracker.TargetFinder.EnableTracking 
(targetSearchResult, newImageTarget);
StartCoroutine(GetAssetBundle(imageTargetBehaviour));

Model Augmenting Problem after upgrade 4

March 6, 2015 - 6:42pm #5

what was the problem?

Model Augmenting Problem after upgrade 4

March 6, 2015 - 3:01am #4

I've got it and it's working now..Thanks

Model Augmenting Problem after upgrade 4

March 5, 2015 - 8:40pm #3

I'm using same way and the app is working fine in the below vuforia 4 but after upgrading vuforia 4 it's not augmenting properly...I combined vuforia cloud & video playback app.

 

newImageTarget = Instantiate (ImageTargetTemplate_AssetBundle.gameObject) as GameObject;
 
// enable the new result with the same ImageTargetBehaviour: ???
//ImageTracker tracker = TrackerManager.Instance.GetTracker<ImageTracker> ();
ObjectTracker tracker = TrackerManager.Instance.GetTracker<ObjectTracker>();
ImageTargetBehaviour imageTargetBehaviour = (ImageTargetBehaviour)tracker.TargetFinder.EnableTracking 
(targetSearchResult, newImageTarget);
Debug.Log (imageTargetBehaviour);
 
StartCoroutine(GetAssetBundle(imageTargetBehaviour));
 
IEnumerator GetAssetBundle(ImageTargetBehaviour itbModel ) {
 
using (WWW www = WWW .LoadFromCacheOrDownload(bundleURL, Version)) {
 
yield return www;
Debug.Log (Version);
 
if (www .error != null)
throw new UnityException("WWW Download had an error: " + www .error);
 
 
AssetBundle bundle = www .assetBundle;
 
 
if (AssetName == "") {
Debug.Log ("null");
 
 
  mBundleInstance = Instantiate (bundle.mainAsset) as GameObject;
 
mBundleInstance.transform.parent = itbModel.gameObject.transform; 
mBundleInstance.transform.localScale = new Vector3(0.3f, 0.3f, 0.3f);
mBundleInstance.transform.localPosition = new Vector3(0.0f, 0.0f, 0.0f);
mBundleInstance.transform.gameObject.SetActive(true);

 

Model Augmenting Problem after upgrade 4

March 5, 2015 - 8:29am #2

Are you reinstantiating the target from an asset bundle w/ each recognition?

You may need to re-parent the targt to your content. Here's an example..

See: https://developer.vuforia.com/forum/cloud-recognition/multiple-trackable-handling-question

 

Log in or register to post comments