How do you add more stellar classes in Celestia?

The place to discuss creating, porting and modifying Celestia's source code.
Avatar
Topic author
Joey P. M
Posts: 462
Joined: 28.10.2017
Age: 21
With us: 6 years 6 months
Location: Vladivostok, Russia

How do you add more stellar classes in Celestia?

Post #1by Joey P. » 17.05.2019, 22:28

How do you add more stellar classes in Celestia? I want to add other Wolf-Rayet subtypes and have separate textures for type B and late K-type stars. Thanks!
Joey P.

Avatar
SpaceFanatic64
Posts: 427
Joined: 16.08.2018
Age: 18
With us: 5 years 8 months
Location: Southern California

Post #2by SpaceFanatic64 » 18.05.2019, 01:20

You can't, as far as I know.

onetwothree
Site Admin
Posts: 704
Joined: 22.09.2018
With us: 5 years 7 months

Post #3by onetwothree » 18.05.2019, 08:10

Indeed, stellar classes are hardcoded

pirogronian
Developer
Posts: 234
Joined: 05.01.2018
Age: 38
With us: 6 years 4 months
Location: Wrocław
Contact:

Post #4by pirogronian » 18.05.2019, 11:12

onetwothree wrote:Indeed, stellar classes are hardcoded

What obviously should be changed, but not until we are finish our current tasks or someone else come to help.
Still formally developer, but too tired to develop. I feel sad, but Celestia is going forward despite it.
Btw, the universe is ruled by electricity.

Avatar
Sirius_Alpha
Posts: 213
Joined: 21.03.2019
With us: 5 years 1 month

Post #5by Sirius_Alpha » 18.05.2019, 16:32

My understanding is that you can't as well. It would be nice to see this improved though, especially with spectral type Y objects being a thing now, as well as free-floating planetary-mass objects.
Exoplanet nerd. I maintain a monthly-updated exoplanet catalogue here:
https://celestia.space/forum/viewtopic.php?f=23&t=18705

Avatar
Topic author
Joey P. M
Posts: 462
Joined: 28.10.2017
Age: 21
With us: 6 years 6 months
Location: Vladivostok, Russia

Post #6by Joey P. » 20.05.2019, 23:34

If you try to assign a star a class in an .stc file that is not O, B, A, F, G, K, M, R, N, S, W, white dwarf, neutron star, or black hole, it will be assigned the class ? and will be given the default A-class texture.
Joey P.

onetwothree
Site Admin
Posts: 704
Joined: 22.09.2018
With us: 5 years 7 months

Post #7by onetwothree » 21.05.2019, 18:03

It will be a "Normal star with unknown parameters", dunno about texture, I'm too lazy to check the source code.

Kilo_SSK
Posts: 4
Joined: 24.05.2019
With us: 4 years 11 months

Post #8by Kilo_SSK » 27.05.2019, 15:46

Yes, that's what I wanted to ask, if you can't create a whole new class, isn't it possible to weasel through the preexisting categories and create something appropriate for your needs going from something that's already present?

Avatar
Topic author
Joey P. M
Posts: 462
Joined: 28.10.2017
Age: 21
With us: 6 years 6 months
Location: Vladivostok, Russia

Post #9by Joey P. » 08.06.2019, 06:30

I would also like to add hypothetical stars, such as H-type (frozen stars), Planck stars, and quark stars.

As for the Quasi-star, it can simply be made by renaming X Cygni (HIP 102276).
Joey P.

Avatar
Topic author
Joey P. M
Posts: 462
Joined: 28.10.2017
Age: 21
With us: 6 years 6 months
Location: Vladivostok, Russia

Thorne-Zytkow object

Post #10by Joey P. » 08.06.2019, 21:15

you can, however, without modifying any of the stellar classes, add a Thorne-Zytkow object (a star, usually a red giant, with a neutron star as a core):

Code: Select all

"Thorne-Zytkow object:TZO"
{
   RA 107.7430367
   Dec -77.7775654
   Distance 772
   SpectralType "M1III"
   AppMag 2.18
   Radius 13924000
}

"Thorne-Zytkow core"
{
   RA 107.7430367
   Dec -77.7775654
   Distance 772
   SpectralType "Q"
   AppMag 20
   Radius 12
   Texture "bstar.*"
}
Joey P.

Droopy Angora
Posts: 5
Joined: 11.07.2021
With us: 2 years 9 months

Post #11by Droopy Angora » 12.07.2021, 12:05

Also looking forward to this. The DarkerStarTextures mod is one good step to having O, F and K class stars look more realistic, that is if you run Celestia on Windows or at least desktop/laptop OSs. But about adding new star classes, only the dev team could do so...

The big advantage of Celestia as a scientific tool is the possibility of simulating an astronomically realistic universe, so I totally agree with adding those new types of stars into the source code of the app. Adding other hypothetical bodies could be great also, who never dreamed of travelling around a quark star ?

Avatar
SevenSpheres
Moderator
Posts: 820
Joined: 08.10.2019
With us: 4 years 7 months

Post #12by SevenSpheres » 12.07.2021, 14:37

Droopy Angora, reviving a 2 year old thread is necroposting, which is discouraged here. I'm not sure what star classes you're suggesting should/will be added, but spectral classes Y and WO have already been added, and quark stars (which you mention) can just be defined as neutron stars.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED


Return to “Development”