How do you define a new planet in the data files?

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Mikeydude750
Posts: 169
Joined: 31.01.2002
With us: 23 years
Location: Wisconsin

How do you define a new planet in the data files?

Post #1by Mikeydude750 » 02.06.2002, 02:00

I was wondering how to make one, since I have a new texture for a planet, and I don't know how to put it into Celestia.

Could you also tell me how to define orbits, atmospheres, and planets?

Any help here would be greatly appreciated.

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 23 years
Location: Altair

Post #2by Rassilon » 02.06.2002, 13:56

Another person would be best to answer the question on defining an orbit etc...I simply tweak the variables to suit my needs...

On adding a planet...Take the code of another planet..paste it into a blank notepad...modify it and save to the extras folder as a .ssc file NOT a text file...Make sure you choose a star to have it orbit...and name the star in the coding using its primary designation...or maybe the HIP number...

Atmospheres are the RGB value in % value in the form of a decimal...0.0 is the lowest and will be black...1.0 is the highest and will be white...Yellow is [ 1 1 0 ] Pink is [ 1 0.2 0.5 ] etc...

I can give you this much though...

Period is the planets revolution around the sun in years...
SemiMajorAxis is the distance from its sun in AU 1 AU ~ 93 million miles...
Eccentricity is the % amount in decimal form that a planet moves closer and further away from its sun...
Inclination is the degree amount that the orbit inclines...
The rest im not 100% sure of but play with it...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Topic author
Mikeydude750
Posts: 169
Joined: 31.01.2002
With us: 23 years
Location: Wisconsin

Post #3by Mikeydude750 » 02.06.2002, 17:06

Thank you so much! I have been itching to create a nice planet, but I didn't know how to.


Maybe some one should make a program that generates a data file based on the variables. That could be a good project for my programming class in a few months.


Return to “Development”