How might draw a trail of a point on a planet?

All about writing scripts for Celestia in Lua and the .cel system
Topic author
jiveabillion
Posts: 4
Joined: 07.07.2013
With us: 6 years 2 months

How might draw a trail of a point on a planet?

Post #1by jiveabillion » 09.07.2013, 02:41

If you go to http://phet.colorado.edu/sims/my-solar- ... em_en.html and choose Sun, planet, moon from the dropdown in the top right and click START. Se how the line is drawn to follow the path of the moon, but only from behind the moon? I would like to be able to draw a path like this, but by tracking any point on the surface of a planet or moon. This should allow us to see all of the parabolic arcs we travel in as we travel through the galaxy.

Any idea how I could do this?

Avatar
Marco Klunder
Posts: 180
Joined: 20.02.2008
Age: 56
With us: 11 years 7 months
Location: The Netherlands

Re: How might draw a trail of a point on a planet?

Post #2by Marco Klunder » 09.07.2013, 19:02

Hello jiveabillion,

This is not really a scripting issue.
What you ask cannot be solved by scripting.

Unfortunately for you, the way Celestia handles orbit drawing, differs from your wish, and there is no option to set it.

There is however a way Celestia can draw these kind of parabolic arcs by predefined trajectories (like the trajectories of spacecrafts).
However, in that case the whole trajectory will be drawn, and not only the trailing part.
You also need to build and define those trajectories in your own *.xyz or *.xyzv files.

Marco
Marco Klunder
email: marco.klunder@hccnet.nl
Windows7 Ultimate, PD 3.0 GHz, 2 GB of RAM, Nvidia GeForce 6700 XL
Celestia161 / SVN + Lua Edu Tools v1.2 Beta9 and Celestia160-ED

Topic author
jiveabillion
Posts: 4
Joined: 07.07.2013
With us: 6 years 2 months

Re: How might draw a trail of a point on a planet?

Post #3by jiveabillion » 10.07.2013, 15:51

Is there a way to record the coordinates of a point on a planet as it moves? Perhaps plot a point every second or millisecond while time is running at 1 million times faster. If I could record this I believe I could parse the results and create some logic to connect the points for only "forward" movement around the center of its orbit. It's kind of like a 3D spirograph. Can we write to a file with a script?

Avatar
Marco Klunder
Posts: 180
Joined: 20.02.2008
Age: 56
With us: 11 years 7 months
Location: The Netherlands

Re: How might draw a trail of a point on a planet?

Post #4by Marco Klunder » 10.07.2013, 18:46

Marco Klunder
email: marco.klunder@hccnet.nl
Windows7 Ultimate, PD 3.0 GHz, 2 GB of RAM, Nvidia GeForce 6700 XL
Celestia161 / SVN + Lua Edu Tools v1.2 Beta9 and Celestia160-ED


Return to “Scripting”

Who is online

Users browsing this forum: 12 guests