Start a new topic
Solved

Using a 3D environment Map in Unity

Greetings,


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";

- TrackingMapRecorder.StartRecording();

- The map point is displayied in Unity

TrackingMapRecorder.StopRecording();

- 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


Regards


Thanks for your quick reply

Hello Carlo,

Could you please tell me which of our SDK version you are testing with and if it is on Android or iOS?

Thanks
Eva

 

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/


Thanks

On Android

Hi, 


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.


Best regards,

Alexandru

Login or Signup to post a comment