xyzv trajectory file's velocity

General discussion about Celestia that doesn't fit into other forums.
Avatar
Topic author
Joe
Posts: 162
Joined: 29.02.2004
With us: 20 years 8 months
Location: United Kingdom

xyzv trajectory file's velocity

Post #1by Joe » 19.05.2010, 13:01

Hi, Celestia users

Anyone would shed some light on the effect of the velocity elements in a xyzv trajectory file. The records in an xyzv file have three velocity values appended after each position, what are they for in Celestia 1.6.0? Do they have any effect on the orientation of the spacecraft in orbit at each position. Certainly its existence in a xyzv file does not have anything to do with how fast the spacecraft orbiting in space. What is the velocity for in Celestia 1.6.0 anyhow?
Joe
8O

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Re: xyzv trajectory file's velocity

Post #2by duds26 » 19.05.2010, 14:42

One reason they are useful is for interpolation.
In Celestia you can slow the time and accelerate it.
With a bunch of dots, celestia doesn't know where it has to draw the spaceship between those dots.
There are some nice interpolation algorithms, however it's induces errors.
Adding velocities makes interpolation much easier and more accurate for Celestia.

Hope this was a good answer to your question.
It could be that there are other advantages.

Avatar
Topic author
Joe
Posts: 162
Joined: 29.02.2004
With us: 20 years 8 months
Location: United Kingdom

Re: xyzv trajectory file's velocity

Post #3by Joe » 23.05.2010, 02:14

That helps a lot, duds26. Thanks :D .

I am having difficulties in figuring out the true effects of velocity (also angular velocity) coded in Celestia 1.6.0. I am not sure whether or not it controls the orientation of a spacecraft while the spaceship is in the trajectory. For instance, if the spaceship is flying in space along a xyzv trajectory, how we control its antenna to face the earth? Or how can we keep the spaceship's one axis (maybe Z-axis) always in tangent to the trajectory? Does the xyzv data help in achieving this or should I set it somehow in SCC file?
Joe

8O

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

Re: xyzv trajectory file's velocity

Post #4by selden » 24.05.2010, 11:04

xyzv files only provide position information. They have no affect on orientation. "SampledOrientation" files of quaternions can be used to provide comparable orientation information. However, one also can use a BodyFrame specification to cause one object to always face some other object.

See http://en.wikibooks.org/wiki/Celestia/R ... Sun_Locked
Selden

Avatar
Topic author
Joe
Posts: 162
Joined: 29.02.2004
With us: 20 years 8 months
Location: United Kingdom

Re: xyzv trajectory file's velocity

Post #5by Joe » 24.05.2010, 13:29

Thanks, Selden. A big helper as always you are.
Joe

8O

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

Re: xyzv trajectory file's velocity

Post #6by selden » 24.05.2010, 13:36

You're very welcome.
Selden

Avatar
Topic author
Joe
Posts: 162
Joined: 29.02.2004
With us: 20 years 8 months
Location: United Kingdom

Re: xyzv trajectory file's velocity

Post #7by Joe » 03.06.2010, 04:27

Hi

Anyone has experience in using "SampledOrientation" files to control the orientation of an object in orbit? There are a lot of examples/cases for using "SampledTrajectory" files (.xyz or xyzv) but I have come cross little reference in this forum about using SampledOrientation.

I am trying to fix a spaceship's orientation always in alignment with the direction of its velocity (or the tangency of its trajectory), anyone would help with the knowhow or point me to the right direction?
Joe

8O

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

Re: xyzv trajectory file's velocity

Post #8by selden » 03.06.2010, 12:48

To use a SampledOrientation file, you have to understand quaternions. Sorry: I can't help there.

However, you don't have to use a quaternion file in order to keep an object's orientation fixed relative to its motion. You can specify an TwoVector RelativeVelocity reference Frame which orients its axes dynamically.

See http://en.wikibooks.org/wiki/Celestia/R ... r_property
Selden


Return to “Celestia Users”