Topic locked

Model offset from tracking marker

October 23, 2015 - 3:47am #1

Wasn't sure where to put this as I don't think it's specifically Android related but I am currently testing on Android.

I'm using the Unity plugin and I have everything setup and running with one small issue. Although I have lined up my model to sit right on top of the target that is being tracked when I view it in play mode or build and deploy it the model is off to the right of the marker by quite some distance. What would cause that to happen?

The frame marker I'm using is set to be at the origin to begin with.

Model offset from tracking marker

October 28, 2015 - 8:07am #6

Anyway, glad to hear you solved the issue ;-)

Model offset from tracking marker

October 28, 2015 - 2:40am #5

Yes I hadn't realised that initially so I'd built a db for the marker myself, it was only when I started poking around in the samples that I found no database was needed.

 

Model offset from tracking marker

October 28, 2015 - 1:33am #4

Frame Markers do not need a database to work; the identifiable marker are in the range [0-511] and are embedded in Vuforia.

However the fact that you had an (unused) Device Database in your Streaming Assets folder should not matter, i.e. it should not have caused the scaling issue you described. Perhaps, by removing it and refreshing Unity you simply triggered some cleanup of some obsolete chached files in Unity, which were maybe causing the issue.

 

Model offset from tracking marker

October 27, 2015 - 4:26am #3

Ok the answer was to delete the test databases I'd put in the streaming assets folder. Not sure why, I guess if you are using frame markers you don't need your own database?

 

Model offset from tracking marker

October 27, 2015 - 4:03am #2

Ok I tried coming at this from a different angle and loaded up one of the test scenes that worked and then added my model to it. That all works lovely, so there is something different between starting a scene from scratch using a prefab and working with an existing working template..... no idea what yet, but I'm thinking scale probably. Although all I did in my first test was use the frame marker prefab and made no changes to it.

Topic locked