-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model loader cannot find GPS location #10
Comments
And you are sure you have a valid GPS signal? Skipping the gps detection will skip calculating the correct virtual position but of course not the proper rotation and scaling of the virtual object. If you want to, it would be great if you could submit the improvments for the libgdx support, its always hard to keep up with the latest version and if you already did this you can push back the changes |
Yes, have a valid GPS signal, Google Maps and GeoPosTestSetup test works fine. I will try to commit the changes :) |
Reading the logs, in de.rwth, ConcreteSimpleLocationManager just keep spamming the messages: And in general log: |
Any clue? Hum, sometimes the exception is not fired, but the application does not work even then. |
I think I've found the problem, ConcreteSimpleLocationManager.calcFromLastPositions is calculating wrong values for latitude and longitude and setting in Location target, it's far away from where I am. |
Hm ok yes it might use the wrong position first but as soon as the right one is received the objects should be at the correct position because then the camera position is moved to the correct position (in a buffered way but still it should then move to the correct position |
Ok, the purpose of this is to take the user's position as near as possible? |
Ah that might be it, I think I might have removed the gps positioning code in the model loader setup for better testing of model loading ;) Sorry for that |
Thanks to that, now I understand better how DroidAR works. |
Every time the ModelLoader application is launched from my phone, it keeps trying to find the GPS location, but never ends, both for the demo .apk and the git code (I had to make code changes to be able to run DroidAR with updated lib GDX). I can skip the location detection, but then the model is always rendered flat at position (0,0,0).
The text was updated successfully, but these errors were encountered: