Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a 3d object as a marker on Google Maps like Uber does

I want to add a 3d marker for showing cars on map with rotation like Uber does but I can't find any information on adding 3d objects on Google Maps SDK for iOS.

Would appreciate any help.

Apparently no one is seeing what OP and I are seeing so here's a video of a Uber car turning 90 degrees. Play it frame by frame and you'll notice that it's not a simple image rotation. Either Uber went through the trouble of doing ~360 angles of each vehicles, or it really is a 3D model. Doing 360 images of every car seems foolish to me.

like image 900
Tolgahan Arıkan Avatar asked Dec 05 '16 12:12

Tolgahan Arıkan


People also ask

Can Google Maps be 3D?

To see Google Maps in full 3D on your Android or iPhone mobile phone or tablet, you'll have to download the Google Earth app (Android | iOS). Like Google Maps on PC, Google Earth is 3D by default. Simply zoom into your location, or click the locate me icon on the right hand side.


1 Answers

From what I can tell, they are not using 3D objects. They are also not animating between 400 images of a car at a different angle. They're doing a mix of rotating image assets and animating between ~50-70 images of a car at different angles. The illusion is perfect because it really does look like they used 3D car models !

Look at this GIF of a Uber car turning a corner (Dropbox link): GIF showing a Uber car turning a corner

We can clearly see that that the shadow and the car's view angle doesn't update as often as the car's rotation.

Here I overlaid 2 images of the car at different angles, but using the same car image: Uber car images at 2 different angles

We can see that the map is rotated ~5 degrees but the car image is perfectly clear because it hasn't changed, it was simply rotated.

like image 63
Felix Lapalme Avatar answered Oct 16 '22 18:10

Felix Lapalme