locking camera in Sun Earth corotating frame ecliptic

All about writing scripts for Celestia in Lua and the .cel system
Topic author
astro
Posts: 41
Joined: 27.10.2003
With us: 16 years 11 months

locking camera in Sun Earth corotating frame ecliptic

Post #1by astro » 10.05.2009, 12:18

I am trying to lock the camera in the Sun Earth co-rotating frame ecliptic centered on Earth
I have tried this:

Code: Select all

select { object "Sol/Earth" }
follow { }
select { object "Sol" }
lock   { }

But this locks the camera "up" axis to be fixed relative to the projection of the Earth Z body axis and thus it makes the ecliptic appears to rotate one way and then the other with a one year period.

So I tried this :

Code: Select all

select { object "Sol/Earth" }
setframe { ref "Sol/Earth" coordsys "ecliptical" }
follow { }
select { object "Sol" }
lock   { }

But it didn't change anything.

Is there a way to make the camera orientation fixed relative to Sun Earth direction + ecliptic Z axis in the script without creating a new body fixed to Earth with body frame equal to ecliptic in the ssc?

Thanks

Avatar
selden
Developer
Posts: 10138
Joined: 04.09.2002
With us: 18 years
Location: NY, USA

Re: locking camera in Sun Earth corotating frame ecliptic

Post #2by selden » 10.05.2009, 13:54

It acts differently in Celestia v1.6.0RC1, so you might give that a try.

See viewtopic.php?f=2&t=13710
Selden


Return to “Scripting”

Who is online