understanding lock

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

understanding lock

Post #1by astro » 10.05.2009, 12:35

I am trying to view the solar system from "above" (ecliptic pole) but locking the Sun Earth direction in the camera.
With this script :

Code: Select all

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

the Earth Sun direction is not locked in the camera, and I can see Earth annual motion around the Sun.
But locking works if I invert "Sol" and "Sol/Earth" positions in the script (except the ecliptic plane is wobbling because it's keeping the projection of the Earth Z body axis fixed on the camera).

Why doesn't the first script work?

Thank you.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: understanding lock

Post #2by selden » 10.05.2009, 13:46

It's a bug in Celestia v1.5.1 which is fixed in Celestia v1.6.

The availability of Celestia v1.6.0RC1 for Windows is discussed in the thread
viewtopic.php?f=2&t=13710
Selden

Topic author
astro
Posts: 41
Joined: 27.10.2003
With us: 21 years

Re: understanding lock

Post #3by astro » 10.05.2009, 14:10

Thank you Selden.
But I am using linux...

I might try to compile 1.6.0 from svn on linux later.


Return to “Scripting”