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: 38
With us: 8 years 4 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: 10065
Joined: 04.09.2002
With us: 16 years 11 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

Gurren Lagann
Posts: 150
Joined: 31.01.2018
Age: 13
With us: 1 year 6 months

Post #3by Gurren Lagann » 04.08.2019, 22:29

Spambot above...

Posts: 358
Joined: 16.08.2018
Age: 13
With us: 1 year
Location: Southern California

Post #4by SpaceFanatic64 » 04.08.2019, 22:36

Don't worry, I already reported the spambot.
Follower of the "Celestia Origin" project
Graphics Card: ATI Radeon 3000 Graphics

Return to “Scripting”

Who is online

Users browsing this forum: 1 guest