Drawing interstellar route lines

The home for finished/released addons.
Avatar
Topic author
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 22 years
Location: NY, USA

Drawing interstellar route lines

Post #1by selden » 17.08.2017, 11:10

In many SF settings, one would like to see the routes used to travel between stars. Celestia's "Asterisms" feature can be used to draw lines between stars, but it has limitations. All of the lines are the same color, for example.

nroutes.celx is a script which creates a .CMOD model of lines, each drawn between any pair Celestia objects, any color you want, and with their visibility potentially controllable by a Visibility setting.

https://www.classe.cornell.edu/~seb/celestia/files/nroutes.zip (9KB expands to 15KB)

See the accompanying readme file for usage details.

Briefly, nroutes.celx reads a .csv file, each line (row) of which defines a separate route. You don't have to specify the RA, Dec and distances of their endpoints yourself, instead you specify object names which are known to Celestia. The script extracts their (cartesian ecliptic) coordinates from Celestia and uses those values to create a .cmod model file.

For example, one of the lines (rows) in the the .csv file used to specify a route between Alpha Centauri and Sirius could look like this:

ALF Cen,Sirius,1.0,1.0,0.0, alpha cen to sirius

The first two fields are the names of two Celestia objects which are the endpoints of the line. They can be any of the synonyms known to Celestia for any of its STC or DSC objects. The three numeric fields specify R, G and B values used to color the route line. The text following the 5th comma is ignored.

(In principle one could specify SSC object names, but they they change position and the CMOD lines don't.)

The structure of the .csv is rather restrictive (e.g. no embedded blank lines or comment lines) but the script does not try to verify that you've entered the correct names or used the right line format. Either the script or Celestia will crash or the CMOD won't be drawn if the data is too badly messed up. In principle a lot of error detection could be added, but I just didn't feel like spending the time on it. Maybe some future version could do that. Or maybe someone else could make the appropriate changes to the script.

routes.png


routes_close.png


Of course, this also can be used to create your own colorful asterisms, too. :)
Selden

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 59
With us: 20 years 8 months
Location: Montreal

Post #2by Cham » 17.08.2017, 14:52

A way to define "stellar routes" is to create some CMOD models with lines. I used this a long time ago to reproduce the famous "Betty Hill map" in Celestia :

Betty Hill.zip
(4.22 KiB) Downloaded 250 times
(8 KB zip file)

Use the included CELX script. Of course, the translation from French to your language is up to you. It's very easy.
Attachments
BettyHill.jpg
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Topic author
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 22 years
Location: NY, USA

Post #3by selden » 12.01.2023, 21:20

The "addon" nroutes.celx has been updated.

V1.2 is functionally identical to v1.0, producing identical output .cmod and .dsc flies when given the same input .csv file.
However, its Lua I/O error messages have been improved and the documentation has been expanded.

These changes are the result of JOS encountering problems when using the script under MacOS. Thanks to him and to Markerz for clarifying the issues. Unfortunately, the problems turned out to be due to MacOS restrictions and not bugs in the script, so they're not things I can fix.

More information and the download are available at https://www.classe.cornell.edu/~seb/celestia/nroutes.html

As usual, please let me know of any problems that you encounter with it.
Selden


Return to “Add-on releases”