Log in or register to post comments

Marker Update problem

January 2, 2012 - 1:30am #1

App downloads mydataset.dat and mydataset.xml files from web. Markers works perfectly. Trackables doesn't change when i change files with new versions.

I used this code for replacing.

		if (System.IO.File.Exists(fileName1)){
			print("Exist1");
			System.IO.File.Delete(fileName1);
			print("Deleted1");
		}
		if (System.IO.File.Exists(fileName2)){
                        print("Exist2");
			System.IO.File.Delete(fileName2);
                        print("Deleted2");
		}
			
		
		WWW wwwdat = new WWW(myWeb +"/"+ mydataset +".dat");
		yield return wwwdat;
		var progress1 = wwwdat;
        
        System.IO.File.WriteAllBytes(fileName1, progress1.bytes);
        Debug.Log("Cache saved: " + fileName1);
    	print("file download is done");
		
		if (System.IO.File.Exists(Application.persistentDataPath +"/"+ mydataset+".dat")) {
    	print(" file does exist");}else{
    	print(" file does not exist");}
....for xml

First if commands for deleting old files as you know.
Exist1......ok
Deleted1..ok
Exist2......ok
Deleted2..ok

Second writing codes works perfectly.

So new updated versions only works when I delete app from device and install again.

how can i fix that?

Note: i have 2 scene. first one is delete and download datasets. second one is Load and active datasets. I dont think the problem is in second part. So sorry for poor English.

Re: Marker Update problem

January 6, 2012 - 3:35pm #17

Okay, I can confirm that this doesn't work consistently on an iPad running iOS 5.0.1.

It works every time on an iPhone 4 running 4.3.5.

I'm guessing there's an issue with overwriting the file on the iPad. Perhaps the file is locked from the previous read. I'll investigate more once I have a chance.

- Kim

Re: Marker Update problem

January 5, 2012 - 4:49pm #16

Yes I am waiting long time before switching scenes. I reseaching now but your iOS Scene working perfectly is it right ? If you can send me your project file shed light on my project maybe. Maybe the problem on my device.

Re: Marker Update problem

January 5, 2012 - 4:11pm #15

Are you waiting for both file downloads to be done before switching scenes? I only see one in the output you provided.

Besides that I'm not sure what the problem might be. Research file downloading with Unity, there might be a better way to ensure that the file is successfully downloaded. You may want to switch dataset names rather than using the same name over and over, if all else fails.

- Kim

Re: Marker Update problem

January 5, 2012 - 3:55pm #14

I found the problem hours ago. I compared downloaded files with "print(wwwdat.bytes.Lenght)" command. Downloaded "dat" file is new one but downloaded "xml" file is again old one. Xcode log shows all reports are done for xml (Deleted,exist,cachesaved.... but file size same). Than new "dat" and old "xml" arent working togaher. I create a empty project only includes Downoad codes, again doesnt work. I tried several times but i cant.

How can i solve that ?

Re: Marker Update problem

January 5, 2012 - 3:15pm #13
Quote:

2012-01-05 11:46:11.168 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: Config file defines target 'MYIMAGE1', which could not be found found in featureset file
2012-01-05 11:46:11.169 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: Config file defines target 'MYIMAGE2', which could not be found found in featureset file
2012-01-05 11:46:11.171 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: Config file defines target 'MYIMAGE3', which could not be found found in featureset file
2012-01-05 11:46:11.172 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: DetectorNFT4_DataSet::beginModify(): Dataset is already in modify state
2012-01-05 11:46:11.173 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: Failed to load dataset '/var/mobile/Applications/822F1744-C790-4261-8B51-96833179097B/Library/Caches/myDataSet.xml'.

This is what happens when the targets named in the myDataSet.xml file are not found in the myDataSet.dat file. Make sure that you have updated both files on the server before trying to download them. Make sure both files are successfully downloaded to the device. Also make sure both files are downloaded to the same directory.

- Kim

Re: Marker Update problem

January 5, 2012 - 2:12am #12

After 4-6 times or 5 script added project's xcode log showing this.
And working perfectly.

file download is done
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

 file does exist
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)


Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 221.
Unloading 1 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
trackerManagerInitTracker
No data sets defined. Not loading any data sets.
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

dataSetExists
imageTrackerCreateDataSet
2012-01-05 11:50:35.195 myApp[1064:707] INFO/AR(1064) 2012-01-05 11:50:35: ImageTracker: Successfully created dataset
Successfully created data set.
dataSetLoad
dataSetGetNumTrackableType
dataSetGetTrackablesOfType
Creating Image Target with values: 
 ID:           3
 Name:         MYIMAGE1
 Path:         /var/mobile/Applications/822F1744-C790-4261-8B51-96833179097B/Library/Caches/myDataSet.xml
 Storage Type: STORAGE_ABSOLUTE
 Size:         200x115.625
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

imageTargetGetNumVirtualButtons
imageTargetGetVirtualButtons
Creating Image Target with values: 
 ID:           4
 Name:         MYIMAGE2
 Path:         /var/mobile/Applications/822F1744-C790-4261-8B51-96833179097B/Library/Caches/myDataSet.xml
 Storage Type: STORAGE_ABSOLUTE
 Size:         199.8281x294
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

imageTargetGetNumVirtualButtons
imageTargetGetVirtualButtons
Creating Image Target with values: 
 ID:           5
 Name:         MYIMAGE3
 Path:         /var/mobile/Applications/822F1744-C790-4261-8B51-96833179097B/Library/Caches/myDataSet.xml
 Storage Type: STORAGE_ABSOLUTE
 Size:         199.834x285
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

imageTargetGetNumVirtualButtons
imageTargetGetVirtualButtons
dataSetGetNumTrackableType
dataSetGetTrackablesOfType
dataSetGetNumTrackables
dataSetGetNumTrackables
dataSetGetNumTrackables
dataSetGetNumTrackables
imageTrackerActivateDataSet
dataSetGetNumTrackables
trackerManagerInitTracker
Setting Unity version 3.4.0
StartQCAR
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

cameraDeviceInitCamera
2012-01-05 11:50:35.420 myApp[1064:707] DEBUG/AR(1064) UIView has CAEAGLLayer class
2012-01-05 11:50:35.421 myApp[1064:707] DEBUG/AR(1064) UIView does not respond to selector renderFrameQCAR
2012-01-05 11:50:35.423 myApp[1064:707] DEBUG/AR(1064) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceGetVideoMode
2012-01-05 11:50:35.425 myApp[1064:707] DEBUG/AR(1064) UIView has CAEAGLLayer class
2012-01-05 11:50:35.426 myApp[1064:707] DEBUG/AR(1064) UIView does not respond to selector renderFrameQCAR
2012-01-05 11:50:35.428 myApp[1064:707] DEBUG/AR(1064) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceSelectVideoMode
2012-01-05 11:50:35.429 myApp[1064:707] DEBUG/AR(1064) UIView has CAEAGLLayer class
2012-01-05 11:50:35.430 myApp[1064:707] DEBUG/AR(1064) UIView does not respond to selector renderFrameQCAR
2012-01-05 11:50:35.432 myApp[1064:707] DEBUG/AR(1064) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceStartCamera
2012-01-05 11:50:36.216 myApp[1064:707] INFO/AR(1064) 2012-01-05 11:50:36: Triggering autofocus not supported
2012-01-05 11:50:36.218 myApp[1064:707] INFO/AR(1064) 2012-01-05 11:50:36: Setting the torch mode is not supported
2012-01-05 11:50:36.221 myApp[1064:707] INFO/AR(1064) 2012-01-05 11:50:36: Setting the torch mode is not supported
2012-01-05 11:50:36.225 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:50:36: Setting the focus mode is not supported
markerTrackerStart
imageTrackerStart
dataSetGetNumTrackables
markerTrackerGetNumMarkers
Absolute number of Trackables: 3
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

dataSetGetNumVirtualButtons
Absolute number of virtual buttons: 0
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Trackable MYIMAGE1 lost
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Trackable MYIMAGE1 lost
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Trackable MYIMAGE2 lost
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Trackable MYIMAGE2 lost
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Trackable MYIMAGE3 lost
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Trackable MYIMAGE3 lost
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

not: Tried with persistentDataPath and temporaryCachePath. Doesnt matter.

Re: Marker Update problem

January 5, 2012 - 2:09am #11

I create same project several times. Test device is iPad2. and Im using qcar-unity-ios-1-5-3-beta1.

Dataset doesnt change when i add 1 download script.
Load same Trackables with new ID numbers again.

This xcode logs from 2 script added project.

file download is done
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

 file does exist
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)


Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 215.
Unloading 2 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
trackerManagerInitTracker
No data sets defined. Not loading any data sets.
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

dataSetExists
imageTrackerCreateDataSet
2012-01-05 11:46:11.017 myApp[1064:707] INFO/AR(1064) 2012-01-05 11:46:11: ImageTracker: Successfully created dataset
Successfully created data set.
dataSetLoad
2012-01-05 11:46:11.168 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: Config file defines target 'MYIMAGE1', which could not be found found in featureset file
2012-01-05 11:46:11.169 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: Config file defines target 'MYIMAGE2', which could not be found found in featureset file
2012-01-05 11:46:11.171 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: Config file defines target 'MYIMAGE3', which could not be found found in featureset file
2012-01-05 11:46:11.172 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: DetectorNFT4_DataSet::beginModify(): Dataset is already in modify state
2012-01-05 11:46:11.173 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:11: Failed to load dataset '/var/mobile/Applications/822F1744-C790-4261-8B51-96833179097B/Library/Caches/myDataSet.xml'.
Did not load: /var/mobile/Applications/822F1744-C790-4261-8B51-96833179097B/Library/Caches/myDataSet.xml
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Failed to load data set /var/mobile/Applications/822F1744-C790-4261-8B51-96833179097B/Library/Caches/myDataSet.xml.
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

trackerManagerInitTracker
Setting Unity version 3.4.0
StartQCAR
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

cameraDeviceInitCamera
2012-01-05 11:46:11.271 myApp[1064:707] DEBUG/AR(1064) UIView has CAEAGLLayer class
2012-01-05 11:46:11.273 myApp[1064:707] DEBUG/AR(1064) UIView does not respond to selector renderFrameQCAR
2012-01-05 11:46:11.274 myApp[1064:707] DEBUG/AR(1064) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceGetVideoMode
2012-01-05 11:46:11.281 myApp[1064:707] DEBUG/AR(1064) UIView has CAEAGLLayer class
2012-01-05 11:46:11.283 myApp[1064:707] DEBUG/AR(1064) UIView does not respond to selector renderFrameQCAR
2012-01-05 11:46:11.284 myApp[1064:707] DEBUG/AR(1064) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceSelectVideoMode
2012-01-05 11:46:11.286 myApp[1064:707] DEBUG/AR(1064) UIView has CAEAGLLayer class
2012-01-05 11:46:11.287 myApp[1064:707] DEBUG/AR(1064) UIView does not respond to selector renderFrameQCAR
2012-01-05 11:46:11.288 myApp[1064:707] DEBUG/AR(1064) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceStartCamera
2012-01-05 11:46:13.283 myApp[1064:707] INFO/AR(1064) 2012-01-05 11:46:13: Triggering autofocus not supported
2012-01-05 11:46:13.284 myApp[1064:707] INFO/AR(1064) 2012-01-05 11:46:13: Setting the torch mode is not supported
2012-01-05 11:46:13.286 myApp[1064:707] INFO/AR(1064) 2012-01-05 11:46:13: Setting the torch mode is not supported
2012-01-05 11:46:13.287 myApp[1064:707] ERROR/AR(1064) 2012-01-05 11:46:13: Setting the focus mode is not supported
markerTrackerStart
imageTrackerStart
markerTrackerGetNumMarkers
Absolute number of Trackables: 0
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Absolute number of virtual buttons: 0
 
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

cameraDeviceGetVideoMode
2012-01-05 11:46:13.304 myApp[1064:707] DEBUG/AR(1064) UIView has CAEAGLLayer class
2012-01-05 11:46:13.305 myApp[1064:707] DEBUG/AR(1064) UIView does not respond to selector renderFrameQCAR
2012-01-05 11:46:13.307 myApp[1064:707] DEBUG/AR(1064) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

It loading new trackables when I loading scenes 4-6 times.(in same build)

Re: Marker Update problem

January 4, 2012 - 8:06pm #10

I just tried this several times on an iPhone 4, it seems to be working perfectly. What errors are you seeing in the log?

Make sure your project is set up the same for Android and iOS. You can actually import the iOS unitypackage on top of your Android project and use a single code base, if you prefer. Make sure you are using the 1.5 release for both, of course.

- Kim

Re: Marker Update problem

January 4, 2012 - 9:22am #9

Thanks Kim this is works perfectly on android but isnt on ios. I did same things for ios project but errors when loading dataset. Xcode log shows 0 trackable, Load failed. Than when i put 5 "DeleteAndDownload" script on maincamera, it is works perfectly.

How can i stabilized this ? 5 times download takes a lot of time.

Re: Marker Update problem

January 2, 2012 - 7:20pm #8

Is your scene loading datasets automatically via the DataSetLoadBehaviour on the ARCamera? If you started with one of the sample applications this may be the case. I imported the qcar-unity-android-1-5-4-beta1 package into my project, and didn't import any datasets into Unity. That way the only datasets used are the ones downloaded at runtime.

Log file showed that App gives new ID's to same markers.

This is the expected behavior. When you unload a dataset and load it again the app assigns new ids. It doesn't keep track of datasets it has seen in the past.

- Kim

Re: Marker Update problem

January 2, 2012 - 5:25pm #7

Yes it is.
I changed my scripts with yours.
But when I loaded the AR scene again the log file showed that the old trackables again were loaded.
I tried 3 different dataset packages.
Whats wrongg :confused:

Edit: Log file showed that App gives new ID's to same markers. First Load gives 1 and 2 IDs. Second Load Gives 3 and 4 IDs. Third 5-6...7-8 (file have two image. all images names different which in 3dataset files.)

Re: Marker Update problem

January 2, 2012 - 4:02pm #6

Actually, you may not need to call DestroyDataSet if you are swapping scenes, the datasets should be destroyed automatically.

I just tested a setup that I think is similar to yours. Here is what I did:

Scene 1 - Camera with the following script attached:

using UnityEngine;
using System.Collections;

public class DownloadDataset : MonoBehaviour
{
    void Start()
    {
        string myurl = ...
        string mydataset = "myDataSet";
        StartCoroutine(DownloadAndSave(myurl, mydataset + ".xml"));
        StartCoroutine(DownloadAndSave(myurl, mydataset + ".dat"));
    }
    
    IEnumerator DownloadAndSave(string url, string filename)
    {
        string remoteFile = url + "/" + filename;
        string localFile = Application.persistentDataPath + "/" + filename;

        Debug.Log("remoteFile: " + remoteFile);
        Debug.Log("localFile: " + localFile);

        if (System.IO.File.Exists(localFile))
        {
            Debug.Log("Exists: " + localFile);
            System.IO.File.Delete(localFile);
            Debug.Log("Deleted: " + localFile);
        }

        WWW wwwdat = new WWW(remoteFile);
        yield return wwwdat;

        System.IO.File.WriteAllBytes(localFile, wwwdat.bytes);
        Debug.Log("Cache saved: " + localFile);
        Debug.Log("file download is done");

        if (System.IO.File.Exists(localFile))
        {
            Debug.Log(" file does exist");
        }
        else
        {
            Debug.Log(" file does not exist");
        }
    }

    public void OnGUI ()
    {
        if (GUI.Button(new Rect(20,40,100,100), "AR"))
        {
            Application.LoadLevel(1);
        }
    }
}

Scene 2 - ARCamera with the following script attached:

using UnityEngine;
using System.Collections;

public class LoadDataset : MonoBehaviour
{
    void Start()
    {
        string myDataPath = Application.persistentDataPath + "/myDataSet.xml";
        LoadAndActivateDataSet(myDataPath);
    }

    void LoadAndActivateDataSet(string dataSetPath)
    {
        if (TrackerManager.Instance.GetTracker(Tracker.Type.IMAGE_TRACKER) == null)
        {
            TrackerManager.Instance.InitTracker(Tracker.Type.IMAGE_TRACKER);
        }

        if (!DataSet.Exists(dataSetPath, DataSet.StorageType.STORAGE_ABSOLUTE))
        {
            Debug.LogError("Data set " + dataSetPath + " does not exist.");
            return;
        }

        ImageTracker imageTracker = (ImageTracker)TrackerManager.Instance.GetTracker(Tracker.Type.IMAGE_TRACKER);

        DataSet dataSet = imageTracker.CreateDataSet();

        if (!dataSet.Load(dataSetPath,DataSet.StorageType.STORAGE_ABSOLUTE))
        {
            Debug.LogError("Failed to load data set " + dataSetPath + ".");
            return;
        }

        for (int i = 0; i < dataSet.GetNumTrackables(); ++i)
        {
            DataSetTrackableBehaviour dstb = dataSet.GetTrackable(i);

            GameObject go = dstb.gameObject;

            go.AddComponent<DefaultTrackableEventHandler>();
        }

        imageTracker.ActivateDataSet(dataSet);
    }

    public void OnGUI ()
    {
        if (GUI.Button(new Rect(20,40,100,100), "Main"))
        {
            Application.LoadLevel(0);
        }
    }
}

After loading the AR scene I switched the dataset files on my server and went back to the first scene. When I loaded the AR scene again the log file showed that the correct trackables were loaded.

Is this what you are trying to do?

- Kim

Re: Marker Update problem

January 2, 2012 - 2:06pm #5
public class DataSetLoadActiveAndMarkerSelect : MonoBehaviour {
	
	
	string it = "marker";
		
	void Start(){

string myDataPath = Application.persistentDataPath +"/myDataSet.xml";
		
LoadAndActivateDataSet(myDataPath);
	}


	
	void LoadAndActivateDataSet(string dataSetPath){
	
if (TrackerManager.Instance.GetTracker(Tracker.Type.IMAGE_TRACKER) == null)
        {
                    TrackerManager.Instance.InitTracker(Tracker.Type.IMAGE_TRACKER);
        }

if (!DataSet.Exists(dataSetPath, DataSet.StorageType.STORAGE_ABSOLUTE))
        {
            Debug.LogError("Data set " + dataSetPath + " does not exist.");
            return;
        }

        ImageTracker imageTracker = (ImageTracker)TrackerManager.Instance.GetTracker(Tracker.Type.IMAGE_TRACKER);
		
        DataSet dataSet = imageTracker.CreateDataSet();
		
       
if (!dataSet.Load(dataSetPath,DataSet.StorageType.STORAGE_ABSOLUTE))
        {
            Debug.LogError("Failed to load data set " + dataSetPath + ".");
            return;
        }

        for (int i = 0; i < dataSet.GetNumTrackables(); ++i)
        {
			
	DataSetTrackableBehaviour dstb = dataSet.GetTrackable(i);
			
	GameObject go = dstb.gameObject;
			
	go.AddComponent<DefaultTrackableEventHandler>();
			
	GameObject marker = GameObject.Find(it+i.ToString());

	marker.transform.parent = dstb.transform;
			
        }

        imageTracker.ActivateDataSet(dataSet);
}
	
}

I tried to much variations. Can you tell me where should i put them :/ This is last step of my project. Thanks you so so much again Kim.

Re: Marker Update problem

January 2, 2012 - 1:12pm #4

Okay, now I understand. Have you tried using ImageTracker.DestroyDataSet to destroy the old dataset before loading the new one?

ImageTracker imageTracker = (ImageTracker)TrackerManager.Instance.GetTracker(Tracker.Type.IMAGE_TRACKER);
imageTracker.DeactivateDataSet(myDataSet);
imageTracker.DestroyDataSet(myDataSet);

- Kim

Re: Marker Update problem

January 2, 2012 - 12:59pm #3

opss it should be mydataset. I edited.

Problem is, Application needs reinstall to device for activating for updateded datasets.

First scene only delete old dataset and download new datasets.
Second scene have load and activate dataset.

It should be updated when i play application but it isnt work like that.

Updated versions working only after reinstall application to device.

Re: Marker Update problem

January 2, 2012 - 12:23pm #2

I'm not sure I understand the problem, is this returning true or false?

if (System.IO.File.Exists(Application.persistentDataPath +"/"+ dataIsim+".dat"))

What is dataIsim? Does fileName1 name an absolute or relative path?

- Kim

Log in or register to post comments