Log in or register to post comments

Dynamic dataset loading

November 16, 2017 - 5:19am #1

Hi

Can some one help me with an example of loading a dataset dynamically and create image targets for the trackables.

Say I created a database using target manager and downloaded the unity package. Now i use the test.xml and test.dat file in my server

Unity will download these files

How can i create a dataset using this xml or dat file and load the dataset and create dynamic trackables for tracking.



An example link would be helpful.

ObjectTracker objectTracker = (ObjectTracker)TrackerManager.Instance.GetTracker<ObjectTracker> ();

myDataSet = objectTracker.CreateDataSet ();

 

This always returns me the error

NullReferenceException: Object reference not set to an instance of an object

datasetLoader.LoadDataSet (System.String dataSetPath, StorageType storageType) (at Assets/datasetLoader.cs:52)

Thanks

Dynamic dataset loading

November 20, 2017 - 5:48am #2

Hi Smvish,

                   You have to assign Data path and storage type to StorageType.STORAGE_ABSOLUTE.

Try this,

Hope this helps.

 

Thank You 

Inovo

Log in or register to post comments