So atlast loaded dataset in the app directly by downloading from server...Thanks a lot for your continuous support...
But still i have one thing to do, when i capture a target image it is not getting recognized and printed in console lik "Image found" "Image lost",
How can i add that behaviour to the object and also am pasting the log from device here for your reference...
I/Unity (13929): Creating Image Target with values:
I/Unity (13929): ID: 3
I/Unity (13929): Name: Airtel_1
I/Unity (13929): Path: /data/data/com.BeHappy.LoadAndActivate/files/H
ighRes_Logos.xml
I/Unity (13929): Storage Type: STORAGE_ABSOLUTE
I/Unity (13929): Size: 420x336
I/Unity (13929):
I/Unity (13929): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngi
neDebug.cpp Line: 43)
I/Unity (13929):
I/Unity (13929): Creating Image Target with values:
I/Unity (13929): ID: 4
I/Unity (13929): Name: Airtel_2
I/Unity (13929): Path: /data/data/com.BeHappy.LoadAndActivate/files/H
ighRes_Logos.xml
I/Unity (13929): Storage Type: STORAGE_ABSOLUTE
I/Unity (13929): Size: 420x185.7393
I/Unity (13929):
I/Unity (13929): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngi
neDebug.cpp Line: 43)
I/Unity (13929):
I/Unity (13929): Creating Image Target with values:
I/Unity (13929): ID: 5
I/Unity (13929): Name: Airtel_3
I/Unity (13929): Path: /data/data/com.BeHappy.LoadAndActivate/files/H
ighRes_Logos.xml
I/Unity (13929): Storage Type: STORAGE_ABSOLUTE
I/Unity (13929): Size: 500x400
I/Unity (13929):
I/Unity (13929): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngi
neDebug.cpp Line: 43)
I/Unity (13929):
I/Unity (13929): Creating Image Target with values:
I/Unity (13929): ID: 6
I/Unity (13929): Name: Hyundai_1
I/Unity (13929): Path: /data/data/com.BeHappy.LoadAndActivate/files/H
ighRes_Logos.xml
I/Unity (13929): Storage Type: STORAGE_ABSOLUTE
I/Unity (13929): Size: 420x262.132
I/Unity (13929):
I/Unity (13929): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngi
neDebug.cpp Line: 43)
I/Unity (13929):
I/Unity (13929): Creating Image Target with values:
I/Unity (13929): ID: 7
I/Unity (13929): Name: Hyundai_2
I/Unity (13929): Path: /data/data/com.BeHappy.LoadAndActivate/files/H
ighRes_Logos.xml
I/Unity (13929): Storage Type: STORAGE_ABSOLUTE
I/Unity (13929): Size: 400x224
I/Unity (13929):
I/Unity (13929): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngi
neDebug.cpp Line: 43)
I/Unity (13929):
I/Unity (13929): Creating Image Target with values:
I/Unity (13929): ID: 8
I/Unity (13929): Name: Hyundai_3
I/Unity (13929): Path: /data/data/com.BeHappy.LoadAndActivate/files/H
ighRes_Logos.xml
I/Unity (13929): Storage Type: STORAGE_ABSOLUTE
I/Unity (13929): Size: 247x150.9016
I/Unity (13929):
I/Unity (13929): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngi
neDebug.cpp Line: 43)
I/Unity (13929):
I/Unity (13929): Creating Image Target with values:
I/Unity (13929): ID: 9
I/Unity (13929): Name: Honda_1
I/Unity (13929): Path: /data/data/com.BeHappy.LoadAndActivate/files/H
ighRes_Logos.xml
I/Unity (13929): Storage Type: STORAGE_ABSOLUTE
I/Unity (13929): Size: 400x270
I/Unity (13929): Creating Image Target with values:
I/Unity (13929): ID: 12
I/Unity (13929): Name: Vodafone_small_1
I/Unity (13929): Path: /data/data/com.BeHappy.LoadAndActivate/files/H
ighRes_Logos.xml
I/Unity (13929): Storage Type: STORAGE_ABSOLUTE
I/Unity (13929): Size: 40x19.27115
I/Unity (13929):
I/Unity (13929): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngi
neDebug.cpp Line: 43)
I/Unity (13929):
I/Unity (13929): NullReferenceException: Object reference not set to an instan
ce of an object
I/Unity (13929): at LoadAndActivate.LoadAndActivateDataSet (System.String da
taSetPath) [0x00000] in <filename unknown>:0
I/Unity (13929): at LoadAndActivate.OnGUI () [0x00000] in <filename unknown>
Am not sure where this error comes from as am debugging it via adb logcat....Fetching the name while capturing the image will end my app successfully....
Kindly help...
I want to make a system that I can use to download various targets dynamically from my website without using "Cloud" system. I also want to save the dataset to .xml and .dat formats which I want to activate from my saving device.
There are a lot of methods and pages to doing that with vuforia and unity, but unfortunately when I test it I receive an error for all of them. It seems that i have made a mistake in my code or a vuforia class was changed.
For instance please look this link: https://developer.vuforia.com/library/articles/Solution/Unity-Load-DataSet-from-SD-Card I got Error: Using Vuforia;
I placed the .xml and .dat files in "Application.persistentDataPath + "/" + "Building1.xml" i used this Script "DataSetLoadBehavior" that attached "AR Camera and placed my code in it. I got an Error:
My code is this:
unity 4.2 pro and vuforia 2.8.9 or 3.0.9