Log in or register to post comments

Vuforia Cloud 4.0 Unity 5.0 AssetBundle Android

June 9, 2015 - 12:25pm #1
Hello,
I'm trying to create an cloud recognition app with Vuforia 4.0 and Unity 5.0 free version. I have an stable PC version, when I point to a marker with the web cam, it recognizes it and download the content from an external URL and instanciate the asset in the scene with no problems. Everything works perfect even with multiple markers, all the downloads are made with no errors and the objects are instantiated in its corresponding marker... The problem comes when I export it to android application, 2 things happen:
1. There is a scanline that looks cool, but I need to control its behaviour, so I can control when to track an when not. Its very annoying to have a personalized interface and suddenly a wild scanline appears. The thing is that I can´t find the script to control it, It comes with the "CloudRecoBehaviour" script, but it has nothing on it, it inherits from an abstract class that I can´t find. So the first question is, where, or how, can I control that scanline with its feature points?
2. When the downloading bar ends, it means that the asset must appear in the scene, but it doesn't happens like in the pc version. The asset is downloaded but not instanciated in Android version. This is my code for creating Asset bundles:
[MenuItem ("Assets/Build AssetBundles")]
	static void BuildAllAssetBundles ()
	{
		BuildPipeline.BuildAssetBundles ("AssetBundles");
	}

I read that for android and iOS, I must create different asset bundles using this code (I don't know if this is still valid for Unity 5):

BuildPipeline.BuildAssetBundle(Selection.activeObject,
			                               selection, path + ".android.unity3d",
			                               BuildAssetBundleOptions.CollectDependencies |
			                               BuildAssetBundleOptions.CompleteAssets,
			                               BuildTarget.Android);

But for both modes, i got nothing on Android. I would really appreciate any help with those problems because I need to finish this as soon as possible :'(

Vuforia Cloud 4.0 Unity 5.0 AssetBundle Android

June 16, 2015 - 5:22pm #2

In regards to the scanline, you can customize the Scanline and Feature Points colors on the CloudRecognition object in Unity. You can't disable the scanline. It is a required part of CloudReco. You can stop and start the scanning using TargetFinder.Stop() and TargetFinder.StartRecognition(). See the CloudReco sample app for an example of this.

For some info about AssetBundles, see this FAQ:

https://developer.vuforia.com/forum/faq/unity-how-can-i-augment-my-image-target-model

 

Log in or register to post comments