Tvienti


Hello all, new member here.

I'm working on a website that maintains a database of mountains for skiing/hiking. For each I'd like to also maintain data on the best way to display the mountain in 3D to really showcase it. Right now I have this working by storing (per mountian) lat/long, pitch, altitude, and heading. It works but it takes 4 function calls to get there which seems inefficient and takes a bit of time.

Is there a better way Perhaps a single function call to tell the camera exactly where to put itself I looked in the SDK reference but couldn't find anything like this...




Re: Best way to store precise 3D views...

Derek Chan


What exactly are you looking for A single function that takes lat/longs and then plops it on the best position





Re: Best way to store precise 3D views...

Tvienti

Oh, no, sorry for not being more explicit. I'm looking for something that, given latitude/longitude, heading, pitch, zoom, and altitude, can place the camera there in a single step (perhaps even without panning, just going straight to the destination).




Re: Best way to store precise 3D views...

Derek Chan

Oh okay, have you tried using VEMap.SetMapView You pass a type VEMapViewSpecification to it with all the required fields and then the camera will pan there to match your settings.




Re: Best way to store precise 3D views...

Tvienti

This is precisely what I was looking for, I should have found that myself but I guess I was looking too hard. Thank you.




Re: Best way to store precise 3D views...

Derek Chan

no problem, glad I could help