Track while keeeping the horizon downards

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Jairo Amaral
Posts: 3
Joined: 10.04.2011
Age: 40
With us: 9 years 9 months
Location: S?o Jos? dos Campos, S?o Paulo, Brazil

Track while keeeping the horizon downards

Post #1by Jairo Amaral » 16.08.2017, 13:39

I'm used to Celestia, but I'm a newbie for scripting.

I'd like to use Celestia to teach position astronomy. I want to make lots of comparisons between what is seen from the ground, and what is seen from space, specially in time lapse.

My greatest problem with scripting is that I couldn't find a way to track an object in the sky like an azimuthal mount would do, -- keeping the horizon at the bottom of the image -- you know, like a human being would do from Earth. Celestia seems to keep an absolute orientation, so Earth's horizon keeps dancing around the image while the image doesn't rotate at all -- and that defeats the purpose of showing what someone would actually see.

Is there a simple way to do it that I'm missing? Has anybody done this before?

If this doesn't exist, could it be done with the available languages? Math is not a problem for me.


Posts: 10138
Joined: 04.09.2002
With us: 18 years 4 months
Location: NY, USA

Post #2by selden » 16.08.2017, 19:40

Celestia does have an alt-az mode: keyboard Ctrl+f, celx setaltazimuthmode

See ... elx_celestia#setaltazimuthmode

I dunno if that does everything you want, though.

A workaround might be to define a SurfaceObject (which automatically stays perpendicular to the local surface) and do the movements relative to that instead of relative to the planet's surface. See ... th.22_.7B_...parameters..._.7D

Return to “Scripting”

Who is online