Orbit Radius of Moons

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Trolls
Posts: 3
Joined: 12.05.2005
With us: 19 years 4 months

Orbit Radius of Moons

Post #1by Trolls » 12.05.2005, 20:21

I'm new to this program and I'm having a bit of trouble setting the correct orbit radius for the moons orbiting my custom planet. I was under the impression the SemiMajorAxis value is what needs to be changed, but despite having different values for each moon, they are all appearing in the same orbit path.
On a related note, how does the value given relate to actual distances in km? For example, if I wanted a moon to have an orbit radius of 300000km, what would I type?

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 22 years
Location: NY, USA

Post #2by selden » 12.05.2005, 20:53

You'll have to provide the text of exactly what you're using in order for anyone to be able to suggest a fix.

You might start by using the SSC orbits of existing moons. See the file Celestia/data/solarsys.ssc for some of them.

The SemiMajorAxis value is in km.

Celestia's "console log" may include an error message. Type a tilde to see it.
Selden

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 6 months
Location: Hamburg, Germany

Re: Orbit Radius of Moons

Post #3by t00fri » 12.05.2005, 21:02

Trolls wrote:I'm new to this program and I'm having a bit of trouble setting the correct orbit radius for the moons orbiting my custom planet. I was under the impression the SemiMajorAxis value is what needs to be changed, but despite having different values for each moon, they are all appearing in the same orbit path.
On a related note, how does the value given relate to actual distances in km? For example, if I wanted a moon to have an orbit radius of 300000km, what would I type?


To stay with your example: have a look at data/solarsys.ssc under "Moon" "Sol/Earth". You sure know the Earth-Moon distance by heart. So have a look at the entry: "SemiMajorAxis".

That should fix the dimensions for you ;-)

Bye Fridger

Topic author
Trolls
Posts: 3
Joined: 12.05.2005
With us: 19 years 4 months

Post #4by Trolls » 12.05.2005, 21:03

I copied the text from Earth's moon and altered the radius and semimajoraxis values, nothing more. The radius changes seem to be working. Here is the code I've used for a couple of the moons:

Code: Select all

"Aryth" "Ebersun/Eberron"
{
   Texture "moon.*"
   BumpMap "moonbump.*"
   BumpHeight 0.3
   Radius   800
   # Oblateness 0.002

   CustomOrbit "moon"
   EllipticalOrbit {
      Period           27.321661
      SemiMajorAxis    353600
      Eccentricity     0.054900
      Inclination      5.15
   }

   Obliquity      23.45 # mean axis
   EquatorAscendingNode    0.0  # mean axis
   RotationOffset       38

   Albedo           0.12
}

"Vult" "Ebersun/Eberron"
{
   Texture "moon.*"
   BumpMap "moonbump.*"
   BumpHeight 0.3
   Radius   1440
   # Oblateness 0.002

   CustomOrbit "moon"
   EllipticalOrbit {
      Period           27.321661
      SemiMajorAxis    403200
      Eccentricity     0.054900
      Inclination      5.15
   }

   Obliquity      23.45 # mean axis
   EquatorAscendingNode    0.0  # mean axis
   RotationOffset       38

   Albedo           0.12
}

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 6 months
Location: Hamburg, Germany

Post #5by t00fri » 12.05.2005, 21:07

If you could educate me what "Aryth" "Ebersun/Eberron" and "Vult" "Ebersun/Eberron" are and where I can see them with my biiiiiiiiiiiiiiiiiiiiiig telescope, I would be grateful.

Bye Fridger

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 22 years
Location: NY, USA

Post #6by selden » 12.05.2005, 21:14

"CustomOrbit"s are defined internally in Celestia for specific solar system bodies. They override whatever EllipticalOrbit accompanies them.

Delete the CustomOrbit specifications.
Selden

Topic author
Trolls
Posts: 3
Joined: 12.05.2005
With us: 19 years 4 months

Post #7by Trolls » 12.05.2005, 21:19

selden wrote:"CustomOrbit"s are defined internally in Celestia for specific solar system bodies. They override whatever EllipticalOrbit accompanies them.

Delete the CustomOrbit specifications.


Ah ha! Problem solved, thanks :)

Evil Dr Ganymede
Posts: 1386
Joined: 06.06.2003
With us: 21 years 3 months

Post #8by Evil Dr Ganymede » 12.05.2005, 23:49

t00fri wrote:If you could educate me what "Aryth" "Ebersun/Eberron" and "Vult" "Ebersun/Eberron" are and where I can see them with my biiiiiiiiiiiiiiiiiiiiiig telescope, I would be grateful.

Bye Fridger


They're fictional. Eberron is a tabletop roleplaying game (based on D&D), these are the moons and its sun.


Return to “Development”