I am able to use the plugin now to set the camera position as I want and vary it at runtime. I noticed that the plugin sets an absolute position in the global frame to
double3 startPos = double3(-2286686.1965365410 + vary,-3734648.0835802061,4638811.4431277402);
How were these co-ordinates arrived at ? What is the origin and orientation of this frame ? Is the planetary center the origin ?
How do I convert a point on the surface of the earth, specified in terms of the (long, lat, alt) into this global frame of (x, y, z) ? When I want to setup something somewhere specific then all I have is the long, lat from google maps.
Edit: Ok I got it from the Saved Locations > Lat/Lon/Alt tab, but this does not give me the numbers in global frame (x,y,z), that I can pass to igc::setPos().