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: 362
Joined: 28.10.2017
Age: 17
With us: 2 years 1 month
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: 400
Joined: 16.08.2018
Age: 13
With us: 1 year 3 months
Location: Southern California

Post #2by SpaceFanatic64 » 18.05.2019, 01:20

You can't, as far as I know.
Follower of the "Celestia Origin" project
Graphics Card: ATI Radeon 3000 Graphics

onetwothree
Developer
Posts: 347
Joined: 22.09.2018
With us: 1 year 2 months

Post #3by onetwothree » 18.05.2019, 08:10

Indeed, stellar classes are hardcoded

pirogronian
Developer
Posts: 209
Joined: 05.01.2018
Age: 33
With us: 1 year 11 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.

Avatar
Sirius_Alpha
Posts: 60
Joined: 21.03.2019
With us: 8 months 24 days

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.

Avatar
Topic author
Joey P. M
Posts: 362
Joined: 28.10.2017
Age: 17
With us: 2 years 1 month
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
Developer
Posts: 347
Joined: 22.09.2018
With us: 1 year 2 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: 5
Joined: 24.05.2019
With us: 6 months 21 days

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: 362
Joined: 28.10.2017
Age: 17
With us: 2 years 1 month
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: 362
Joined: 28.10.2017
Age: 17
With us: 2 years 1 month
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.


Return to “Development”

Who is online