Code: Select all
obs=celestia:getobserver()
celestia:seturl("cel://PhaseLock/Sol:Earth/Sol:Earth:Moon/2009-12-11T01:02:21.01544?x=13iGcjN0OA&y=povOJMYO8////////////w&z=hir0Pqo15v///////////w&ow=0.498878&ox=-0.503754&oy=0.501514&oz=0.495819&fov=0.970781&ts=0<d=0&p=0&rf=3715&lm=52736&tsrc=0&ver=3", obs)
celestia:settimescale(1)
earth=celestia:find("Sol/Earth")
earthradius=earth:radius()
moon=celestia:find("Sol/Earth/Moon")
moonradius=moon:radius()
distance=220*earthradius
longitude=math.rad(166.7)
latitude=math.rad(63.7)
celestia:select(earth)
frame=celestia:newframe("ecliptic",earth)
obs=celestia:getobserver()
obs:setframe(frame)
obs:gotolonglat(earth, longitude, latitude, distance, 3.0 )
wait(2.0)
celestia:setrenderflags{atmospheres=true, cloudmaps=true, cloudshadows=true, orbits=true}
celestia:setorbitflags{Planet=false, Moon=true, Asteroid=false, Comet=false, Spacecraft=false, Invisible=false, Unknown=false, DwarfPlanet=false, MinorMoon=false, Star=false}
celestia:setambient (0.0)
celestia:getobserver():setfov(math.rad(38))
wait(1.0)
Traditional (and correct) result of the code above is:
The Celestia SVN 5063 result however:
...ends up at the center of Earth (distance upper left corner: -6378,1 km).
Marco