As stated in the topic
I have a model showing up which is good. If i look at it from the top then its centered on the image target which is what i want. My problem is that after I change the angle the model moves in a weird way. It shows the model at the angle it is supposed to but it looks like it moves it off of the Image target. For instance i move the phone down so that i can see the model from the front which i do but as i move it down the model slides off of the ImageTarget and more towards me so after a certain point it looks like it off the image target entirely.
Does the on Tracking found and on Tracking lost function in DefaultTrackableEventHandler handle this or is it some other function deeper in the code.
Thanks for all the help that has been provided so far.
Where is positioning in relation to Image Target Handled
Which version of Unity are you using, and which extension version ( iOS or Android )? There's an issue between Unity 3.5.2 and iOS that can cause models to become offset.
Where is positioning in relation to Image Target Handled
I am using Unity 3.5 and programming on Android. Currently I have found the Position Trackable but I cannot see when it is called as the logs do not print out. Also I am instantiating all my models dynamically if that has anything to do with this.
Where is positioning in relation to Image Target Handled
It may. Can you post an example of the code you're using to instantiate and position the model? Have you confirmed that these are being parented by their respective ImageTargets.
Where is positioning in relation to Image Target Handled
The code below is my own implementation of the trackable events handler.
Where is positioning in relation to Image Target Handled
That looks fine. What you may be seeing is pose distortion at shallow viewing angles. Is this occurring when you approach the plane of the target w/ the camera perpendicular to that plane?
Where is positioning in relation to Image Target Handled
Thanks,
I just found out after all this time that the viewing angle thing is not a problem for this project. So thank you very much for all your help.