Development Blog Week 4 – Location & AR
This week we focused primarily on the AR since it would be complicated to implement. For the most part, improvements to the map were put on hold as cosmetic improvements could be made at a later stage when (or if) we got the AR working.
Our primary goals to be completed for the end of this week were:
- Have a working prototype for the AR that could is display planes as markers
- Add code to find the user’s current location. This would be essential for the AR.
- Develop the custom infobox.
We encountered an unforeseen issue early in this week. Karl’s phone is not compatible with Google Play Services for AR. This meant that all the AR testing would have to be carried out on Niall’s phone. Because of this, initially Karl focused on the location code while Niall worked on the AR rendering functionality. The AR proved to be very challenging. We tried to alleviate this by using a single hard-coded coordinate for testing rather than using the JSON array from the API.
Adding the code for the location was somewhat harder than we had envisaged but it was resolved in the end.
We also succeeded in creating a custom map marker infobox. This now allows us to show up to ten lines of text for each plane instance.
Unfortunately the AR was still not functioning at the end of this week. We had however managed to get around the issue with Karl’s phone by using a different phone.