3d Google Map Progress
Chris Bishop | 4 September, 2008 | 20:41
I am back from a week off. My wife and I really enjoyed our time away. No computers, just sitting by the pool and reading books. Aaahhh! The simple life. Now back to work.
Cathy created two road models. They include curbs and grass, and one is a 15 degree turn.
Road Model Images
Road 1:
Road 2:
I was using a regular Cube Model and was able to duplicate a route in Google Maps in a scene. When I switched to Cathy’s Model’s everything was not displaying correctly. It turned out my Model was scaled at 1×1x1 and Cathy’s is not. I almost have Cathy’s models working.
Google Maps in the Scene
Using a cube Model and a texture.
Changed to using the Road Model
Looking closely at the images you can see in the image with the Cube Model the edges are all centered on each other while the Road Model are off slightly.
Clean Code
I decided to start organizing my code into proper classes from all the test classes I made so I can modify it more easily as I add features or need to make changes.
Feedback
I will post tomorrow about my technique for determining how to rotate a road segment. I rotate a road segment so the angle on Google Maps is matched in the scene. I currently have a huge if statement and I do not know if it is really required.
Road 2:
I was using a regular Cube Model and was able to duplicate a route in Google Maps in a scene. When I switched to Cathy’s Model’s everything was not displaying correctly. It turned out my Model was scaled at 1×1x1 and Cathy’s is not. I almost have Cathy’s models working.
Google Maps in the Scene
Using a cube Model and a texture.
Changed to using the Road Model
Looking closely at the images you can see in the image with the Cube Model the edges are all centered on each other while the Road Model are off slightly.
Clean Code
I decided to start organizing my code into proper classes from all the test classes I made so I can modify it more easily as I add features or need to make changes.
Feedback
I will post tomorrow about my technique for determining how to rotate a road segment. I rotate a road segment so the angle on Google Maps is matched in the scene. I currently have a huge if statement and I do not know if it is really required. 