[quote="WeAllWantIt"]Could you please copy-paste your script as a reply in this thread, so that everyone can enjoy it without giving away an email address (spam hits hard these days
)
quote]
Ok, ok ...
Sorry, I was not aware of the spam
problem. I was only afraid of boring with 200 loc showing repeatedly the same commands and working not perfectly anyway...
As I said in the previous post, the repeated sequence of timerate and wait commands only serves to vary the time lapse when approaching a planet, i.e. moving faster when far away, and (more or less smoothly) moving slower when in the near. However, the result is not totally reproducible, and I noticed that the script works better when run a second time (and all the textures are already loaded I guess).
Any better idea? My thoughts: It would be nice if the wait command could possibly be linked to the distance to a planet or to the Celestia clock ('wait until a specfic distance is reached' or 'wait until a specific julian date is reached').
Now here is my attempt of a Voyager script. I use the Voyager trajectories from
http://www.shatters.net/~claurel/trajectories/ .
Volker
{
labels {clear "galaxies|moons|asteroids|constellations|stars|planets|spacecraft" }
time {jd 2443428.6}
timerate {rate 1000.0}
select {object "Sol/Earth"}
follow { }
gotolonglat {distance 2.2 longitude 100.0 latitude 50.0 up [0 1 0] upframe "ecliptical" time 20.0}
wait {duration 30}
select {object "Voyager 2"}
goto {distance 1000.0 time 1000.0}
wait {duration 2.0}
time {jd 2443429.0}
gotolonglat {distance 0.000001 longitude 100.0 latitude 0.0 up [0 1 0] time 5.0}
labels {set "planets" }
wait {duration 5.25}
labels {set "spacecraft" }
goto {distance 5.0 time 5.0}
wait {duration 5.25}
select {object "Sol/Jupiter"}
lock { }
timerate {rate 5000.0}
wait {duration 1.0}
timerate {rate 10000.0}
wait {duration 1.0}
timerate {rate 50000.0}
wait {duration 1.0}
timerate {rate 100000.0}
wait {duration 1.0}
timerate {rate 500000.0}
wait {duration 1.0}
timerate {rate 1000000.0}
wait {duration 1.0}
timerate {rate 2500000.0}
wait {duration 5.0}
labels {clear "planets" }
wait {duration 4.0}
timerate {rate 1000000.0}
wait {duration 27.5}
labels {clear "spacecraft" }
timerate {rate 500000.0}
wait {duration 4.0}
timerate {rate 250000.0}
wait {duration 3.0}
timerate {rate 100000.0}
wait {duration 2.0}
timerate {rate 50000.0}
wait {duration 1.0}
timerate {rate 25000.0}
wait {duration 2.0}
timerate {rate 12500.0}
wait {duration 3.0}
timerate {rate 7200.0}
wait {duration 4.0}
timerate {rate 3600.0}
wait {duration 32.0}
timerate {rate 5400.0}
wait {duration 18.0}
labels {set "planets|spacecraft" }
timerate {rate 7200.0}
wait {duration 5.0}
select {object "Voyager 2"}
gotolonglat {distance 5.0 longitude 0.0 time 25.0}
time {jd 2444067.0}
wait {duration 25.5}
select {object "Sol/Saturn"}
lock { }
timerate {rate 2000000.0}
wait {duration 5.0}
labels {clear "planets" }
wait {duration 22.0}
labels {clear "spacecraft" }
timerate {rate 1000000.0}
wait {duration 11.0}
timerate {rate 500000.0}
wait {duration 2.0}
timerate {rate 250000.0}
wait {duration 2.0}
timerate {rate 100000.0}
wait {duration 1.5}
timerate {rate 50000.0}
wait {duration 1.0}
timerate {rate 25000.0}
wait {duration 1.0}
timerate {rate 12500.0}
wait {duration 2.0}
timerate {rate 7200.0}
wait {duration 2.0}
timerate {rate 3600.0}
wait {duration 30.0}
timerate {rate 5400.0}
wait {duration 5.0}
labels {set "planets" }
timerate {rate 7200.0}
wait {duration 5.0}
select {object "Voyager 2"}
gotolonglat {distance 5.0 longitude 125.0 time 25.0}
time {jd 2444844.0}
wait {duration 25.25}
select {object "Sol/Uranus"}
lock { }
timerate {rate 5000000.0}
wait {duration 20.0}
labels {clear "planets" }
wait {duration 5.0}
timerate {rate 2500000.0}
wait {duration 3.5}
timerate {rate 1000000.0}
wait {duration 3.0}
timerate {rate 500000.0}
wait {duration 2.5}
timerate {rate 250000.0}
wait {duration 1.5}
timerate {rate 100000.0}
wait {duration 1.5}
timerate {rate 50000.0}
wait {duration 5.0}
timerate {rate 25000.0}
wait {duration 4.0}
timerate {rate 12500.0}
wait {duration 3.0}
timerate {rate 7200.0}
wait {duration 4.0}
timerate {rate 3600.0}
wait {duration 25.0}
timerate {rate 5400.0}
wait {duration 3.0}
labels {set "planets" }
timerate {rate 7200.0}
wait {duration 5.0}
select {object "Voyager 2"}
gotolonglat {distance 5.0 longitude 185.0 latitude -5.0 time 25.0}
time {jd 2446457.0}
wait {duration 25.25}
select {object "Sol/Neptune"}
lock { }
timerate {rate 5000000.0}
wait {duration 5.0}
labels {clear "planets" }
wait {duration 15.0}
timerate {rate 2500000.0}
wait {duration 3.0}
timerate {rate 1000000.0}
wait {duration 3.0}
timerate {rate 500000.0}
wait {duration 2.5}
timerate {rate 250000.0}
wait {duration 2.0}
timerate {rate 100000.0}
wait {duration 2.0}
timerate {rate 50000.0}
wait {duration 2.25}
timerate {rate 20000.0}
wait {duration 6.0}
timerate {rate 8000.0}
wait {duration 6.0}
timerate {rate 3000.0}
wait {duration 5.0}
timerate {rate 1000.0}
wait {duration 4.0}
timerate {rate 600.0}
wait {duration 30.0}
gotolonglat {distance 5.0 longitude 185.0 latitude -5.0 time 25.0}
changedistance {rate 2.83 duration 16.0}
}