Planets not on their orbits

Report bugs, bug fixes and workarounds here.
Topic author
chuljin
Posts: 3
Joined: 04.08.2005
With us: 19 years 3 months

Planets not on their orbits

Post #1by chuljin » 04.08.2005, 19:14

(or, if you like 'Orbits not through their planets)

I have literally just now started using Celestia, and I think it's GREAT!

I found one strange thing though:
(I searched the forum, though admittedly not very hard, so forgive me if this has already been reported)

Especially with the outer Solar planets, when display of (planetary) orbits is on, the drawn path of the orbit doesn't pass through the centre of the planet. In most cases, it even falls outside of the orbits of most of the planet's satellites.

Aren't the drawn path of the orbit, and the drawn location of the planet, calculated from the same data?

Topic author
chuljin
Posts: 3
Joined: 04.08.2005
With us: 19 years 3 months

Post #2by chuljin » 04.08.2005, 19:15

(BTW, I noticed this while running the script 'Space Opera'.)

Spaceman Spiff
Posts: 420
Joined: 21.02.2002
With us: 22 years 9 months
Location: Darmstadt, Germany.

Post #3by Spaceman Spiff » 04.08.2005, 19:48

No, the orbits are by default drawn as 100 line segments between 100 chosen orbit points. The planet position is calculated every time step.

In the file celestia.cfg, you can adjust geometrical approximations like this, provided your computer would stand for the extra load. Look for these line and change the numbers after it (the first one adjusts line segments per orbit):

Code: Select all

  OrbitPathSamplePoints  100
  RingSystemSections     100

  ShadowTextureSize      128
  EclipseTextureSize     128


Spiff.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #4by selden » 04.08.2005, 19:51

By default and to minimize overhead, Celestia calculates 100 points along an orbit just once and draws lines between them. If the orbiting body is not near one of those points, the closest line may not be near the body.

You can change the number of points by editing the text file celestia.cfg and changing the value specified for OrbitPathSamplePoints. Be sure to save a copy of this file before you edit it. It contains many other values that you can modify.

The way orbits are drawn will be changing in Celestia v1.4.0. It may improve this situation.
Selden

Topic author
chuljin
Posts: 3
Joined: 04.08.2005
With us: 19 years 3 months

Post #5by chuljin » 04.08.2005, 20:40

Thanks everyone! I expected it was something like that that I just hadn't discovered.

I changed it to 1000 and the curve now runs straight through the planet, and I didn't notice any effect in performance.


Return to “Bugs”