Hello,
I am using Unity with Vuforia to develop a mobile application. I need to add model target dataset to my application once it is built in my Android device. Is possible to create other dataset with model target generator and add them to my application using .xml and .dat files generated from model target generator?
Now I am able to read xml file simply using this code:
public class AddDataset : MonoBehaviour
{ ModelTargetBehaviour modelTargetBehaviour;
public void Dataset0() { modelTargetBehaviour = VuforiaBehaviour.Instance.ObserverFactory.CreateModelTarget(Application.persistentDataPath + "/Prova/ToolChanger.xml", "ToolChanger"); modelTargetBehaviour.GuideViewMode = ModelTargetBehaviour.GuideViewDisplayMode.GuideView2D; modelTargetBehaviour.SetActiveGuideViewIndex(0); }
}
but when I try to trigger the augmented reality nothing appen. Could it be connected with the interruption of the data stream with the StreamingAssets folder once the application is built?
I was also thinking it was quite obvious that the only xml file would not be enough to bring informations about augmentation, but how can I make my application read all the information contained into the folder obtained from model target generator?
Thank you!
Hey there,
Hey there,
You should have the .dat file in the same directory as the .xml file. That should be enough. I would recommend logging the app and see if there's any errors when creating the Model Target during runtime. Feel free to share the logs!
Hello pscheper, first of all
Hello pscheper, first of all thank you for your reply.
I found out that what you said is necessary but not enough so I'm going to share what I actually know about it (I solved my problem):
Hey there,
Hey there,