tle2ssc: Celestia GNSS GPS Galileo Glonass Beidou TLE to SSC

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
jebba
Posts: 3
Joined: 22.05.2022
With us: 2 years 6 months

tle2ssc: Celestia GNSS GPS Galileo Glonass Beidou TLE to SSC

Post #1by jebba » 22.05.2022, 04:48

Hello folks,

I'm glad to see that Celestia is under active development once again. Thanks! :)

I created a script that converts TLEs into the .ssc file that Celestia reads. I wanted to see the various GNSS satellites in Celestia.

celestia-gnss-orbits.png
GNSS Orbits in Celestia from TLE


Code is here:

https://spacecruft.org/spacecruft/celestia-gnss

Happy hacking,

-Jeff
Last edited by jebba on 23.05.2022, 05:56, edited 1 time in total.

Avatar
Lepestronik
Posts: 19
Joined: 12.11.2020
With us: 4 years

Post #2by Lepestronik » 22.05.2022, 09:38

Welcome, Jebba!

Thanks for your stuff, it will be useful!

I have read the description of the repository and I can tell you something about creating .cmod 3D models.

Go to File --> Export --> 3D Studio (.3ds).
Save the file, such as galileo-gnss.3ds.
The galileo-gnss.3ds file created this way didn't render in Celestia. :(

The next thing you need is to use the Anim8or program
https://www.anim8or.com/download/index.html
with the extension by selden installed to export to .cmod
https://www.anim8or.com/scripts/selden/export_cmod_plugin.a8s
If you are a *nix user, you can run it with Wine.

Then:
1) Object -> Import... and select your "after-blender" .3ds
2) Object -> Export as Celestia: plug-in (*.cmod_mesh)

You will get two files: the first one with materials, the second one with meshes. Then add the second file to the end of the first one and save it as .cmod.
This will be .cmod in ASCII mode. You can modify it as plain text and use it with Celestia directly or modify it and save as much smaller binary .cmod file using cmodview program (for Celestia 1.7.0 it may come bundled, or download it here: https://celestia.space/utilites.html ).

You can read about texturing here (see Anim8or: Texturing the model section):
viewtopic.php?f=21&t=17427

Good luck!

Avatar
Topic author
jebba
Posts: 3
Joined: 22.05.2022
With us: 2 years 6 months

Post #3by jebba » 22.05.2022, 20:41

Hey Lepestronik,

Thanks for your comments. :)

I was able to convert the galileo.obj file to a galileo.cmod file directly, without having to use Blender. The Celestia tool cmodview was able to read .obj directly and save a working .cmod file. I didn't add the textures yet, but it appears that can be done in cmodview as well. I don't use proprietary os/apps.

I haven't found (or really looked for) 3D models of the other satellites yet.

Thanks again,

-Jeff

Avatar
Topic author
jebba
Posts: 3
Joined: 22.05.2022
With us: 2 years 6 months

Galmon Observers SSC

Post #4by jebba » 24.05.2022, 03:39

I added a script which makes SSC output from Galmon GNSS Project observers' latitude / longitude and plots them on Earth.

https://spacecruft.org/spacecruft/celestia-galmon

Galmon FYI:

https://galmon.eu

https://galmon.eu/observers.html

-Jeff
Attachments
celestia-galmon-observers.png


Return to “Add-on development”