Extension for orientation files

The place to discuss creating, porting and modifying Celestia's source code.
Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #21by t00fri » 20.01.2007, 11:42

Image

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #22by Chuft-Captain » 20.01.2007, 13:29

"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Paolo
Posts: 502
Joined: 23.09.2002
With us: 22 years 1 month
Location: Pordenone/Italy

Post #23by Paolo » 20.01.2007, 17:30

chris wrote:But cmod, position, and orientation files are different enough that I don't see what benefit there would be to unifying them.
--Chris


I agree about cmod.

I would like to extend the unified format to dat too.
I repeat myself, I can see those benefits: simplification, extensibility, usage of schemas (like in XML), data conversion (easier unified import-export from other formats), data editors and add-on managers.

Example using the current a format similar to stc, dsc, ssc,

Code: Select all


...

SampledOrbit #xyz equivalent
{
    Name "Cassini Path"
    Target "Cassini"
    Path [
        2450736.8939 138193070 56107309 -424
        2450736.8946 138192732 56108444 -386
        2450736.9008 138189870 56119338 35
        2450736.9196 138181017 56155827 1471
        2450737.1425 138045276 56635255 15685
        2450739.4696 136327889 61723333 137919
        ...
    ]
}

Rotations
{
    Name "Cassini body orientation"
    Target "Cassini"
    Format "Quaternions" # or "Angles"
    KeySequence
    [
        2450736.8939 0.0 0.0 1.0 0.0
        2450736.8946 0.0 0.0 1.0 0.425
        2450736.9008 0.0 0.0 1.0 0.25
        2450736.9196 1.0 0.0 0.0 0.25
        2450737.1425 0.25 0.25 0.50 0.25
        2450739.4696 0.25 0.25 0.50 0.75
        ...
    ]
}
...


So a cassini.### file should contain all the data except the cmod/3ds mesh and the textures.

Moreover this format already contains everything needed for key frame animation, so splitting the mesh model the different parts of the cassini probe (antennas, panels) should be animated independently.

But perhaps this is too much advanced.

Kind regards
Remember: Time always flows, it is the most precious thing that we have.
My Celestia - Celui



Return to “Development”