REQUEST: Drawing star maps on the fly

Post requests, images, descriptions and reports about work in progress here.
Topic author
aaron38
Posts: 4
Joined: 16.08.2009
With us: 15 years 3 months

REQUEST: Drawing star maps on the fly

Post #1by aaron38 » 06.08.2010, 19:38

I am using Celestia to draw fictional maps of trade routes between stars. Right now I'm simply hijacking the Asterisms file to draw my maps instead of the Constellations. This works fine, and it's amazing to be able to fly around and through the maps in 3D. But it's incredibly tedious to plot a course, close Celestia, edit the file and then restart Celestia. Plus the lines are only in one color so a large map becomes a jumbled mess.

What I would love to do is create these maps on the fly inside Celestia. The interface could be very simple. Enter Star A, Star B, Star C etc, line color, route name and hit Enter. One color and label per "constellation" is fine. A window to display the entire list, make edits and toggle routes on/off, and that's it.

Is something like that possible, or is the Celestia code such that the Asterisms file or equivalent simply can't be edited on the fly?

Thanks!

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

Re: REQUEST: Drawing star maps on the fly

Post #2by selden » 06.08.2010, 20:18

Unfortunately, Celestia does not have the ability for you to add lines in 3D space in realtime. There has been some discussion of that being a possibility in a future version, but I suspect it won't happen soon :(

A crude alternative would be to do it using 3D modeling software. You'd have to have a model to represent the star positions, then you could add individual lines between them. I call it crude, because you'd be using the software's "preview" function to do the realtime rotations, which would display the modeling software's coordinate axes, etc. which might or might not have any relationship to astronomical coordinate systems.
Selden

Topic author
aaron38
Posts: 4
Joined: 16.08.2009
With us: 15 years 3 months

Re: REQUEST: Drawing star maps on the fly

Post #3by aaron38 » 09.08.2010, 14:42

That's what I figured, thanks for checking. If something like this could be added in the future, it would be an amazing feature to have. Until then I'll just stick with the Asterisms file, it gets the job done. Thanks again.

W0RLDBUILDER
Posts: 122
Joined: 02.06.2010
With us: 14 years 6 months

Re: REQUEST: Drawing star maps on the fly

Post #4by W0RLDBUILDER » 25.09.2010, 05:36

Or do what you've been doing and just name the paths after their respective controlling entities.

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Re: REQUEST: Drawing star maps on the fly

Post #5by Reiko » 26.09.2010, 05:37

What about a script of some kind that could let you draw a line between stars then save it as a cmod? I don't have a clue what is and isn't possible with scripts so that might be a dumb question.

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Re: REQUEST: Drawing star maps on the fly

Post #6by ajtribick » 27.09.2010, 21:02

At one point I had a script that would draw the Delaunay triangulation for various sets of stars, not sure where it is at the moment.

Some screenshots of it, buried in the "Post your pictures" thread

EDIT: found the code, but it is very messy and needs cleaning up. Not sure how much it is worth doing this, you will need to be able to run Perl scripts and the qhull application to be able to run this.

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 8 months
Location: Thyrrenian sea

Re: REQUEST: Drawing star maps on the fly

Post #7by Fenerit » 28.09.2010, 01:22

ajtribick wrote:At one point I had a script that would draw the Delaunay triangulation for various sets of stars, not sure where it is at the moment.

Some screenshots of it, buried in the "Post your pictures" thread

EDIT: found the code, but it is very messy and needs cleaning up. Not sure how much it is worth doing this, you will need to be able to run Perl scripts and the qhull application to be able to run this.

BTW, I'm very interested in that code...
Never at rest.
Massimo

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Re: REQUEST: Drawing star maps on the fly

Post #8by ajtribick » 16.10.2010, 19:25

Ok here's the code (sorry about the delay). I got rid of one of the more obvious bugs, but please take a look at the README file and the code before you do anything with it. As it stands, it cannot handle the unit syntax for Celestia 1.7, but I somehow don't see 1.7 being released any time soon. Also included is a .dsc/.cmod file that can be used immediately to see how this looks.

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 8 months
Location: Thyrrenian sea

Re: REQUEST: Drawing star maps on the fly

Post #9by Fenerit » 17.10.2010, 23:33

Thanks a lot! Hope do not have wasted you time beyond the necessary. 8)
Never at rest.
Massimo

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Re: REQUEST: Drawing star maps on the fly

Post #10by Reiko » 19.10.2010, 05:19

J.T.K. wrote:Hello aaron38,

I have perhaps a answer for you.
I realized few months ago a "trade route" between some stars.
You save the file asterism.dat under data and you create new file
with notepad (for example) with the same name.
The file is easy to read it and to update it.

I hope that it's helping you.
Bye.
That's what he's been doing according to his first post.


Return to “Add-on development”