Jul 8, 2009 at 11:31 AM
Edited Jul 8, 2009 at 12:33 PM
I played around with rotation but did not get any farther yet. What I found out is, that neither a transformation on the view point or changing the roll property give me the desiered results.
And isn't actually putting the vemap inside a scatterview or any other thing that I could transform, the same as changing the cameras roll? Because what we actually see is a projection of the camera itself, so changing roll and transforming the projection
would be the same. Or am I missing something here?
What I would like to do is rotate the camera around the centerpoint of the map that it points to, not rotating the camera in place. But I have absolutly no idea how to do that. I found this articel
http://blogs.msdn.com/virtualearth3d/archive/2008/05/06/basic-math.aspx but don't get any farther. Maybe my math is just to rusty. The globecontrol has it's own rotate/pitch controls wich do exactly that. If you go at http://www.microsoft.com/maps/isdk/ajax/
you can actually see how its done.
Go to "Work With 3dMaps/ Set alt., heading, and pitch". Setting the heading would be exactly what I want to accomplish, but the vemap does not have the function SetHeading.
If anyone can point me to a direction on how to implement these I would be really glad, because I'm out of ideas.
EDIT: I found a way of rotating around a point with the GlobeControl.Host.Navigation.FlyAround function, I now just need to find out the centerpoint the camera points to.
EDIT2: Found something interessting http://blogs.msdn.com/virtualearth/archive/2009/05/27/microsoft-touch-pack-for-windows-7-features-virtual-earth.aspx.
They seem to do rotate just fine. Should be available when win 7 launches.