I have recorded a 3D map of an environment in Unity using TrackingMapRecorder, this generates me a wtm file.
Now I would like to use this file inside Unity, to do this I found ObjectTracker but I can't manage to make it work. Can you point to an example or tutorial.
What I do :
- Attach TrackingMapRecorder to a gameobject
- TrackingMapRecorder.TrackingMapName = "filename.wtm";
- The map point is displayied in Unity
- Attach ObjectTracker to a gameobject
- Set Target collection to the generated file
At this point I am stuck since I don't know wich callbacks respond when the scene is recognized
Could you provide some help
I am using 2.1.0 (Wikitude_Unity_2-1-0_2-1-0_2017_03_27_21_02_32.zip)
Downloaded from http://www.wikitude.com/download/
If you want to track an environment, I would recommend using the new Instant Tracker. It works better that the old map recorder, which is being deprecated and will be removed in the future. Also, when using the instant tracker, you don't have to record a map ahead of time as it records and tracks at the same time.
There already is a sample on how to use the Instant Tracker included in the Unity package.
Thanks for your quick reply