Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add 3D object to map and pan around it

I am trying to make a Pokemon GO clone (educational work) and I know there are several possible ways to style the Google Maps using layout tricks or MapBox. My biggest challenge is to add a 3d object/model to the map and using gestures to zoom and pan around my character.


Example of a 3D model on map and panning

Somehow the camera should be fixed to the object (marker?) and panning/zooming should be disabled on the map but the gestures should rotate the camera around the character. I was wondering if someone can shoot me in the right direction on how to implement such feature using the native Android SDK and Google Maps/MapBox

Since Pokemon GO is not using Google Maps, I am wondering how they implemented their own map stuff, but this is outside the scope of this question.

(I am not looking for a paid solution such as here.com or nutiteq )

like image 766
Verhelst Avatar asked Aug 16 '16 12:08

Verhelst


1 Answers

Mapbox Android SDK doesn't currently support 3D object, In this use case, i'd recommend using Mapbox alongside Unity instead which is made for these purposes. Here's a great blog post showing off how to do this.

like image 52
cammace Avatar answered Sep 18 '22 16:09

cammace