Problem With 3D Object Tracking In Unity

0 votes
asked Jan 27, 2018 by joshrobbins (130 points)

Hi,

We have successfully built your object tracking example in Unity, however when we try to use our own models we are having issues.

I have created an .obj file, with a .mtl file, and corresponding .jpg, however the cube does not get recognised :(

I have uploaded the cube.obj and .mtl files to the following location: https://www.dropbox.com/s/ij3iris1nxahkg0/Cube.zip?dl=0

We would be really grateful if someone could help us!

Kind Regards

2 Answers

–4 votes
answered Jan 28, 2018 by albert52 (31,850 points)
commented Apr 1, 2020 by skonle (100 points)
Hello,
I was also able to test the example successfully. As soon as I change the model nothing is recognized anymore.  I also get no error messages. I followed the guidelines for the Obj. File and created it with Maya.

Kind regards
commented Apr 7, 2021 by guilhermeflex (610 points)
Hello!
I have read and read and read both the guide and specification of the model and I can't seem to make Object Tracking to work.

I have absolutely no idea how can I make sure that my OBJ model uses UTF-8 encoding.
I'm exporting the model from Cinema 4D and it doesn't show anything related to that.

Here is the setup of the Object Tracker:
https://drive.google.com/file/d/1H0-m1uZy1S6tn0ubOxkKAzXhbIPptVdp/view?usp=sharing

I'm using the Sample Scene and only changed the information on the screenshot, nothing else is changed and nothing works.
0 votes
answered Apr 8, 2021 by guilhermeflex (610 points)

Ok, I ALMOST made it work.
A coworker was able to export a 3D file correctly trought Maya, but the target seems to be found and imediatelly lost:



2021-04-08 10:26:20.322 28200-28225/com.flexinterativa.testenativo I/Unity: Found target {id = 1, name = garrafa}
    ObjectTracking.<>c__DisplayClass15_0:<AddTargetControllerEvents>b__0()
    System.Action:Invoke()
    easyar.TargetController:OnTracking(Boolean)
    easyar.ObjectTrackerFrameFilter:OnResult(Optional`1)
    easyar.ARSession:DispatchResults(Optional`1, Optional`1)
    easyar.ARSession:OnFrameUpdate(OutputFrame, InputFrame, Matrix4x4)
    easyar.ARSession:Update()
     
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
2021-04-08 10:26:20.350 28200-28225/com.flexinterativa.testenativo I/Unity: Lost target {id = 1, name = garrafa}
    ObjectTracking.<>c__DisplayClass15_0:<AddTargetControllerEvents>b__1()
    System.Action:Invoke()
    easyar.TargetController:OnTracking(Boolean)
    easyar.ObjectTrackerFrameFilter:OnResult(Optional`1)
    easyar.ARSession:DispatchResults(Optional`1, Optional`1)
    easyar.ARSession:OnFrameUpdate(OutputFrame, InputFrame, Matrix4x4)
    easyar.ARSession:Update()
     
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...