this is probably something not directly related to Wikitude (or maybe it is?)... Anyway, I have the following problem: our application is nearly finished. However, sometimes the POIs tend to "jump" on the screen for a few seconds - probably because iOS started to re-callibrate the compass.
Is there a chance to detect when iOS is recallibrating the compass in order to give the user a hint?
Best regards, Christian
A
Andreas Schacherbauer
said
almost 11 years ago
Hi Christian,
You're absolut right with your explanation. On devices with a gyroscope, iOS is recalibrating sensor values when they are about to be incorrect. Currently there is not a api to detect this recalibrating situation so that you can react on it.
Best regards
Andreas
T
Thijs Bastiaens
said
over 10 years ago
Dear Andreas,
When I download the standard Wikitude application from the App-store I see 2 things. 1. I really like the standard radar, is there a way we can implement that in our own application (with a custom look and feel?). 2. The PoI's are really "steady" in a way, they are not bouncing around on the screen.
But if we run the standard ARBrowser technology in our app, and display the PoI's, they are really bouncing around hard, while on the same technology on the same phone it doesn't in your app. How come?
Kind regards, Thijs
A
Andreas Schacherbauer
said
over 10 years ago
Hi Thijs,
1. I really like the standard radar, is there a way we can implement that in our own application (with a custom look and feel?).
-> You can implement a radar like the one in Wikitude. Use ARchitects AR.Radar functionality to do so. There is also a snippet in the SDK package which demonstrates how to use the API.
2. The PoI's are really "steady" in a way, they are not bouncing around on the screen.
-> That sounds strange. Wikitude uses the same technology as the SDK. So there should be no difference in accuracy and sensitivity. Are you passing an instance of CMMotionManager to the initializeWithKey:motionManager method?
Best regards
Andreas
T
Thijs Bastiaens
said
over 10 years ago
Andreas,
You have been helpfull the last few weeks with answering my questions. I've got the "jumping" fixed now, thanks alot! I will check into the Radar and get our designer to work ^__^
I'm kind of new to JS, so if I could update all the labels their range on a location change now, that would make the finishing touch for a PoC. But how do I loop over all the drawables and refresh their ARLabel? I reckon to use this method -> AR.context.onLocationChanged = function(lat, lon, alt, acc) {}
But how to loop over them to actually refresh them?
Kind regards, Thijs
A
Andreas Schacherbauer
said
over 10 years ago
Hi Thijs,
You need to keep a reference for each drawable in an array. If you then want to update something, you can access the drawable over the array.
Christian