i try write own application-interface google earth (c++). using earthlib control camera (earthlib::icamerainfoge). interface allow control camera's longitude, latitude, etc. example:
earthlib::icamerainfoge* pcamera; double shift = ... .... pcamera->putfocuspointlongitude(pcamera->getfocuspointlongitude() + shift);//new longitude ge->raw_setcamera(pcamera, 1.0);
but when make many 'putfocuspointlongitude' small 'shift' moving shaky. ( big shift not satisfied me). there way control camera's moving native ge control?
ps sorry writing mistakes. english in not native language.
there couple of things can here:
"teleport" desired location. been while since used com api, can't remember if can pass speed set camera function or not. if can, teleport speed >= 5.0. if can't, can set global go-to speed 5.0 or higher
if you're trying create "rotating earth" type thing, can call function change view rapidly (say, 60hz, e.g., 60 times per second) , move camera little during each update. create "rotating earth" type effect.
if aren't trying rotating earth type thing, can use same principal number (2) fly smooth flying destination
you switch using kml tours, unfortunately can't start/stop them using com api. has been broken long time , don't think google fix since com api deprecated.
Comments
Post a Comment