A simple star system movie

All about writing scripts for Celestia in Lua and the .cel system
Topic author
dejudicibus
Posts: 10
Joined: 26.11.2005
With us: 18 years 11 months

A simple star system movie

Post #1by dejudicibus » 26.11.2005, 22:46

I created a very simple star system: one star and one planet with two moons. I would like to create a movie to see all objects in sequence. This is the script I would like to create (star, planet, moons, orbits visible):

1. center on star and get close to it
2. rotate star a couple of times
3. go back until you see the planet orbit from TOP
4. move to planet and get close to see planet and moons
5. rotate mmons around planet
6. move closer to planet
7. rotate planet a couple of times
8. move to first moon and get closer
9. rotate moon a couple of times
A. move to second moon and get closer
B. rotate moon a couple of times
C. go back to see the whole system

END

I am not so good with CEL. I am confused by so many coordinate modes. The biggest problem is to stay on top of orbits... I would appreciate any help. My e-mail is ddj (at) mclink (dot) it

Thank you in advance.
Dario de Judicibus - Rome, Italy (EU)
Site: http://www.dejudicibus.it
Blog: http://lindipendente.splinder.com

Avatar
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 8 months

Post #2by Adirondack » 01.12.2005, 16:00

dejudicibus,

see the CEL-Scripting-Guide by Don Goyette on the Documentation page of the CML.

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

Topic author
dejudicibus
Posts: 10
Joined: 26.11.2005
With us: 18 years 11 months

Post #3by dejudicibus » 02.12.2005, 10:01

Adirondack wrote:dejudicibus,

see the CEL-Scripting-Guide by Don Goyette on the Documentation page of the CML.

Adirondack


It was the first thing I did, but I cannot write a script that makes me see the star system from the top (to see the elliptical orbit). What I need to do is simple, but all the pieces of code I wrote do something differently.

Imagine you are on the top of sun system: you see the sun at center and the earth orbit as a circle (more or less). In a point of that circle you see another small circle: earth and moon pair. I want to see this image first, make earth run around the sun and the moon run around the earth. Than I want to zoom on earth moon pair from top and see them only. Move to earth and see it from equator; move to moon and see it from earth. Move back to original view.

I am confused by
1. so many coordinate modes which affect result of commands
2. when I am moving camera vs when I am moving planets/stars

Can you help me?
Dario de Judicibus - Rome, Italy (EU)

Site: http://www.dejudicibus.it

Blog: http://lindipendente.splinder.com


Return to “Scripting”