Looking for an easy-to-implement way of doing interpolation

General discussion about Celestia that doesn't fit into other forums.
Topic author
Lunar
Posts: 2
Joined: 22.05.2006
With us: 18 years 6 months

Looking for an easy-to-implement way of doing interpolation

Post #1by Lunar » 07.06.2006, 08:52

I am working on a simulation in Celestia, spacecraft around a planet using an XYZ orbit file. This all works, no problems there.

To get a nice animation I calculated a, what I call, horizon XYZ file and camera XYZ file (and corresponding objects). The horizon file uses the entries from the spacecraft XYZ file and calculates the corresponding point on the horizon that is in the orbital plane in flight direction. The camera file uses the entries from the spacecraft XYZ file and the newly calculated horizon entries to calculate a position some 50m behind the spacecraft on the line horizon-spacecraft. The animation then starts with the observer being in the camera location and following it, while tracking the horizon. To my disappointment you then see the spacecraft wobble up and down and left to right in the observer field-of-view. Probably due to the fact that the entries in the spacecraft XYZ file are 1 to 3 minutes apart from each other and the interpolation algorithm in Celestia could be better? There's no doubt really about the accuracy of the spacecraft XYZ file.
Anyone knows of an effective, easy-to-implement way of doing interpolation? Then I could create an XYZ file that has entries every second for instance. Open for all suggestions!

Cheers!!

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Re: Looking for an easy-to-implement way of doing interpolat

Post #2by hank » 07.06.2006, 18:51

Lunar wrote:Open for all suggestions!

Have you considered using a CELX script to control the observer?

- Hank


Return to “Celestia Users”